Command Reference
inf pass
Connect your Inference Pass subscription to local coding agents and desktop apps with automatic plan detection, config repair, and a loopback reverse proxy.
inf pass connects your active Inference Pass subscription to Claude Code, Claude Desktop, OpenCode, Codex, Pi, and Grok. It detects your active plan, provisions and verifies a plan API key via GET /v1/usage, selects a tool-supporting model from your plan's GET /v1/models catalog, and backs up existing agent configs before writing.
Quick Start
inf auth login
inf pass on claude
inf pass statusSubcommands
inf pass on [harness] (alias setup)
Connect one or more local coding agents to your active Inference Pass plan.
- Supported agents:
claude(Claude Code),claude-desktop(Claude Desktop),opencode(OpenCode),codex(Codex),pi(Pi),grok(Grok). - If
[harness]is omitted,inf pass ondetects installed agents and prompts when multiple are present. - Existing configuration files are snapshotted on first setup. Running
inf pass offrestores each managed file to that pre-setup snapshot, which reverts any edits made to those managed files after setup (if no snapshot exists,inf pass offremoves only Inference Pass-managed entries).
| Flag | Default | Description |
|---|---|---|
--all | false | Configure all detected coding agents (or all supported agents when none are detected) |
--model <id> | Best tool-supporting plan model | Pin a specific model ID included in your plan |
--port <port> | 4141 | Local proxy port written into Claude Desktop's third-party gateway profile |
--team <id> | Auto-detected | Select a specific team's Inference Pass plan (accepts team ID, name, or personal) |
--json | false | Emit structured JSON output |
inf pass on claude
inf pass on opencode --model deepseek-v4.1-flash-1017
inf pass on claude-desktop --port 4141
inf pass on --allinf pass off [harness]
Disconnect coding agents from Inference Pass and restore backed-up settings (or remove Inference Pass-managed fields cleanly when no backup exists).
| Flag | Default | Description |
|---|---|---|
--all | false | Disconnect all connected coding agents |
--json | false | Emit structured JSON output |
inf pass off claude
inf pass off claude-desktop
inf pass off --allinf pass status (alias usage)
Show active Inference Pass plans, live usage allowance (GET /v1/usage — lane, % remaining, reset time, in-flight concurrency limit), and the health status of connected coding agents.
inf pass status
inf pass usage --jsoninf pass doctor
Verify authentication, active Inference Pass status, saved plan key health (GET /v1/usage), plan model availability (GET /v1/models), and every connected agent's configuration on disk.
By default, inf pass doctor self-heals automatically:
- Mints and verifies a fresh plan key if the saved key is missing, revoked (
401), unlinked (404 no_plan), or inactive (403 plan_inactive), updates all connected agents, and archives the replaced key. - Replaces removed or non-tool models with the best available tool-supporting model in your plan.
- Repairs drifted base URLs, mismatched keys, corrupt JSON, and stale legacy env keys while preserving unrelated settings.
| Flag | Default | Description |
|---|---|---|
--check | false | Read-only check without modifying keys or files (exits non-zero if any issue is found) |
--team <id> | Auto-detected | Verify against a specific team's Inference Pass plan |
--json | false | Emit structured JSON diagnostics |
inf pass doctor
inf pass doctor --checkinf pass proxy
Start a local, loopback-only (127.0.0.1) reverse proxy for desktop apps such as Claude Desktop, Cursor, Windsurf, Zed, Continue, and OpenCode.
- Security: Binds strictly to
127.0.0.1, rejects browserOriginheaders (403), and validates loopbackHostheaders (403) to prevent DNS rebinding. The proxy does not log prompts or request bodies and never returns your API key from/healthor/status; local plan keys are stored on disk with owner-only (0600) permissions inpass-state.jsonand your managed agent configs. - Desktop URLs:
- Anthropic / Claude Desktop:
http://127.0.0.1:4141 - OpenAI-compatible apps:
http://127.0.0.1:4141/v1 - Use any non-empty placeholder API key in the desktop app; the proxy injects your active Inference Pass key locally.
- Anthropic / Claude Desktop:
- Self-healing & model mapping: Maps Claude model tiers (
--opus,--sonnet,--haiku,--model) and unknown models to models included in your plan, strips unsupported image blocks gracefully when routing to text-only models, and rotates revoked or inactive keys automatically. - Local endpoints:
GET /health,GET /_inference/health(204+X-Inference-Pass-Gateway: 1), andGET /status(live plan, lane, usage percentage, reset time, and request/heal counters).
| Flag | Default | Description |
|---|---|---|
--port <port> | 4141 | Localhost port to listen on (127.0.0.1 only) |
--model <id> | Best tool-supporting plan model | Default model ID for unmapped requests |
--opus <id> | --model | Plan model ID for Claude Opus requests |
--sonnet <id> | --model | Plan model ID for Claude Sonnet requests |
--haiku <id> | --model | Plan model ID for Claude Haiku requests |
--team <id> | Auto-detected | Use a specific team's Inference Pass plan |
--json | false | Print bound URLs and startup metadata as JSON |
inf pass proxy
inf pass proxy --port 4141 --opus glm-5.3 --sonnet deepseek-v4.1-flash-1017Signing out
Running inf auth logout disconnects coding agents connected via Inference Pass and restores backed-up configs. When every connected agent cleans up cleanly, it also archives the active environment's saved plan key and removes local Inference Pass state and backups; if any agent fails to clean up, state, backups, and the plan key are retained so you can retry.