A free coding agent in your terminal.
Open-source alternative to Claude Code and Cursor and GitHub Copilot
A free coding agent in your terminal.
READMEjanus-sh/Janus on GitHub
A free coding agent in your terminal. It reads your code, edits files and runs commands, like the paid ones. The difference: every request goes to the smartest free model that is answering today, and when one says "not now", the next one takes the same request. You pay nothing.
npm install -g @janus-sh/janus
janus
Needs Node.js 22.19 or newer.
Janus asks for at least one free key. Each takes a minute to get:
| Service | Get a key | What is free |
|---|---|---|
| OpenRouter | openrouter.ai/keys | about a dozen free models; 50 requests a day, 1000 after a one-time $10 top-up |
| Google Gemini | aistudio.google.com/apikey | free tier while billing is off on the project; not offered in every country |
| Groq | console.groq.com/keys | free plan; 8K tokens a minute, so big files hit the limit quickly |
| Cerebras | cloud.cerebras.ai | not free any more: a $5 trial for 30 days, and it asks for a card. Optional |
Start with OpenRouter. More keys mean more free requests a day and more models to fall back on. Change keys any time with janus setup. Checked against each service's own pages on 2026-11-26; free tiers change, so the line above beats this table.
lib/free-models.json; Janus downloads the latest copy at start./free marks it new)./free to see the whole list: awake, resting, or no key.janus setup. Paid keys in your shell (OPENROUTER_API_KEY and friends) are ignored, so a free agent never spends your money. JANUS_ENV_KEYS=1 lets it use them.janus | start in the current folder |
janus -p "fix the failing test" | one task, print the answer, exit |
janus -c | continue the last session |
janus setup | add or change free keys |
janus update | update Janus |
janus doctor | what Janus would use right now: keys found (names only), services reachable, the model list, the next three models. Paste it into a bug report |
janus --help | everything else |
Inside: /help for the basics, /free shows the models, /model picks one by hand (janus/free is the automatic one), /compact shrinks a long conversation, !ls runs a shell command.
Everything is in ~/.janus/agent: keys (auth.json, readable only by you), settings, sessions, and the cached model list. Nothing is sent anywhere except to the model services you gave keys for. JANUS_DEBUG=1 writes every routing decision to ~/.janus/agent/janus-debug.log.
When Janus makes a commit, it adds one line at the end: Co-Authored-By: Janus <[email protected]>. Aider and OpenCode do the same. Don't want it? Put "janusCoauthor": false in ~/.janus/agent/settings.json, or run with JANUS_COAUTHOR=0.
Open an issue: the error text and what you ran.
Janus is maintained by an AI agent: it writes the code and the releases and reads the issues here. A human holds the keys.
The repository began in 2025 as an agent framework; that version lives on in the legacy-2025 branch. Tampere University evaluated it as one of 22 agent frameworks in an independent study, where it appears under the project's earlier name.
The engine is pi by Earendil Works (MIT), installed as a dependency: its terminal interface, tools, sessions and providers. Janus adds the free-model router, the key setup, its own name and its own look. Thank you, pi.
The look (block logo font, colors, loading phrases) comes from this project's 2025 CLI (0.1.0, Apache-2.0); see NOTICE.
MIT
Last updated from GitHub: 20 minutes ago
GitHub numbers are refreshed a few times a day.
The chart fills in as daily star counts are collected.
Every open-source alternative to Claude Code and Cursor and GitHub Copilot listed here, side by side. Click a column to sort.
DeepSeek Harness | 289k | – | MIT | 2 days ago | – |
|---|---|---|---|---|---|
Hermes Agent | 267k | – | MIT | 24 minutes ago | – |
OpenCode | 230k | – | MIT | 3 hours ago | – |
Claw Code | 195k | – | MIT | 1 day ago | – |
Codex CLI | 137k | – | Apache-2.0 | 32 minutes ago | – |
Pi | 125k | – | MIT | 1 hour ago | – |
Gemini CLI | 109k | – | Apache-2.0 | 1 hour ago | – |
OpenHands | 94.6k | – | MIT | 1 hour ago | – |
T3 Code | 84.6k | +10k | MIT | 6 hours ago | – |
Cline | 72k | – | Apache-2.0 | 12 hours ago | – |
MetaGPT | 71.5k | – | MIT | 10 months ago | – |
Open Interpreter | 69k | – | Apache-2.0 | 1 day ago | – |
Log in or create an account to comment.
No comments yet. Be the first.
Show it off: a live card with your rank and rating, updated by itself.
Prefer the small one? Add ?style=flat