What is ANUS?
ANUS is a coding agent that runs in your terminal. Like the paid agents, it reads your code, edits files and runs commands. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in JavaScript and licensed MIT. To get started: install and start it.
Overview
ANUS is a coding agent that runs in your terminal. Like the paid agents, it reads your code, edits files and runs commands. The difference is where the model comes from: every request goes to the smartest free model that is answering at that moment, and when one says "not now", the next one on the list takes the same request. It uses free-tier keys you register once from services such as OpenRouter, Google Gemini, Groq, Cerebras and Mistral.

Under the hood ANUS keeps a ranked list of free models — which are smartest, and which answered a ping in the last hours — refreshed twice a day from anus.dev/free-models.json. A model that hits its rate limit rests for a minute, one that hits its daily cap rests until the cap resets, and one that breaks off mid-answer rests while the turn is retried on the next model. The footer shows which model answered each turn. Only the keys given in anus setup are used: paid keys already in your shell (OPENROUTER_API_KEY and friends) are ignored unless you opt in with ANUS_ENV_KEYS=1, so the agent never spends your money by accident.
The engine is pi by Earendil Works (MIT), installed as a dependency and supplying the terminal interface, tools, sessions and providers; ANUS adds the free-model router, the key setup and its own look. Everything local lives in ~/.anus/agent — keys, settings, sessions and the cached model list — and nothing is sent anywhere except to the model services you gave keys for. ANUS is distributed on npm as @anus-dev/anus under the MIT license.
What it does
- Free-model router: each request goes to the best-ranked free model you have a key for that is awake, with automatic failover when a model is rate-limited, capped or breaks off mid-answer
- Works with free keys from OpenRouter, Google Gemini, Groq, Cerebras and Mistral — more keys mean more daily requests and more fallbacks
- Paid keys in the shell environment are ignored by default, so the agent stays on free tiers unless ANUS_ENV_KEYS=1 is set
- Interactive sessions plus a one-shot mode (anus -p) and session resume (anus -c)
- In-session commands: /free lists every model as awake, resting or no key; /model picks one by hand; /compact shrinks a long conversation; !cmd runs a shell command
- Local-only state in ~/.anus/agent, with ANUS_DEBUG=1 logging every routing decision
- Built on the pi agent engine by Earendil Works
Getting started
ANUS needs Node.js 22.19 or newer and at least one free API key. OpenRouter is the recommended first key.
Install and start it
Install the npm package globally and run anus in the folder you want to work on. A shell installer is also offered.
npm install -g @anus-dev/anus
anus
# or
curl -fsSL https://anus.dev/install | shAdd free keys
On first run ANUS asks for at least one free key (OpenRouter, Google Gemini, Groq, Cerebras or Mistral). Add or change keys any time; keys are stored in ~/.anus/agent/auth.json, readable only by you.
anus setupRun a task
Work interactively, or hand it a single task that prints the answer and exits. Continue the last session with -c. Inside a session, /free shows which models are awake.
anus -p "fix the failing test"
anus -cKeep it updated
Update in place; anus --help lists everything else.
anus updateCommands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Try an agentic coding workflow — reading code, editing files, running commands — without paying for a subscription or API credits
- Pool several providers' free tiers behind one agent so a rate-limited model doesn't stall the session
- Run quick one-shot fixes from the shell with anus -p, e.g. in a scratch repo or side project
How ANUS compares
ANUS alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| opencode | ★ 230k | OpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app. |
| Claude Code | ★ 158k | Anthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands. |
| Orca | ★ 147k | Open-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app. |
| OpenAI Codex | ★ 137k | OpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel. |
| Pi | ★ 125k | Minimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks. |
| Gemini CLI | ★ 109k | An open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web. |
| autoresearch | ★ 101k | Karpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own. |
| ANUS | ★ 6.6k | A free terminal coding agent that routes every request to the smartest free model that is answering, and fails over to the next one when it is rate-limited |
