Skip to main content Switch to mobile version roadmodel 0.2.104 BYO-key CLI that recommends the right AI model, platform, and settings for a prompt.
pip install roadmodel==0.2.104 Copy PIP instructions
A BYO-key command-line tool that recommends which AI model on which platform with which settings for a given prompt. Point it at a task description, and it returns a labeled block — MODEL / BACKUP / PLATFORM / CONVERSATION / RATIONALE, plus the setting fields the chosen platform actually exposes — grounded in a bundled benchmark and pricing catalog (Cursor pricing, Artificial Analysis, LiveCodeBench, τ²-bench, SWE-bench, MMMU, LMArena) and filtered against your own subscriptions and API keys. Built for developers who use several AI subscriptions (Claude Code, Cursor, Codex / ChatGPT, raw provider APIs) and want a deterministic answer to "what should I use for this?" instead of guessing. The same answer drives a project-agnostic planning workflow — roadmap → phase roadmaps → one step per AI conversation, each with its own model, branch, PR, and a completion that means done — described in The planning workflow below.
The same package ships three surfaces, all reading one bundled catalog:
roadmodel's second job is a repeatable loop for running a project with AI coding agents, in which the recommender is the step that picks the model. The loop is the same in every repo, in every language, on every machine where the commands are installed:
/roadmap-project brief.md docs/roadmap/ROADMAP.md from YOUR brief — files or a description of what the project should become (with neither, it asks first): phases, acceptance criteria, the security / release / operations strategy, and the model that writes each phase's roadmap /roadmap-phase 1 docs/roadmap/phase01-roadmap.md — Phase 1 broken into steps; each names its branch, its model and settings, and carries a prompt /roadmap-step 1 1 a NEW chat runs Step 1: branch → work → PR → /roadmap-step 1 2 merge → "Step 1 is complete." One step per … conversation; no work straddles two steps What the loop guarantees, independent of the project:
One step, one conversation, one PR. A step is the unit of work an agent can finish and a human can review. Its block carries a six-stage lifecycle — branch, work behind a security gate, PR, green checks + squash-merge, retire the branch, declare — that the agent must complete before it may call the step done.
The model is chosen per step, not per project. Each step's Settings table (model, platform, effort, thinking) comes from running the bundled selector against your own subscriptions and keys — by the AI already open in your editor, at $0 marginal cost. Each phase also names the model and effort that write its roadmap, picked quality first, and /roadmap-phase checks the session against them.
"Done" means done. A step ends with "Step N is complete. You can now move on to Step N+1." and nothing after it. Every finding the step surfaced has already been dispatched — roadmap edited, issue opened, note in the PR body — or the agent says the step is NOT complete and names what is outstanding.
The roadmap on main is the ledger. The step's own PR flips its **Status:** line to Complete — PR #n, so progress is recorded exactly when the work merges, and the next step refuses to start until the previous one reads Complete.
Security, release, and operations are per-step gates, not a final phase. Every step runs the same pre-commit security gate, and a step that touches a deployed surface is done at post-deploy verification, not at merge.
Setup is once per machine (/roadmodel-upgrade keeps every project's copy current after that); the commands then work in any project. New here? docs/getting-started.md takes you from install to a first roadmap on one machine, or on two (a Mac and a PC). Command by command: docs/planning-workflow.md.
pip install roadmodel Python 3.11 or newer.
roadmodel's benchmark and pricing catalog — and the planning templates — are bundled inside the installed wheel. The CLI, MCP server, and planning kit all read that offline copy, so they only know about the models and the template rules that shipped with the version you have. New models, price changes, availability edits, and template changes land upstream (a daily job keeps the catalog current) and reach you when a new release ships them.
pip install -U roadmodel CLI — the next roadmodel recommend uses the fresh catalog. Confirm with roadmodel version; inspect with roadmodel catalog show.
MCP server — upgrade in the environment where roadmodel-mcp lives (pip install -U "roadmodel[mcp]") and restart the MCP client. Registered once at user scope via roadmodel setup-mcp, that one environment serves every project.
Planning kit — the exported kit is a snapshot at export time, so upgrade then roadmodel export-kit . --force to refresh it. The /roadmap-project and /roadmap-phase commands do both as their Step 0.
Every project on a machine — /roadmodel-upgrade
Projects that each carry roadmodel in their own conda env or venv would otherwise be upgraded one at a time. Instead, from any Claude Code chat:
/roadmodel-upgrade # every registered project /roadmodel-upgrade ~/code/app-one … # register these dirs, then run /roadmodel-upgrade --install-schedule # once: also run daily, unattended /roadmodel-upgrade --refresh-roadmaps # also run /roadmap-refresh in every project The command runs the updater that ships inside the roadmodel package (scripts/update_projects.py, stdlib only, Python 3.9+), taken from the latest PyPI release and never fetched from main. The script reads ~/.config/roadmodel/projects.txt — one project dir per line, optional | conda: / | venv: override — detects each project's environment (a .venv/venv/env dir, the name: in environment.yml, a conda env named like the folder, or a conda env inside the project; never base by guesswork), then concurrently upgrades roadmodel in every one, re-exports planning/ where a kit exists, installs the released /roadmap-* command files, and prints one table. Same script on Windows, macOS, and Linux; --install-schedule [HH:MM] registers a daily run (Task Scheduler / launchd / cron, logged to ~/.config/roadmodel/update.log) so every project follows each release within a day. The updater keeps itself current the same way: it ships in the package, and each run hands over to the copy in the latest release. Details: docs/planning-workflow.md §5.
See CHANGELOG.md for what each release changed.
MCP (Model Context Protocol) is the open standard that lets an AI client — Claude Code, Cursor, Claude Desktop — call tools that live in a separate program: the client starts the server as a subprocess, asks it what tools it has, and calls them by name while you chat. roadmodel's server turns the recommender into such a tool, so the AI in your editor can ask "which model for this task?" and get a structured, deterministic answer instead of guessing.
Install the MCP runtime with pip install "roadmodel[mcp]" to enable the roadmodel-mcp stdio server entrypoint; plain pip install roadmodel keeps the SDK optional and does not install mcp. The server exposes four tools — recommend_model, generate_phase_roadmap, read_catalog, and score_candidates — to any MCP-compatible client (Cursor, Claude Code, Claude Desktop, VS Code + Continue). Per-client registration walk-throughs live in docs/mcp-setup.md; tool signatures and return schemas are documented in docs/mcp-tools.md.
Planning kit ($0 marginal recommendations)
To author project/phase roadmaps with per-step model recommendations in another project, export the planning kit into it and let the AI already open in your editor (e.g. Claude Code on a flat plan) run the selector in its own context — no per-call API spend, just the editor session you already pay for.
Cross-platform (recommended). With roadmodel installed, one command writes the kit on Windows, macOS, or Linux — no shell or network needed:
cd /path/to/other-project roadmodel export-kit # writes ./planning with selector + cost-scale # + templates + HOW-TO-USE + your user-context It uses the catalog bundled in the installed wheel, so refresh with pip install -U roadmodel and re-run roadmodel export-kit at the start of each phase. Flags: --dest , --force (overwrite an existing kit user-context.md), --user-context .
Shell alternative. From a reviewed checkout, the bash wrapper uses a security-fixed released CLI (0.2.81+), bootstrapping it in a temporary venv if necessary. It does not install into the target project's environment:
scripts/export-planning-kit.sh /path/to/other-project Flags: --dest , --force, --user-context , and --local (explicit developer mode using this checkout's code and docs, including edits). --ref is retired; review a checkout before using --local. Existing private context is kept unless --force has a real source to copy. Both exporters refuse redirected destinations and tracked private context, and install Git exclusions before writing it. POSIX copies use mode 0600; on Windows, account isolation also depends on the destination's inherited ACLs.
Day-to-day: the kit is driven by the five user-scope commands in docs/claude-commands/ — /roadmap-project, /roadmap-phase N, /roadmap-step P M (executes a step), /roadmap-refresh (bookkeeping only: marks shipped steps and re-selects upcoming Settings, runs nothing), /roadmodel-upgrade — see The planning workflow above for the loop and docs/planning-workflow.md for setup and per-command detail. The same five are generated for Gemini CLI (~/.gemini/commands/*.toml), Codex and Cursor (one ~/.agents/skills/*/SKILL.md both read; $roadmap-step in Codex, /roadmap-step in Cursor), and OpenCode (~/.config/opencode/commands/*.md), installed by /roadmodel-upgrade wherever those tools are present.
Either way the in-editor AI runs the algorithm itself rather than calling the recommender service. Use the MCP server above instead when you want deterministic, structured recommendations in a script or CI.
Three steps from a fresh install to a parsed recommendation block.
1. Export an API key for any one of the three providers. Anthropic shown here; OpenAI and Google work the same way — see docs/byo-key-setup.md for the full guide.
export ANTHROPIC_API_KEY=sk-ant-... 2. Run roadmodel recommend once to bootstrap your user-context file. On the first invocation, the CLI writes a copy of the bundled template to ~/.config/roadmodel/user-context.md (or $XDG_CONFIG_HOME/roadmodel/user-context.md when XDG_CONFIG_HOME is set), prints a one-line stderr notice telling you what it did, and exits without calling the provider. Open the file and replace the $XXX and Yes/No placeholders with your actual subscription amounts and API-key state. The full field-by-field walk-through lives in docs/user-context-setup.md.
roadmodel recommend "Refactor auth middleware across 12 files" # stderr: Created /home/you/.config/roadmodel/user-context.md from # bundled template. Edit it with your real subscription # state, then re-run. $EDITOR ~/.config/roadmodel/user-context.md 3. Re-run. With the user-context filled in, the same command calls your chosen provider and prints a parsed recommendation block:
Pass --json to emit the same fields as machine-readable JSON, or --file PATH to read the prompt from disk.
roadmodel ships with no provider key built in — it calls your provider account on every recommendation and charges that account. Set any one of these environment variables and the CLI auto-selects that provider (the first present, in table order):
The full guide — generating keys in each provider's console, storing them in a shell profile or ~/.config/roadmodel/config.toml, precedence rules, verifying with a smoke call, and which engines have been eval-verified — is docs/byo-key-setup.md.
roadmodel reads a per-user Markdown file describing your active subscriptions, API keys, platform preference order (and optional platform allow/deny list), budget posture, and — in its "Local models (Ollama)" table — which open-weight models you have pulled onto your own machine, so the step can pick a platform (including Ollama (local) at $0 per token, or the OpenRouter aggregator when you declare that key) and the settings that platform exposes alongside the model. The resolved default path is ~/.config/roadmodel/user-context.md (or $XDG_CONFIG_HOME/roadmodel/user-context.md when XDG_CONFIG_HOME is set); override it for a single run with --user-context PATH or for a whole shell with ROADMODEL_USER_CONTEXT=PATH. The full walk-through — first-run bootstrap, full precedence chain, field-by-field schema, when to update — is docs/user-context-setup.md.
Running more than one coding agent — because a usage pool runs out, a provider goes down, or a task suits a different model? docs/agent-parity.md maps every surface (instructions, memory, skills, slash commands, MCP servers, model, effort, permissions) across Claude, Codex, Gemini and open-source clients in any direction, and carries one parameterised prompt that makes the target agent sync itself. roadmodel-upgrade keeps the roadmap commands, the roadmodel MCP server and the reasoning-effort default in parity automatically.
The CLI ships three documents as package data: model-selector.txt (the selection algorithm and the per-model access-methods catalog), model-tier-cost-scale.md (per-token prices and tier ratings), and user-context.example.md (the user-state template). At recommendation time, roadmodel recommend reads your filled-in user-context.md from disk, concatenates the three docs into a single system prompt, and calls the provider you configured. The provider returns a MODEL / BACKUP / PLATFORM / CONVERSATION / RATIONALE block — plus the setting fields the chosen platform exposes — following the specification inside model-selector.txt. MODEL is chosen by against your prompt's task category and complexity; PLATFORM and the settings that come with it are filled by the step, which depends on the subscriptions and API-key state declared in your user-context.md. Because the platform decides which dials exist, the field set varies per block: an effort/thinking surface emits EFFORT + THINKING (EFFORT alone for a model that always thinks), Cursor emits MAX MODE, and a dial the surface does not have is left out entirely instead of being reported as Off or N/A.
Each model carries a per-category capability rating on an S → D scale — a rating is a class several models can share, and the /models catalog shows each category's headline benchmark figure plus the Artificial Analysis Intelligence Index next to the letters so models within a class can be told apart — and the recommender grounds its rationale in public benchmarks (SWE-bench Verified, τ²-bench, Terminal-Bench, Humanity's Last Exam, and more). See docs/benchmarks-and-ratings.md for what the scale means and a linked index of every benchmark the recommender cites — in the web app, each benchmark term in a recommendation's rationale links straight to its source.
Phases 1–3 have shipped: the open-source CLI (Phase 1), the MCP server and catalog v2 (Phase 2), and the marketing site with an anonymous web recommender at roadmodel.ai (Phase 3 — currently pre-launch, behind a gate). Phase 4 (accounts and the AI-assisted roadmap builder) is in progress; the planning kit and its /roadmap-* workflow are the open-source half of that builder and are what this repo's own phases are executed with. The project was previously named model-selector and was renamed to roadmodel ahead of the public release; the bundled-doc filename model-selector.txt is preserved so existing references in other projects keep working. Until v1.0.0, expect breaking changes to the CLI surface between minor versions; each is listed in CHANGELOG.md.
See ROADMAP.md for the phase plan and shipping order.
See CONTRIBUTING.md for branch naming, pull request scope, the catalog-edit process, and the Code of Conduct that applies in community spaces. Report security issues privately per SECURITY.md.
Licensed under the Apache License, Version 2.0. Bundled third-party attributions are listed in NOTICE.
Both files in this release have provenance metadata.
Apache Software License (Apache License)
ai anthropic cli gemini llm model-selection openai
Development Status 3 - Alpha
Intended Audience Developers
License OSI Approved :: Apache Software License
Operating System OS Independent
Programming Language Python :: 3
Topic Software Development
Release files for roadmodel 0.2.104
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.0 MB
Release files / roadmodel-0.2.104.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Release files / roadmodel-0.2.104-py3-none-any.whl
Security for roadmodel 0.2.104
Both files in this release have been uploaded with provenance metadata.
With provenance roadmodel-0.2.104.tar.gz Oct 29, 2026
With provenance roadmodel-0.2.104-py3-none-any.whl Oct 29, 2026
Attestation for roadmodel-0.2.104.tar.gz
Attestation for roadmodel-0.2.104-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 30, 2026 2 release files Full provenance
Nov 26, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 16, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
Nov 2, 2026 2 release files Full provenance
Nov 1, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 29, 2026 2 release files Full provenance
Oct 28, 2026 2 release files Full provenance
Oct 26, 2026 2 release files Full provenance
Oct 25, 2026 2 release files Full provenance
Oct 24, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 22, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 15, 2026 2 release files Full provenance
Oct 14, 2026 2 release files Full provenance
Oct 13, 2026 2 release files Full provenance
Oct 12, 2026 2 release files Full provenance
Oct 10, 2026 2 release files Full provenance
Oct 9, 2026 2 release files Full provenance
Oct 8, 2026 2 release files Full provenance
Oct 7, 2026 2 release files Full provenance
Oct 6, 2026 2 release files Full provenance
Oct 3, 2026 2 release files Full provenance
Oct 2, 2026 2 release files Full provenance
Oct 1, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 29, 2026 2 release files Full provenance
Sep 26, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 24, 2026 2 release files Full provenance
Sep 23, 2026 2 release files Full provenance
Sep 20, 2026 2 release files Full provenance
Sep 17, 2026 2 release files Full provenance
Sep 12, 2026 2 release files Full provenance
Sep 5, 2026 2 release files Full provenance
Aug 12, 2026 2 release files Full provenance
Jul 22, 2026 2 release files Full provenance
Jul 21, 2026 2 release files Full provenance
Jul 19, 2026 2 release files Full provenance
Jul 16, 2026 2 release files Full provenance
Jul 5, 2026 2 release files Full provenance
Jul 4, 2026 2 release files Full provenance
Jul 3, 2026 2 release files Full provenance
Jul 2, 2026 2 release files Full provenance
Jun 29, 2026 2 release files Full provenance
Jun 15, 2026 2 release files Full provenance
Jun 13, 2026 2 release files Full provenance
Jun 6, 2026 2 release files Full provenance
Jun 4, 2026 2 release files Full provenance
Jun 1, 2026 2 release files Full provenance
May 31, 2026 2 release files Full provenance
May 17, 2026 2 release files Full provenance
May 16, 2026 2 release files Full provenance
May 15, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




