2023-04-22 11:56:22 +00:00
# Usage
2023-04-24 13:27:53 +00:00
1. Open a terminal and run the startup script:
* On Linux/MacOS:
``` shell
./run.sh
```
* On Windows:
``` shell
.\run.bat
```
* Using Docker:
``` shell
docker-compose run --rm auto-gpt
```
Running with `--help` lists all the possible command line arguments you can pass:
``` shell
./run.sh --help
# or with docker
docker-compose run --rm auto-gpt --help
```
2023-04-22 11:56:22 +00:00
2. After each response from Auto-GPT, choose from the options to authorize command(s),
exit the program, or provide feedback to the AI.
1. Authorize a single command by entering `y`
2. Authorize a series of _N_ continuous commands by entering `y -N` . For example, entering `y -10` would run 10 automatic iterations.
3. Enter any free text to give feedback to Auto-GPT.
4. Exit the program by entering `n`
## Command Line Arguments
Here are some common arguments you can use when running Auto-GPT:
> Replace anything in angled brackets (<>) to a value you want to specify
* View all available command line arguments
2023-04-24 13:27:53 +00:00
``` shell
2023-04-22 11:56:22 +00:00
python -m autogpt --help
```
* Run Auto-GPT with a different AI Settings file
2023-04-24 13:27:53 +00:00
``` shell
2023-04-22 11:56:22 +00:00
python -m autogpt --ai-settings < filename >
```
* Specify a memory backend
2023-04-24 13:27:53 +00:00
``` shell
2023-04-22 11:56:22 +00:00
python -m autogpt --use-memory < memory-backend >
```
> **NOTE**: There are shorthands for some of these flags, for example `-m` for `--use-memory`. Use `python -m autogpt --help` for more information
### Speak Mode
Enter this command to use TTS _(Text-to-Speech)_ for Auto-GPT
```
python -m autogpt --speak
```
### 💀 Continuous Mode ⚠️
Run the AI **without** user authorization, 100% automated.
Continuous mode is NOT recommended.
It is potentially dangerous and may cause your AI to run forever or carry out actions you would not usually authorize.
Use at your own risk.
1. Run the `autogpt` python module in your terminal:
2023-04-24 13:27:53 +00:00
``` shell
2023-04-22 11:56:22 +00:00
python -m autogpt --continuous
```
2. To exit the program, press Ctrl + C
2023-04-25 05:28:06 +00:00
### ♻️ Self-Feedback Mode ⚠️
Running Self-Feedback will **INCREASE** token use and thus cost more. This feature enables the agent to provide self-feedback by verifying its own actions and checking if they align with its current goals. If not, it will provide better feedback for the next loop. To enable this feature for the current loop, input `S` into the input field.
2023-04-22 11:56:22 +00:00
### GPT3.5 ONLY Mode
If you don't have access to the GPT4 api, this mode will allow you to use Auto-GPT!
``` shell
python -m autogpt --gpt3only
```
### GPT4 ONLY Mode
If you do have access to the GPT4 api, this mode will allow you to use Auto-GPT solely using the GPT-4 API for increased intelligence (and cost!)
``` shell
python -m autogpt --gpt4only
```
## Logs
Activity and error logs are located in the `./output/logs`
To print out debug logs:
``` shell
python -m autogpt --debug
2023-04-24 13:27:53 +00:00
```