Janus is a free, open source ai development platforms project written in JavaScript and released under MIT. It has 6,557 GitHub stars, 917 forks and 5 open issues, and was last pushed 5 days ago. On this registry it ranks #94 of 167 tracked projects in AI Development Platforms, with 5 head-to-head comparisons available. It gained 1 stars over the last 6 tracked days.

What is Janus?

Janus is an MIT-licensed coding agent that runs in your terminal, reads your code, edits files and runs commands, and sends every request to the smartest free large language model that is answering at that moment — built for developers who want agentic coding help without paying for model access.

What it is

Janus is a JavaScript command-line coding agent distributed on npm as @janus-sh/janus. It lives in the terminal, alongside the rest of your shell tooling, and behaves like a paid coding agent: it reads the code in the folder you start it in, edits files, and runs commands on your behalf. The distinguishing mechanic is not the interface but the backend. Instead of one model behind a subscription, Janus keeps a ranked list of free models, sends each request to the best one you hold a key for that is currently awake, and hands the same request to the next model when the first says "not now".

The concrete problem it solves is the fragility of free model tiers. Free access exists in quantity, but individual models hit rate limits, exhaust daily caps, break off mid-answer, or quietly stop being free, so a tool bound to a single free endpoint is unreliable by design. Janus replaces that single-provider arrangement with a rotation: a model that hits its rate limit rests for a minute, one that hits its daily cap rests until the cap resets, and a model that breaks off mid-answer rests while the turn is retried on the next candidate. The request moves on without waiting.

Key capabilities

  • Ranked free-model routing, driven by a list in the repository at lib/free-models.json that Janus downloads at start, so the ordering reflects which models are smartest and which answered a ping in the last hours.
  • Live catalogue checks when an OpenRouter key is present: a model that stopped being free is skipped immediately, and a newly free tool-capable model joins the end of the list the same day, marked new under /free.
  • Support for several free key sources configured through janus setup: OpenRouter, Google Gemini, Groq, and Cerebras on its paid trial.
  • Spend protection: Janus uses only the keys given to it in janus setup, and ignores paid keys such as OPENROUTER_API_KEY in your shell unless JANUS_ENV_KEYS=1 is set.
  • One-shot and resumable sessions through janus -p "fix the failing test" for a single printed task, and janus -c to continue the last session.
  • Diagnostics via janus doctor, which reports keys found by name only, services reachable, the model list and the next three models, plus JANUS_DEBUG=1 to write every routing decision to ~/.janus/agent/janus-debug.log.
  • In-session commands including /free for the model list, /model to pick one by hand, /compact to shrink a long conversation, and !ls to run a shell command.

Who uses it and how

  • Individual developers working to a zero model budget, who start janus in the current folder and let the footer show which model answered each turn.
  • Users who collect several free keys, since more keys mean more free requests a day and more models to fall back on when one is resting.
  • Scripted or non-interactive workflows that call janus -p "" for one task, print the answer and exit.
  • Long-running work where /compact trims a conversation that has grown too large, and janus -c picks the thread back up in a later shell.
  • Privacy-minded users who keep paid credentials out of reach by leaving them in the shell rather than in janus setup, with all state held locally in ~/.janus/agent.

Getting started

Install with npm install -g @janus-sh/janus and run janus, which requires Node.js 22.19 or newer and asks on first run for at least one free key, with OpenRouter recommended as the starting point. Keys can be changed at any time with janus setup.

How it compares

The facts position Janus as a claude-code-alternative, and its practice of appending a Co-Authored-By: Janus line to commits is noted as matching what Aider and OpenCode do. Beyond those named tools, the supplied facts do not set out a head-to-head comparison, so the honest summary is that Janus differs from a paid coding agent chiefly in routing requests across free tiers under your own keys rather than billing you for a model.

When to use it — and when not to

Choose Janus if you can run Node.js 22.19 or newer, are willing to obtain free keys, and accept that free tiers change: the README notes that Google's free plan and the provider behind a free OpenRouter model may use what you send to improve their models, so secrets should be kept out of the folder Janus runs in. The limits are real rather than incidental — Groq's 8K tokens a minute means big files hit the ceiling quickly, Cerebras is no longer free, and an OpenRouter key gives about 50 requests a day, or 1000 after a one-time $10 top-up. Teams needing guaranteed throughput or strict data-handling terms, and anyone who wants agent capacity that respects file size without thinking about it, should look elsewhere.

project readme (upstream, from github) — read inline

Janus

npm license

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.

First run

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.

How "free" works

  • Janus keeps a ranked list of free models: which ones are smartest, and which answered a ping in the last hours. The list is a file in this repository, lib/free-models.json; Janus downloads the latest copy at start.
  • With an OpenRouter key, Janus also checks OpenRouter's own catalogue at start: a model that stopped being free is skipped right away, and a new free model that can use tools joins the end of the list the same day (/free marks it new).
  • Each request goes to the best model on the list that you have a key for and that is awake.
  • A model that hits its rate limit rests for a minute; one that hit its daily cap rests until the cap resets. The request moves on without waiting.
  • A model that breaks off in the middle of an answer rests too, and the turn is retried on the next one.
  • The footer shows which model answered. Type /free to see the whole list: awake, resting, or no key.
  • Free tiers pay for themselves with your data: Google's free plan may use what you send to improve their models, and so may the provider behind a free OpenRouter model. Keep secrets out of the folder you run Janus in.
  • Janus uses only the keys you gave it in 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.

Commands

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.

Where things live

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.

Credit in commits

When Janus makes a commit, it adds one line at the end: Co-Authored-By: Janus . Aider and OpenCode do the same. Don't want it? Put "janusCoauthor": false in ~/.janus/agent/settings.json, or run with JANUS_COAUTHOR=0.

Found a bug

Open an issue: the error text and what you ran.

About Janus

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.

Built on pi

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.

License

MIT

Frequently asked questions

Is Janus free to use?

Janus is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Janus do?

A free coding agent in your terminal. It runs on the smartest free model that is up today.

What is Janus written in?

Janus is primarily written in JavaScript. Its source is publicly available at https://github.com/janus-sh/Janus, and it has 6,557 GitHub stars.