Skip to content

Quickstart

Once @affer-dev/cli is installed, you only need a model provider key (or a local Ollama server) to start.

Run affer auth to store a provider API key, or export the provider environment variable in your shell:

Terminal window
affer auth login
affer auth status

affer 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:

Terminal window
affer models

Open a repository and run affer with no arguments:

Terminal window
cd your-project
affer

affer terminal UI startup screen

From inside the TUI, type a task directly or use slash commands such as /diff, /rewind, /session, and /help.

For quick tasks or shell scripts, use affer run:

Terminal window
affer run "explain the repository layout"

You can also pipe input over stdin:

Terminal window
git diff | affer run "summarize the risky changes in this diff"