Terminal-native autonomous agent for real repositories and projects
Documentation: https://docs.agav.dev
No Node.js required. One command, self-contained binary:
curl -fsSL https://agav.dev/install.sh | bashWindows PowerShell:
irm https://www.agav.dev/install.ps1 | iexWindows Command Prompt:
curl -fsSL https://agav.dev/install.cmd -o install.cmd
install.cmd
del install.cmdDownload binaries or pre-releases from Releases. See docs.agav.dev/getting-started/installation for detailed installation steps.
OpenRouter and NVIDIA NIM offer free daily LLM API credits, no paid plan required. Create free OpenRouter API key · Create free NVIDIA NIM API key
agavPick a provider and model, or use defaults:
agav --provider openai --model gpt-4o
agav --provider openrouter --model openrouter/free
agav --provider nvidia --model meta/muse-glimmer-30b
agav --provider ollama --model llama3.2Non-interactive for scripts and CI:
agav run "List the files in this repository and explain its structure. Do not modify anything."
agav -P "what does this project do?"
cat error.log | agav -P "explain this error"Keep it current:
agav updateAgav can connect to a local inference server using --provider openai --openai-api chat. For example, serve a GGUF model with llama.cpp:
llama-server -m /path/to/model.gguf --alias local-model --port 8080In another terminal, point Agav at that server:
OPENAI_BASE_URL=http://127.0.0.1:8080/v1 OPENAI_API_KEY=local \
agav --provider openai --openai-api chat --model local-modelHere, openai selects the API format; inference runs locally, not on OpenAI's servers. local is a placeholder for an unauthenticated server. If your server requires authentication, use its actual key.
LM Studio works the same way for GGUF models and, on Apple Silicon, MLX models. Start its local server, use http://127.0.0.1:1234/v1 (the default), and pass the model ID shown by LM Studio. For Agav to use tools, the model and chat template must support tool calling.
AI coding costs are often a harness problem, not just a model problem.
Agav is built to make every model call count. It reuses cached context, limits repeated work, interrupts unproductive repair loops, bounds retries and budgets, and keeps subagent exploration isolated instead of repeatedly sending the same repository context.
In a Terminal-Bench 2.1 cost study using GPT-5.6 Luna at the same rates, Agav had a 15.2¢ median estimated trial cost across 89 tasks and used 49.1% less total spend than Codex. The savings came from measured cache reuse and controls around context, retries, and budgets.
This is a cost result, not a claim of higher accuracy: in that comparison, Agav passed 60.4% of trials versus 76.6% for Codex. We publish the methodology, telemetry, task-level data, implementation references, and limitations in The economics of coding with Agav.
You own it. Agav is Apache 2.0 open source, with no lock-in, hidden telemetry, or closed hosted runtime required.
You choose the brain. Use Anthropic, OpenAI, OpenRouter, NVIDIA NIM, Gemini, Vertex AI, or Ollama. Switch models mid-session with /model, use local models with Ollama, or route through OpenRouter.
You control the data and actions. API keys are encrypted, local-first operation is supported, tools have per-action permissions, and commands can run in a sandbox on macOS and Linux.
You can verify the work. Agav creates and tracks plans, keeps sessions resumable, supports human approval for destructive actions, and provides non-interactive agav run for CI with optional JSON Schema output.
- Top #1-verified on SWE-bench-Live Lite — 62.0% 186/300, you can view leaderboard and its public submission.
- Terminal-Bench 2.1 accuracy — 84.7% 377/445 trials ±0.84%. This submission's PR is under review.
- Terminal-Bench 2.1 cost study — 15.2¢ median estimated trial cost and 49.1% lower total spend than Codex at matched GPT-5.6 Luna rates across 89 tasks. See the full methodology and limitations.
- Providers — switch mid-session with
/model. Fast/fastand deep/deepshortcuts. - Non-interactive mode —
agav runandagav --printwith per-tool permissions and optional JSON Schema output. - Sessions that survive — resume, branch, name, search and export.
/compactreclaims context without losing plans, and/permissionswitches between ask, auto-accept, and deny-writes mid-session and sticks on resume. - Skills & Agents — reusable instruction bundles and installable service agents from a marketplace. Delegate scoped work to fresh-context subagents.
- Memory — cross-session memories per project: user preferences, feedback, project decisions, references.
- Voice input —
/voicedictates an editable prompt with offline, English-only transcription. No FFmpeg, Python, or extra setup. - Background jobs — opt-in
run_background_joband/jobkeep long-running commands and cron schedules alive beyond a single turn. - Repository-aware editing — LSP queries, notebook support, test running,
/undo, and planning UI.
Email: contact@agav.dev
Documentation source lives in docs/. To run locally: cd docs && npm install && npm run dev.
