2023-04-22 11:56:22 +00:00
# Usage
2023-04-26 18:14:14 +00:00
## Command Line Arguments
Running with `--help` lists all the possible command line arguments you can pass:
2023-04-26 07:52:33 +00:00
2023-08-01 17:17:33 +00:00
```shell
2023-04-26 18:14:14 +00:00
./run.sh --help # on Linux / macOS
2023-04-26 07:52:33 +00:00
2023-04-26 18:14:14 +00:00
.\run.bat --help # on Windows
2023-04-26 07:52:33 +00:00
```
2023-04-26 18:14:14 +00:00
!!! info
For use with Docker, replace the script in the examples with
2023-07-06 20:11:43 +00:00
`docker compose run --rm auto-gpt` :
2023-04-26 07:52:33 +00:00
2023-08-01 17:17:33 +00:00
```shell
docker compose run --rm auto-gpt --help
docker compose run --rm auto-gpt --ai-settings < filename >
```
2023-04-26 07:52:33 +00:00
2023-04-26 18:14:14 +00:00
!!! note
Replace anything in angled brackets (< >) to a value you want to specify
2023-04-26 07:52:33 +00:00
2023-09-22 22:49:29 +00:00
Here are some common arguments you can use when running AutoGPT:
2023-04-26 07:52:33 +00:00
2023-09-22 22:49:29 +00:00
* Run AutoGPT with a different AI Settings file
2023-08-01 17:17:33 +00:00
```shell
./run.sh --ai-settings < filename >
```
2023-09-22 22:49:29 +00:00
* Run AutoGPT with a different Prompt Settings file
2023-04-22 11:56:22 +00:00
2023-08-01 17:17:33 +00:00
```shell
./run.sh --prompt-settings < filename >
```
* Specify a memory backend
2023-04-22 11:56:22 +00:00
2023-08-01 17:17:33 +00:00
```shell
./run.sh --use-memory < memory-backend >
```
2023-04-22 11:56:22 +00:00
2023-04-26 18:14:14 +00:00
!!! note
There are shorthands for some of these flags, for example `-m` for `--use-memory` .
Use `./run.sh --help` for more information.
2023-04-22 11:56:22 +00:00
2023-04-26 18:14:14 +00:00
### Speak Mode
2023-04-22 11:56:22 +00:00
2023-09-22 22:49:29 +00:00
Enter this command to use TTS _(Text-to-Speech)_ for AutoGPT
2023-04-22 11:56:22 +00:00
2023-08-01 17:17:33 +00:00
```shell
2023-04-26 18:14:14 +00:00
./run.sh --speak
2023-04-22 11:56:22 +00:00
```
### 💀 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.
2023-08-01 17:17:33 +00:00
```shell
2023-04-26 18:14:14 +00:00
./run.sh --continuous
2023-04-26 07:52:33 +00:00
```
2023-08-01 17:17:33 +00:00
2023-04-26 18:14:14 +00:00
To exit the program, press ++ctrl+c++
2023-04-22 11:56:22 +00:00
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-26 18:14:14 +00:00
### GPT-3.5 ONLY Mode
2023-04-22 11:56:22 +00:00
2023-09-22 22:49:29 +00:00
If you don't have access to GPT-4, this mode allows you to use AutoGPT!
2023-04-22 11:56:22 +00:00
2023-08-01 17:17:33 +00:00
```shell
2023-04-26 18:14:14 +00:00
./run.sh --gpt3only
2023-04-22 11:56:22 +00:00
```
2023-07-07 01:42:18 +00:00
You can achieve the same by setting `SMART_LLM` in `.env` to `gpt-3.5-turbo` .
2023-04-26 18:14:14 +00:00
### GPT-4 ONLY Mode
2023-04-22 11:56:22 +00:00
2023-09-22 22:49:29 +00:00
If you have access to GPT-4, this mode allows you to use AutoGPT solely with GPT-4.
2023-04-26 18:14:14 +00:00
This may give your bot increased intelligence.
2023-04-22 11:56:22 +00:00
2023-08-01 17:17:33 +00:00
```shell
2023-04-26 18:14:14 +00:00
./run.sh --gpt4only
2023-04-22 11:56:22 +00:00
```
2023-04-26 18:14:14 +00:00
!!! warning
2023-09-22 22:49:29 +00:00
Since GPT-4 is more expensive to use, running AutoGPT in GPT-4-only mode will
2023-04-26 18:14:14 +00:00
increase your API costs.
2023-04-22 11:56:22 +00:00
## Logs
2023-07-14 00:14:57 +00:00
Activity, Error, and Debug logs are located in `./logs`
!!! tip
Do you notice weird behavior with your agent? Do you have an interesting use case? Do you have a bug you want to report?
Follow the step below to enable your logs. You can include these logs when making an issue report or discussing an issue with us.
2023-04-22 11:56:22 +00:00
To print out debug logs:
2023-08-01 17:17:33 +00:00
```shell
2023-07-14 00:14:57 +00:00
./run.sh --debug # on Linux / macOS
.\run.bat --debug # on Windows
docker-compose run --rm auto-gpt --debug # in Docker
2023-04-24 13:27:53 +00:00
```
2023-05-04 00:14:07 +00:00
## Disabling Command Categories
If you want to selectively disable some command groups, you can use the `DISABLED_COMMAND_CATEGORIES` config in your `.env` . You can find the list of categories in your `.env.template`
For example, to disable coding related features, set it to the value below:
```ini
2023-06-17 15:39:17 +00:00
DISABLED_COMMAND_CATEGORIES=autogpt.commands.execute_code
2023-05-04 00:14:07 +00:00
```