QQ user guide
What QQ is, the two things it needs, and where its files live.
QQ is one binary that runs AI coding agents in your terminal, from scripts,
and as a local server. This guide is for people using QQ. If you are changing
QQ, start at ../README.md instead. This guide is also
published at https://retsu-ai.github.io/qq/.
Start here
Section titled “Start here”| I want to… | Read |
|---|---|
| install QQ | Install |
| go from nothing to a first answer in a minute | Quickstart |
| know what a session, run, grant, or approval mode is | Concepts and glossary |
| connect a model provider (OpenAI, Anthropic, Google, xAI, Codex, Bedrock, a gateway) | Providers and credentials |
| check my setup before the first run | qq doctor |
| understand what the agent may do without asking | Permissions and trust |
| learn the terminal UI | The TUI |
| run agents from scripts and CI | Headless: qq ask, qq run, qq serve |
| give the agent more tools | MCP servers |
| look up every setting | Configuration reference |
| look up every command and flag | CLI reference |
| fix an error message | Troubleshooting |
| something else | FAQ |
Two things QQ needs
Section titled “Two things QQ needs”- A model route such as
openai/gpt-5.6oranthropic/claude-sonnet-5, set once in a config file or per run with--model/QQ_MODEL. - A credential for that model’s provider, stored once with
qq auth login <provider>or supplied through the provider’s environment variable.
Everything else has a working default.
Where things live
Section titled “Where things live”| What | Linux | macOS | Windows |
|---|---|---|---|
| Your config | ~/.config/qq/config.ron | ~/Library/Application Support/dev.qq.qq/config.ron | %APPDATA%\qq\qq\config\config.ron |
| Sessions database | ~/.local/share/qq/sessions.sqlite3 | ~/Library/Application Support/dev.qq.qq/sessions.sqlite3 | %APPDATA%\qq\qq\data\sessions.sqlite3 |
| Project config | <repo>/.qq/config.ron | same | same |
| Credentials | OS keyring (Secret Service) | Keychain | Credential Manager, DPAPI file for large entries |
qq config paths prints the exact paths for your machine.
Conventions in this guide
Section titled “Conventions in this guide”qqalone means the interactive TUI in the current directory.PROVIDER/MODELis a model route; the provider half is one of the built-in ids (openai,anthropic,google,xai,openai-codex,bedrock,bedrock-mantle) or a name you declared underproviders.- Config examples are RON; a file starts
with
(andversion: 1,.