CLI / KIMI CODE

Kimi Code

Connect Kimi Code through Mengbi Router’s OpenAI-compatible endpoint.

!

Production integration docs · examples use router-api.mengbi-ai.net and a personal API key placeholder.

01 /

Prepare

Prepare Kimi Code with a personal Mengbi Router key and a current model ID.

Prepare 1

Use the Kimi Code configuration supported by your current installation.

bash
npm install -g @moonshot-ai/kimi-code
kimi --version
02 /

Configure

Connect Kimi Code to the endpoint that matches its supported protocol.

Configure 1

Use the Kimi Code configuration supported by your current installation.

text
Base URL: https://router-api.mengbi-ai.net/v1
API Key: sk-mengbi-xxxxxx
Model: kimi-k3

Configure 2

Kimi Code setup reference
Reference image for configuring Kimi Code.

Configure 3

Use the Kimi Code configuration supported by your current installation.