Use Standard Compute with Kimi Code CLI
Moonshot AI's terminal coding agent (the kimi command), which replaced the archived Python Kimi CLI and connects to any OpenAI Chat Completions provider. Paste three settings into Kimi Code: the base URL, your Standard Compute API key and the model.
In Kimi Code, type = "openai" speaks the OpenAI Chat Completions protocol. Credentials come only from api_key or the variable named in api_key_env; Kimi Code does not fall back to other shell variables.
Eligible new accounts can try $0.25 of compute, with no card. See trial terms →
Your connection settings
Copy these values, then put them where Kimi Code expects them (steps below).
Base URL
https://api.stdcmpt.com/v1API Key
Your Standard Compute keyModel
standardcomputeWhere to set them in Kimi Code
- Open ~/.kimi-code/config.toml (create it if it doesn't exist).
- Add [providers.standardcompute] with type = "openai", base_url = "https://api.stdcmpt.com/v1" and api_key_env = "STANDARDCOMPUTE_API_KEY".
- Add [models.standardcompute] with provider = "standardcompute", model = "standardcompute", max_context_size = 200000 and capabilities = ["tool_use"], and set default_model = "standardcompute".
- Export STANDARDCOMPUTE_API_KEY and run kimi. Use -m with a model alias to switch models for a session.
What changes in Kimi Code
Read next