Janus is a terminal coding agent that reads code, edits files, and runs commands. It routes each request through free models you key for, falling back when one is busy or capped.
Overview
Janus is a coding agent you run in the terminal. It works through your project folder like paid terminal agents: it can read and change files and execute commands on your behalf, while you pay nothing for model usage.
You configure at least one free API key during setup, typically starting with OpenRouter. More keys from supported providers increase daily free capacity and widen the pool of models Janus can try. Keys are managed with janus setup and can be changed at any time.
Janus maintains a ranked list of free models, including which ones recently responded to health checks. On each request it picks the best awake model you can access; if a model hits a rate limit, daily cap, or fails mid-answer, the same request moves to the next candidate without you waiting manually. You can inspect the list with /free and force a specific model with /model.
Sessions, keys, and cached model data live under ~/.janus/agent on your machine. Traffic goes only to the model services whose keys you supplied, unless you opt in to using existing paid environment keys. The tool is built on the pi terminal agent engine and adds free-model routing, setup flows, and its own interface on top.
Key features
- Terminal-based code editing and command execution
- Ranked free model list with automatic fallback
- OpenRouter catalogue sync for free tool-capable models
- Interactive session and one-shot task mode
- Key setup isolated from paid shell credentials
- /free model status and manual model override
- Conversation compaction and inline shell via !
- Optional Co-Authored-By line on generated commits
Use cases
- Fixing tests or bugs from a single prompt
- Ongoing coding help in a project directory
- Trying coding agents without paid API spend
- Routing across multiple free-tier providers
- Continuing a prior agent session