AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Run AutoGPT without GUI

Open ZefanW opened this issue 2 years ago • 7 comments
trafficstars

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

ZefanW avatar Apr 15 '23 18:04 ZefanW

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.

SargeDGz avatar Apr 16 '23 04:04 SargeDGz

I tried running it and got the following error:

image

yudikubota avatar Apr 16 '23 14:04 yudikubota

I tried running it and got the following error:

image

Hi. 'master' branch is being updated very frequently and sometimes requirements.txt falls behind. Manual installation will solve this. pip install GitPython

ZefanW avatar Apr 16 '23 18:04 ZefanW

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 18 '23 14:04 github-actions[bot]

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

p-i- avatar May 05 '23 00:05 p-i-

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.

anonhostpi avatar May 05 '23 05:05 anonhostpi

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 ?

Boostrix avatar May 05 '23 10:05 Boostrix

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!

Pwuts avatar Jun 15 '23 00:06 Pwuts