Custom endpoint parameters
Fill in the custom endpoint / provider settings of Kimi Code CLI:
https://starseaapi.com/v1配置 ~/.kimi-code/config.toml(新版,TOML)或 ~/.kimi/config.yaml(旧版,YAML)—— 两者不通用,先用 kimi --version 与 Get-Command kimi 确认版本。
新版追加:[providers.starsea]type = "openai_legacy"base_url = "https://starseaapi.com/v1"api_key = "sk-您的Key"
再把 default_model 指向 starsea/<模型名>。
重要:Kimi CLI 会优先读环境变量 OPENAI_BASE_URL / OPENAI_API_KEY 并覆盖配置文件 —— 若您机器上设过这两个变量,改配置不会生效,请先清掉它们。
Create a key and top up at the Key Desk — online top-up is 50% off.