Skip to content
qqthe agent runtime
v0.1.11Open source. Written in Rust.

AI coding agents
in one binary.

A terminal UI, a headless runner, and a local server, sharing one runtime. Every action passes a policy you can read, and every event is kept, so sessions survive restarts and many agents can run at once.

curl -fsSL https://retsu-ai.github.io/qq/install.sh | sh

No runtime to install. Or download a binary

Your agent works. You stay in control.

MIT licensedSingle static binaryLinux · macOS · WindowsBuilt in the open

FROM YOUR TERMINAL TO YOUR PIPELINE

Three surfaces, one runtime.

Work interactively. Run unattended. Share a local server.

Meet the runtime

qq

The interactive terminal

Opens in the current directory. Approvals appear in the transcript where the call is; many sessions, one screen.

$ cd my-project && qq
Explore the TUI

qq run

The headless runner

The same agent in a script or CI job. Auto by default; JSONL out, meaningful exit codes.

$ qq run --approval auto --format jsonl
"Add a --dry-run flag and a test"
Exit codes: 0 1 2 3 4 5 130

qq serve

The shared local server

Several clients, one runtime, over HTTP and SSE. Random loopback port by default.

$ qq serve --bind 127.0.0.1:4711
Run a server

Same tools. Same policy. Same SQLite store. Everywhere.

YOUR CHECKOUT, YOUR CALL

Four modes, one undo.

Pick read_only, ask, auto or full. Commands run in your checkout as you, the way they run in your terminal. A short list of fixed stops, like force-pushing or reading ~/.ssh, is refused in every mode but full.

QQ snapshots the workspace before a run first changes it, and qq undo puts it back.

Understand the modes
modeexampleoutcome
● autocargo test
git push · npm install x
runs
◇ askany edit or commandasks
✕ fixed stopgit push --force
sudo … · cat ~/.ssh/id_ed25519
refused unless full

KEEP THE WORK IN VIEW

Many agents, one screen.

The sidebar groups sessions by what you should do — NEEDS YOU, WORKING, RECENT — with unread counts, not by when you opened them. Ctrl+G jumps to the next one that needs you.

Alt+A / Alt+D approve or deny the held call of a session you can see in the sidebar without leaving yours. Sub-agents appear under their parent, bounded by the roster and depth you configure.

Work with sessions

YOUR MODEL. YOUR CREDENTIALS.

Bring your own model.

Or any OpenAI-, Anthropic-, or Gemini-compatible endpoint: a gateway, LiteLLM, or a local model server.

Credentials live in your OS keyring, stored once with qq auth login. Config files hold names, never secrets; a repository’s config cannot reach a credential you did not register.

Layer your configuration: global → trusted project → QQ_CONFIG and the environment.

Connect a provider