CLI
@lunaroute/cli configures the coding harness you already use to route through
LunaRoute, and gives you the catalog, pricing, usage, and project memory from
your terminal.
Install
Section titled “Install”npm install -g @lunaroute/cliRequires Node.js 20+.
lunaroute setup pi # or: claude-code | opencode | openclaw | hermes | copilot-cli | genericsetup asks before writing. Where an extension exists (pi, opencode) it
offers to install it — models then sync automatically and you sign in inside the
harness. Otherwise it offers to run lunaroute login (opens your browser) before
writing a config.
Already have a key?
lunaroute setup pi --key lr_… --yesFlags: --extension / --models pick a flow, --yes accepts all prompts,
--print previews without writing.
Run a session
Section titled “Run a session”lunaroute run claude # or: claude-code | codexStarts the harness wired to LunaRoute for this session. --model picks from the
catalog; everything after -- passes through to the harness.
Catalog, pricing, usage
Section titled “Catalog, pricing, usage”lunaroute modelslunaroute pricinglunaroute usageMemory
Section titled “Memory”lunaroute memory search "why did we pin the tz"lunaroute memory read <conversation-id>Project memory searches your past agent conversations for the current project — also available inside your agent as an MCP server:
lunaroute mcp # stdio MCP server exposing the memory toolslunaroute skill install # wire the memory skill + MCP into Claude CodeThis is a local, stdio server, separate from the hosted
MCP server at mcp.lunaroute.com.
Running a personal agent (OpenClaw, Hermes, NanoClaw)? See Personal assistants.
Accounts
Section titled “Accounts”lunaroute login # authorize this device and store a keylunaroute whoami # signed-in user and organizationlunaroute logout # remove stored credentialsAll commands accept --profile <name> for multiple credential profiles;
models, pricing, usage, and the memory commands accept --json.