AutoGPT
AutoGPT copied to clipboard
Run AutoGPT without GUI
Background
Current AutoGPT cannot be run on servers or computing clusters which typically cannot open browsers in GUI mode.
Changes
autogpt/args.py : added parsing for '--no-gui' autogpt/config/config.py: added default value for args.py autogpt/commands/web_selenium: options to disable browser window.
Documentation
Now supports running selenium without GUI, enabling running on terminal-only machines. This function is enabled by
python -m autogpt --no-gui
Test Plan
Tested on cloud servers and worked.
PR Quality Checklist
- [x] My pull request is atomic and focuses on a single change.
- [x] I have thoroughly tested my changes with multiple different prompts.
- [x] I have considered potential risks and mitigations for my changes.
- [x] I have documented my changes clearly and comprehensively.
- [x] I have not snuck in any "extra" small tweaks changes
my work around was to install a desktop environment and rdp in and then run autogpt but yea rdp over internet is bad, thanks for this hope it gets merged in to the project.
I tried running it and got the following error:

I tried running it and got the following error:
Hi. 'master' branch is being updated very frequently and sometimes requirements.txt falls behind. Manual installation will solve this.
pip install GitPython
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.
This is a mass message from the AutoGPT core team. Our apologies for the ongoing delay in processing PRs. This is because we are re-architecting the AutoGPT core!
For more details (and for infor on joining our Discord), please refer to: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Architecting
Recommend building an asynchronous API to talk to the currently running process as that would probably be the best method.
Some kind of IPC. I'm sure there are several IPC libraries for Python. Another option would be to host a local http server that takes REST/GRAPHQL calls.
especially once multiple async agents are becoming a thing (#765, #2422), this will be highly useful however, "--headless-mode" would seem like a more appropriate name ?
Since #1473+#2816, browsers open in headless mode by default. This can be adjusted using an environment variable or the .env config, which is probably enough for now. Still, thanks for submitting!