Kimi Code Integration
Use GPT-5, Claude, Gemini, or any model with Kimi Code CLI. Custom provider configuration, full cost tracking.
Kimi Code CLI is an AI-powered coding agent developed by Moonshot AI designed to automate software development tasks directly within your terminal. It can read and edit code, execute shell commands, search files, and autonomously manage complex coding workflows.
By configuring Kimi Code CLI to use doteb, you can point it at any model—GPT-5, Gemini, Llama, Claude, or 210+ others—while keeping the same API formats Kimi Code expects, with full cost tracking in your dashboard.
Prerequisites
- A doteb API key — sign up free (no credit card required)
Setup
Install Kimi Code CLI
If you haven't already, install Kimi Code CLI.
-
macOS or Linux:
curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash -
Homebrew (macOS/Linux):
brew install kimi-code -
Windows (PowerShell):
irm https://code.kimi.com/kimi-code/install.ps1 | iex
Confirm the installation:
kimi --versionConfigure config.toml
Create or edit your Kimi Code configuration file at ~/.kimi-code/config.toml (on Windows, this is typically under C:\Users\<YourUsername>\.kimi-code\config.toml).
Add the llmgateway provider and define the models you want to use. Here is an example configuration that sets up GPT-5.5, Claude Opus 4.6, DeepSeek V4 Pro, MiniMax M3, and Qwen3.7 Max:
default_model = "llmgateway/gpt-5.5"
[providers.llmgateway]
type = "openai"
api_key = "llmgtwy_your_api_key_here"
base_url = "https://api.doteb.com/v1"
[models."llmgateway/gpt-5.5"]
provider = "llmgateway"
model = "gpt-5.5"
max_context_size = 1050000
max_output_size = 128000
capabilities = [ "image_in", "thinking", "tool_use" ]
display_name = "GPT-5.5"
[models."llmgateway/claude-opus-4-6"]
provider = "llmgateway"
model = "claude-opus-4-6"
max_context_size = 1000000
max_output_size = 128000
capabilities = [ "image_in", "thinking", "tool_use" ]
display_name = "Claude Opus 4.6"
[models."llmgateway/deepseek-v4-pro"]
provider = "llmgateway"
model = "deepseek-v4-pro"
max_context_size = 1050000
max_output_size = 393216
capabilities = [ "thinking", "tool_use" ]
display_name = "DeepSeek V4 Pro"
[models."llmgateway/minimax-m3"]
provider = "llmgateway"
model = "minimax-m3"
max_context_size = 1048576
max_output_size = 131072
capabilities = [ "image_in", "thinking", "tool_use" ]
display_name = "MiniMax M3"
[models."llmgateway/qwen3.7-max"]
provider = "llmgateway"
model = "qwen3.7-max"
max_context_size = 1000000
max_output_size = 65536
capabilities = [ "thinking", "tool_use" ]
display_name = "Qwen3.7 Max"
Replace llmgtwy_your_api_key_here with your actual doteb API key from
the dashboard.
Run Kimi Code CLI
Navigate to your project folder and launch the interactive terminal:
kimiAll requests will now be routed through doteb, allowing you to use advanced models for local autonomous coding while showing real-time usage and cost statistics on your doteb dashboard.

Configuration Details
The Providers Section
To connect to doteb, define a custom provider with type = "openai" and specify the base URL pointing to the doteb endpoint.
[providers.llmgateway]
type = "openai"
api_key = "llmgtwy_your_api_key_here"
base_url = "https://api.doteb.com/v1"Defining Custom Models
For each model you want to access, add a [models."<provider_name>/<model_identifier>"] block:
- provider: Must match the provider key under
[providers.<key>](e.g.llmgateway). - model: The exact model ID from the doteb catalog.
- capabilities: An array containing capabilities the model supports, such as
"image_in","thinking", and"tool_use". - max_context_size: The maximum context window of the model.
Why Use doteb with Kimi Code CLI
- 210+ models — Access GPT-5, Gemini, Llama, DeepSeek, and more in a single CLI configuration.
- Unified cost tracking — Get a detailed breakdown of costs per prompt and session in your dashboard.
- Response caching — Automatically cache repeated requests (such as parsing or building commands) to save API costs.
- Automatic fallback — Keep coding even if a provider encounters temporary downtime.
- Volume discounts — Access selected models with up to 90% savings compared to standard pricing.
View all available models on the models page.
Need help? Email dotebceo@gmail.com for support and troubleshooting assistance.
How is this guide?
Last updated on