Agav logo

Agav

An open-source AI coding agent for the terminal that runs on your own model provider or a local model and is built to use fewer tokens per task. In its maker's Terminal-Bench 2.1 study it cost 49.1% less than Codex on the same model, while passing fewer tasks.

Last verified: November 22, 2026
Alternative to: Codex
Agav app screenshot

Short description

Agav is an AI coding assistant that lives in your terminal. You start it inside a repository, and it reads the code, edits files, runs commands and tests, and checks its own changes. It installs as a single program for macOS, Linux and Windows with one command and doesn't need Node.js. The source code is on GitHub under the Apache 2.0 license.

Agav doesn't include an AI model. You connect your own account with Anthropic, OpenAI, OpenRouter, NVIDIA NIM, Gemini, Vertex AI, DeepSeek or any service that accepts OpenAI's request format, or you run a model on your own computer through Ollama. You can change models in the middle of a session with /model.

Its main focus is cost. Every request to a model is billed by the token (roughly, by the amount of text sent and received), and Agav is designed to send less: it reuses text the provider has already cached, trims long command output, stops itself when it keeps failing the same way, and keeps one budget across retries. In the vendor's own Terminal-Bench 2.1 study, using GPT-5.6 Luna at max effort on 89 tasks, Agav's estimated model cost was $122.86 against $241.45 for Codex. Codex passed more trials, 76.6% against Agav's 60.4%, so the saving came with lower accuracy in that test.

Agav is for developers and teams who want a terminal agent they can read the code of and point at any model. Prapaa Private Limited makes it. It's labelled experimental beta, and its first GitHub release (v0.1.1) came out on August 13, 2026.

Features

  • Bring your own model: Works with Anthropic (the default), OpenAI, OpenRouter, NVIDIA NIM, Gemini, Vertex AI and DeepSeek, any OpenAI-compatible service through a custom address, and local models through Ollama. /model switches models mid-session, and /fast and /deep are shortcuts for a quicker or a stronger model.

  • Built to send fewer tokens: Keeps the start of each conversation unchanged so the provider can bill it at the cheaper cached rate. Command output is capped at 40 KB or 2,000 lines, with the rest saved to disk instead of being sent again. History gets summarized once the conversation fills about 60% of the model's memory, and searches skip folders such as node_modules, .git, dist and .venv.

  • Limits on wasted loops: When the agent hits the same error with the same tool and inputs several times, it's told to try a different approach. Fix-and-test cycles have a maximum number of attempts, retries share one budget, and a retry stops once a reply has started streaming so you aren't billed twice for the same output.

  • Published cost study: On Terminal-Bench 2.1 (89 tasks, five trials each, GPT-5.6 Luna at max effort), the median estimated cost per trial was 15.2 cents and 97.0% of input tokens came from cache. The total was $122.86 for Agav and $241.45 for Codex, 49.1% lower, with pass rates of 60.4% and 76.6%. Results for every task are published, including those where Codex was cheaper.

  • Subagents: Hands a scoped job to a helper agent that starts with a clean slate, so its searching doesn't crowd your main conversation. Up to five run at once, and suitable work can go to a cheaper model.

  • Permission modes and sandbox: Three modes (ask, auto-accept and deny-writes) that you can switch with /permission, approvals per tool, and a human check before destructive actions. Shell commands run in a sandbox, a walled-off space that limits what they can touch: Seatbelt on macOS, Bubblewrap on Linux, a restricted account on Windows, or Docker.

  • Project memory: Saves your preferences, feedback and project decisions on your own machine for each project and brings them into later sessions. You can look at or delete what it saved.

  • Sessions you can return to: Resume, branch, name, search and export sessions. /compact frees up room in the conversation without losing your plan, and /undo reverts edits.

  • Scripts and CI: agav run and agav -P run a single task without the interface, accept piped input such as an error log, take a JSON policy for which tools are allowed, and can return output in a fixed JSON format for use in automated build pipelines.

  • Skills, agents and a marketplace: Skills are reusable sets of instructions. Agents are specialized helpers with their own tools and credentials. A built-in marketplace lists community agents you can install for every project or just one.

  • Voice input: /voice lets you dictate a prompt you can edit before sending. Transcription is English only and runs on your computer with Whisper, after a one-time 59.7 MB download you approve.

  • Background jobs: An opt-in feature (run_background_job and /job) keeps long-running commands and scheduled tasks going after a turn ends. These run outside the sandbox.

Pricing

  • Agav CLI: Free and open source under Apache 2.0. The pricing page says the local version will be free forever.

  • Model costs: You pay your model provider directly at its own rates. A local model through Ollama has no model cost. The README also points to free daily API credits from OpenRouter and NVIDIA NIM.

  • Paid plans: Not published. The pricing page says "Coming soon" and that plans are still being finalized.

  • Enterprise: Contact sales at contact@agav.dev about team rollout, single sign-on, policies and pricing. No prices are listed.

Integrations

  • Model providers: Anthropic, OpenAI (Responses or Chat Completions API), OpenRouter, NVIDIA NIM, Gemini, Vertex AI, DeepSeek, Ollama, and OpenAI-compatible gateways such as LiteLLM or vLLM, including ones that need custom headers.

  • MCP servers: MCP is a standard way to plug outside tools and data into an AI agent. Agav connects to MCP servers on your machine or over the web, and you can list which of a server's tools to expose, which cuts the text sent with every request.

  • Agent marketplace: Installs community agents from GitHub, GitLab or Bitbucket repositories, or from a marketplace you host yourself.

  • Language servers: Uses language server lookups to find where code is defined and used while it edits.

  • Jupyter notebooks: Reads and edits notebooks.

  • GitHub and the web: Built-in tools for GitHub, web search and fetching pages.

  • Company sign-in and gateways: Sign-in through OIDC or SAML, managed settings that fix which providers, models and gateway addresses engineers can use, and model allowlists. This needs your own identity provider and control setup.

Platforms

  • CLI
💡

Frequently asked questions about Agav

Is Agav free?â–¼

Yes. The Agav CLI is open source under Apache 2.0, and the pricing page says the local version will be free forever. You still pay your model provider for what you use, unless you run a local model through Ollama. The README also points to free daily API credits from OpenRouter and NVIDIA NIM. Paid plans are listed as coming soon.

What is the cheapest AI coding agent?â–¼

That depends on the model you choose and how many tokens the agent uses per task. Agav is designed to use fewer. In its maker's Terminal-Bench 2.1 study with GPT-5.6 Luna at max effort, the median estimated cost was 15.2 cents per trial, and the total across 89 tasks was $122.86, 49.1% less than Codex's $241.45 at the same rates. Codex passed more trials (76.6% against 60.4%), so the lower cost came with lower accuracy in that test. The figures cover model costs only.

Is there an open-source alternative to Codex?â–¼

Agav is an Apache 2.0 terminal coding agent that, like Codex, reads a repository, edits files and runs tests from the command line. It works with OpenAI, Anthropic, Gemini, OpenRouter, NVIDIA NIM, DeepSeek, Vertex AI or a local Ollama model, and you can switch between them mid-session. In its maker's comparison it cost about half as much as Codex on the same model and passed fewer tasks.

How do you reduce token usage in an AI coding agent?â–¼

Agav does much of it automatically. It keeps repeated text cacheable (97.0% of input tokens came from cache in its benchmark), caps command output at 40 KB or 2,000 lines, summarizes history once the conversation fills about 60% of the model's memory, and stops loops that keep failing the same way. You can also limit which MCP tools are exposed, because each exposed tool's description goes out with every request, and send suitable work to subagents on a cheaper model.

Is there a free terminal coding agent?â–¼

Agav is a free, open-source terminal coding agent for macOS, Linux and Windows that installs with one command and doesn't need Node.js. With a local model through Ollama, or free daily credits from OpenRouter or NVIDIA NIM, you can use it without paying for a model.