█

AI/TLDR

Buy me a coffee
Buy me a coffee

ANUS

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

Autonomous Coding AgentsOpen source
Latest
v0.2.2
Updated
29 Sep 2026
Language
JavaScript
License
MIT
$npm install -g @anus-dev/anus

What's new

v0.2.229 Sep 2026

ANUS 0.2.2 appends a Co-Authored-By: ANUS trailer to commits it makes (opt out with "anusCoauthor": false or ANUS_COAUTHOR=0), anus --version no longer needs a writable home folder, and a folder it can't write to no longer stops it.

IN SHORT

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.

Updated Markdown version ↗

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.

ANUS terminal session with a prompt to write a haiku into mars.txt, answered by a free OpenRouter model shown in the footer
An ANUS session; the footer names the free model answering the turnANUS repository ↗

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.

bashbash
npm install -g @anus-dev/anus
anus

# or
curl -fsSL https://anus.dev/install | sh

Add 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.

bashbash
anus setup

Run 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.

bashbash
anus -p "fix the failing test"
anus -c

Keep it updated

Update in place; anus --help lists everything else.

bashbash
anus update

Commands 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.

ToolStarsWhat it does
opencode★ 230kOpenCode 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★ 158kAnthropic'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★ 147kOpen-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★ 137kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Pi★ 125kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
Gemini CLI★ 109kAn 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★ 101kKarpathy'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.6kA 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