Kimi
Use Kimi's Anthropic-compatible coding endpoint as an alternative provider for Claude Code sessions
Kimi provides an Anthropic-compatible coding endpoint (https://api.kimi.com/coding) backed by the kimi-for-coding model. Because the endpoint speaks the same protocol as Anthropic's API, Claude Code works against it without modification — jackin' injects the redirect at session-spawn time.
When KIMI_CODE_API_KEY is configured, opening a new Claude tab presents a provider picker with Kimi as one of the options. Operators without a Kimi key see no change: Kimi does not appear in the picker.
Kimi is configured in the Auth tab of jackin console under the Kimi row. The same row covers both the Kimi Code CLI agent runtime (sync mode) and the Kimi API provider for Claude Code (api_key mode). Configure it the same way as Z.AI or MiniMax — not by hand-editing any config file.
Subscribe and get an API key
- Open Kimi membership pricing, sign in, and purchase a Kimi membership. The coding endpoint benefit is included in paid membership plans.
- After your membership is active, open the Kimi Code Console and go to API Keys. Create a new key — the key is shown only once and starts with
sk-ki. Copy it immediately. - You can create up to 5 keys. Keep your key private. Store it in jackin' through the Auth settings below; do not paste it into Claude Code's host settings.
Kimi's coding endpoint (api.kimi.com/coding) is distinct from the general Moonshot platform endpoint (api.moonshot.ai/v1). The membership benefit is the coding endpoint; the key is managed in the Kimi Code Console, not in the Moonshot platform. Kimi's coding subscriptions also carry weekly and rate-limit windows with no carryover — plan your usage accordingly.
Configure your Kimi API key in jackin'
- Open
jackin console, select your workspace, and switch to the Auth tab. - Scroll to the Kimi row and press
EnterorSpaceto open the auth form. - Set the mode to API Key (press
Spaceto cycle). - Enter your
KIMI_CODE_API_KEY— either a literal key or a 1Password reference resolved at launch time. - Save the form.
The key is written to the [env] map in your config file at the scope you chose (global or per-workspace). A workspace-level key overrides the global one.
To remove Kimi, open the same row, cycle the mode back to Ignore, and save.
Using the provider picker
With KIMI_CODE_API_KEY configured:
At workspace launch — launch a workspace and choose the Claude agent. Before the container starts, a provider picker appears. Use arrow keys and Enter to pick. Escape cancels back to the agent picker.
In the multiplexer — press N inside a running container to open a new agent tab. When you pick Claude, the same provider picker appears if multiple providers are available.
Tab labels
The tab strip label reflects the active provider:
| Active provider | Tab label |
|---|---|
| Anthropic | Claude (Anthropic) |
| Kimi | Claude (Kimi) |
When only Anthropic is configured, the bare Claude label is used — no suffix.
Scopes
KIMI_CODE_API_KEY follows the standard 4-layer env resolution — most-specific wins:
per-(workspace × role) > per-workspace > global > absent
Set a global key to have Kimi available in every workspace, or set a per-workspace key to restrict it to specific projects.
How the redirect works
When you select Kimi in the provider picker, jackin' injects environment variables into the spawned Claude Code process at launch time — not into any shared config file:
ANTHROPIC_AUTH_TOKEN— set to yourKIMI_CODE_API_KEYvalueANTHROPIC_BASE_URL— set tohttps://api.kimi.com/codingANTHROPIC_DEFAULT_OPUS_MODEL— set tokimi-for-codingANTHROPIC_DEFAULT_SONNET_MODEL— set tokimi-for-codingANTHROPIC_DEFAULT_HAIKU_MODEL— set tokimi-for-codingAPI_TIMEOUT_MS— set to3000000(50-minute timeout for long-running operations)CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC— set to1
kimi-for-coding is the single model served by the coding endpoint, so all three Claude tier slots map to the same model. The timeout prevents premature disconnection on long agent runs through the proxy.
No other tabs or sessions in the container are affected. Anthropic tabs continue to use the container's own credentials.
Your KIMI_CODE_API_KEY is never written to the logs, including --debug output.
See also
- Authentication overview — the shared modes / scopes / defaults pattern jackin' applies across every auth axis.
- Z.AI (GLM Coding Plan) — the other Anthropic-compatible alternative provider.
- MiniMax (Token Plan) — MiniMax's Anthropic-compatible endpoint.
- Agent Authentication — covers agent runtime auth forwarding for the Kimi Code CLI and other agents.
- Environment Variables — how the operator env-vars model supplies credentials at global and per-workspace scope.