Files
Auto-GPT/docs/content/AutoGPT/setup/index.md
Reinier van der Leer 58341a9396 docs: Fix small errors and markup issues in documentation
- Updated the link to OpenAI API key page in the setup guide
- Fixed formatting issues in the usage guide
- Updated the link to the `.env.template` file in the usage guide
- Fixed formatting and wording issues in the index page
2023-11-24 15:45:54 +01:00

4.1 KiB
Raw Blame History

AutoGPT Agent setup

🐋 Set up & Run with Docker | 👷🏼 For Developers

📋 Requirements

Linux / macOS

Windows (WSL)

Windows

!!! attention We recommend setting up AutoGPT with WSL. Some things don't work exactly the same on Windows and we currently can't provide specialized instructions for all those cases.

🗝️ Getting an OpenAI API key

Get your OpenAI API key from: https://platform.openai.com/account/api-keys.

!!! attention To use the OpenAI API with AutoGPT, we strongly recommend setting up billing (AKA paid account). Free accounts are limited to 3 API calls per minute, which can cause the application to crash.

You can set up a paid account at [Manage account > Billing > Overview](https://platform.openai.com/account/billing/overview).

!!! important It's highly recommended that you keep track of your API costs on the Usage page. You can also set limits on how much you spend on the Usage limits page.

For OpenAI API key to work, set up paid account at OpenAI API > Billing

Setting up AutoGPT

Getting AutoGPT

Since we don't ship AutoGPT as a desktop application, you'll need to download the project from GitHub and give it a place on your computer.

Screenshot of the dialog to clone or download the repo

  • To get the latest bleeding edge version, use master.
  • If you're looking for more stability, check out the latest AutoGPT release.

!!! note These instructions don't apply if you're looking to run AutoGPT as a docker image. Instead, check out the Docker setup guide.

Completing the Setup

Once you have cloned or downloaded the project, you can find the AutoGPT Agent in the autogpts/autogpt/ folder. In this folder:

  1. Find the file named .env.template. This file may be hidden by default in some operating systems due to the dot prefix. To reveal hidden files, follow the instructions for your specific operating system: Windows and macOS.

  2. Create a copy of .env.template and call it .env; if you're already in a command prompt/terminal window:

    cp .env.template .env
    
  3. Open the .env file in a text editor.

  4. Find the line that says OPENAI_API_KEY=.

  5. Insert your OpenAI API Key directly after = without quotes or spaces..

    OPENAI_API_KEY=sk-qwertykeys123456
    
  6. Enter any other API keys or tokens for services you would like to use.

    !!! note To activate and adjust a setting, remove the # prefix.

  7. Save and close the .env file.

  8. Optional: run poetry install to install all required dependencies. The application also checks for and installs any required dependencies when it starts.

You should now be able to explore the CLI (./run.sh --help) and run the application.

See the user guide for further instructions.