The Inference Fast CLI (fast) connects supported coding agents to your first
Fast Inference project. It signs in through the dashboard, creates one
machine-scoped API key when you connect an agent, and can restore every config
file it changes.
Install and sign in
Install the CLI
Choose the package manager you already use.
npm install -g @inference/fast # or: pnpm add -g @inference/fast # or: bun add -g @inference/fast # or: yarn global add @inference/fastSign in
fast loginThe command opens a browser approval flow. After approval, it selects the first project in your personal workspace—the same project used throughout fast-web.
Confirm the connection
fast statusStatus shows your account, selected project, machine key, endpoints, and the connection state of every supported coding agent.
Common commands
| Command | Purpose |
|---|---|
fast login | Sign in through the Fast Inference dashboard. |
fast status | Show the account, project, machine key, and agent states. |
fast claude on | Connect Claude Code. |
fast codex on | Connect Codex. |
fast opencode on | Connect OpenCode. |
fast pi on | Connect Pi. |
fast <agent> status | Show an agent's connection, model, and config paths. |
fast <agent> off | Restore that agent's original configuration. |
fast logout | Restore all connected agents, disable the machine key, and sign out. |
fast --help | Show the complete command tree. |
Calling an agent without on is equivalent to turning it on, so fast claude
and fast claude on do the same thing.
Connect a coding agent
Four adapters are currently available:
fast claude on
fast codex on
fast opencode on
fast pi onThe first connection creates one project-scoped key named for your machine.
The CLI reuses that key for the other supported agents. To choose a model,
provide its catalog ID with --model:
fast codex on --model glm-5.2Each adapter snapshots the original files before changing them. Choose an integration guide for the exact paths and verification flow:
Files and local configuration
CLI state, transport credentials, and reversible backups live under
~/.inference-fast. Files that can contain credentials are written with
owner-only permissions.
For local development, these environment variables override the defaults:
| Variable | Purpose |
|---|---|
INFERENCE_FAST_CONFIG_DIR | Move CLI state and backups to another directory. |
INFERENCE_FAST_RELAY_URL | Override the authorization and tRPC relay. |
INFERENCE_FAST_DASHBOARD_URL | Override the browser approval dashboard. |
INFERENCE_FAST_API_URL | Override the inference gateway. |
INFERENCE_FAST_MODEL | Change the default model used by new connections. |
Disconnect safely
Restore one agent without signing out:
fast claude off
fast claude statusOr restore every connected agent, disable the machine-scoped key, and close the session in one step:
fast logout