Running autogpt with no arguments launches GenericGPT, a full-featured conversational AI shell with session persistence, runtime model switching, and multi-provider support.
autogptThis is the default mode and requires no subcommands or flags.
Once inside the shell, the following commands are available:
| Command | Description |
|---|---|
<your prompt> |
Send a message to the active AI agent |
/help |
Show all available shell commands |
/provider |
Switch LLM provider at runtime (Gemini, OpenAI, Anthropic, XAI, Cohere, HuggingFace) |
/models |
Browse and switch between models supported by the active provider |
/sessions |
List and resume previous conversation sessions |
/status |
Show the current model, provider, and workspace directory |
/workspace |
Print the current workspace path |
/clear |
Clear the terminal screen |
exit / quit |
Save the session and exit |
ESC at any time to interrupt a running generation without closing the shell.
Every conversation is automatically saved as a YAML file inside your workspace. When you type /sessions, AutoGPT lists all previous sessions. Selecting one restores the full conversation history, so the agent retains context from where you left off.
Sessions are stored under the .autogpt/sessions/ directory and indexed by a UUID, creation timestamp, and a short automatic summary. See the GenericGPT agent page for full detail on the .autogpt directory layout.
You can switch between LLM providers without restarting the shell:
> /provider
1. Gemini (active)
2. OpenAI
3. Anthropic
4. XAI
5. Cohere
6. HuggingFace
Select provider: 2
β Switched to OpenAI
Switching providers also reloads the model list for the new provider and resets the active model to that provider's default.
The selected provider must have its API key set as an environment variable and its corresponding Cargo feature enabled at compile time.
/models lists all models available from the active provider, sourced directly from each provider's crate. Use arrow keys to navigate and Enter to confirm:
> /models
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Flash3Preview
Pro31Preview
Flash31LitePreview
...
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Model set to: Flash3PreviewOverride the default model using environment variables instead of the interactive selector:
export GEMINI_MODEL=gemini-2.5-pro-preview-05-06GenericGPT is a production-hardened autonomous agent that goes well beyond simple chat:
- Reasoning pre-step: Before acting, the agent emits a structured internal monologue (stored in the session log) to plan its approach.
- Task synthesis: The plan is decomposed into an ordered list of typed actions (
CreateFile,PatchFile,RunCommand, etc.). - Execution: Each action is applied against the workspace.
PatchFileperforms anchor-text surgical edits;RunCommandruns shell commands. - Build-and-verify: After code changes, the agent detects the project's build system (
cargo,npm, etc.) and runs it. On failure, it feeds the error back and retries automatically (up to 3 attempts). - Reflection: After completion the agent reviews what worked and what didn't.
- Skill extraction: Lessons are written to provider-specific TOML files in
.autogpt/skills/and injected into future sessions automatically.
The cli feature flag must be enabled to use the interactive shell:
cargo install autogpt --features cli,gem