# 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

- Category: AI Coding / Autonomous Coding Agents
- Language: JavaScript
- Licence: MIT
- Repository: https://github.com/anus-dev/ANUS
- Website: https://anus.dev
- Canonical page: https://ai-tldr.dev/tools/anus/
- Updated: 2026-09-29

## In short

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.

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

```bash
npm install -g @anus-dev/anus
anus

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

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

```bash
anus setup
```

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

```bash
anus -p "fix the failing test"
anus -c
```

4. Keep it updated

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

```bash
anus update
```

## 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

## Version history

- 2026-09-29 v0.2.2: 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.
