aireserve CLI is the fastest way to route your coding agents through
AI Reserve. One command installs it and configures every supported agent it
finds on your machine:
What you get
- Native model pickers. Every gateway model appears in Claude Code’s
/modelpicker and Codex’s model picker with real display names, context windows, and reasoning-effort options you can toggle with the arrow keys. Models outside the Claude family appear in Claude Code under self-naming ids likeclaude-air-gpt-5.6-sol[1m]— the id always names the model that serves the request, and the gateway records both. - Session cost in your status line. Claude Code’s status line shows the session’s actual server-computed spend and your remaining credits.
- Freshness for free. A session-start hook refreshes the model catalog at most every 12 hours, in the background, without delaying your session.
- A real undo.
aireserve router unconfigurerestores your previous settings exactly — every value the CLI touched is recorded before it is changed, and anything you edited yourself afterwards is left alone.
Commands
AIRESERVE_API_KEY in the environment instead of --api-key to keep
the key out of shell history. Non-production gateways: add
--base-url https://<your-uat-gateway> (keys are environment-specific).
Escape hatches
The CLI never locks you in:claude --settings ~/.claude/original.settings.jsonruns one Claude Code session on the setup that existed before the CLI configured anything.codex --profile originaldoes the same for Codex.aireserve router unconfigureremoves everything permanently and restores the recorded values.
Requirements
- macOS or Linux (x64/arm64). Windows: install via WSL for now.
- Claude Code ≥ 2.1.118 (the version that shows gateway models by their real names) and/or Codex CLI ≥ 0.147 (the version with catalog support).