Quickstart
Get OpenAgent running and edit your first file in under two minutes.
1. Install
brew install ask-sol/openagent/openagent
Or see Install for Linux, WSL, and from-source instructions.
2. First run
openagent
The setup wizard asks two questions:
- How do you want to run models? — Cloud (an API provider) or Local (Ollama / LM Studio / MLX).
- Which model? — pick one from the curated list, or paste an OpenRouter ID.
If you have a Claude Max or Pro subscription, pick Anthropic (Max Plan) — no API key needed.
3. Ask it to do something
> add a /health endpoint to server.ts that returns { ok: true }
OpenAgent will:
- Read
server.ts. - Plan the edit and show you a
TodoWritelist. - Apply the edit (you’ll see a syntax-highlighted diff).
- Run any tests it finds.
- Summarize what changed.
4. Common shortcuts
| Key | Action |
|---|---|
↑ / ↓ |
Cycle through previous prompts |
Esc |
Stop the current task / close menus / dismiss prompts |
Ctrl+T |
Toggle terminal mode (run shell commands inline) |
Shift+Tab |
Cycle permission mode (Standard → Cautious → Unrestricted) |
Ctrl+C |
Quit |