Quickstart
Once @affer-dev/cli is installed, you only need a model provider key (or a local Ollama server) to start.
1. Configure authentication
Section titled “1. Configure authentication”Run affer auth to store a provider API key, or export the provider environment variable in your shell:
affer auth loginaffer auth statusaffer includes built-in presets for seven providers:
| Provider | Default model preset |
|---|---|
| Anthropic | anthropic/claude-sonnet-5-5 |
| Google Gemini | gemini/gemini-3.8-flash |
| OpenAI | openai/gpt-4o, openai/gpt-4.1 |
| Groq | groq/openai/gpt-oss-20b |
| DeepSeek | deepseek/deepseek-chat |
| OpenRouter | openrouter/anthropic/claude-sonnet-4.5 |
| Ollama (local) | ollama/llama3.2 |
List all available catalog models at any time:
affer models2. Launch the terminal UI
Section titled “2. Launch the terminal UI”Open a repository and run affer with no arguments:
cd your-projectaffer
From inside the TUI, type a task directly or use slash commands such as /diff, /rewind, /session, and /help.
3. Run a one-shot command
Section titled “3. Run a one-shot command”For quick tasks or shell scripts, use affer run:
affer run "explain the repository layout"You can also pipe input over stdin:
git diff | affer run "summarize the risky changes in this diff"