Purpose: Janus is a free coding agent that runs in the terminal, positioned similarly to paid coding assistants, able to read code, edit files, and run commands. Its core feature is that every request is sent to the smartest free model available that day, at no cost to the user.
Key capabilities: Janus maintains a list of free models sorted by intelligence, and records which models have responded to probe requests within the last few hours. At startup it downloads the latest copy of that list. If an OpenRouter key is configured, startup also checks OpenRouter's own catalog: models that are no longer free are skipped immediately, and newly appearing free models that support tool calling are added to the end of the list that day (marked as new in /free). Each request is sent to the best model in the list for which the user has a key and which is available. A model that hits its rate limit rests for one minute; a model that hits its daily cap rests until the cap resets, and the request continues to the next model without waiting. A model that is interrupted mid-answer also enters a resting state, and that turn is retried on the next model. The footer shows which model produced the answer.
Usage: Node.js 22.19 or higher is required. Janus requires at least one free key to be provided; each key takes about a minute to obtain, and starting with OpenRouter is recommended; the more keys, the more daily free request quota and the more models to fall back on. Keys can be changed at any time via janus setup. In the terminal, /help shows basic operations, /free shows the full model list (available, resting, or no key), /model manually selects a model (janus/free is automatic mode), /compact compresses an overly long conversation, and !ls runs a shell command. All data is stored in ~/.janus/agent, including keys (auth.json, readable only by the user), settings, sessions, and the cached model list; no data is sent anywhere other than to model services for which a key is configured. Setting JANUS_DEBUG=1 writes each routing decision to ~/.janus/agent/janus-debug.log.
Limitations and cautions: Free quota comes at the cost of user data; Google's free tier and the providers behind free OpenRouter models may use content sent by users to improve their models, so do not place confidential information in the folder where Janus runs. Janus only uses the keys provided in janus setup ; paid keys in the shell (such as OPENROUTER_API_KEY, etc.) are ignored, so that the free agent does not spend the user's money; setting JANUS_ENV_KEYS=1 allows it to use those keys. When Janus commits code, it appends a line at the end: Co-Authored-By: Janus janus-sh@users.noreply.github.com; this can be disabled by setting "janusCoauthor": false in ~/.janus/agent/settings.json or by using JANUS_COAUTHOR=0. The project is maintained by an AI agent, which writes code, publishes releases, and reads issues, while humans hold the keys. The repository began as an agent framework in 2025, with older versions kept on the legacy-2025 branch; the engine is pi from Earendil Works (MIT licensed), installed as a dependency, and Janus adds free model routing, key setup, its own name, and its own appearance on top of it.