kimi-k3 model.
Codex CLI currently supports text and image input, but does not provide a native video input channel — you cannot submit a video file directly as multimodal input to the model. To analyze video using only Codex CLI’s existing input methods, you can first extract key frames with ffmpeg and optionally combine them with audio transcription before handing them to the model. Note that this is a limitation of Codex CLI’s input layer, not of the Kimi K3 model — the Kimi K3 API natively supports video input. Call
kimi-k3 directly as described in Vision Input for full video understanding, with no manual frame extraction required.Prerequisites
Complete the following preparations first. Follow the corresponding official instructions for installation and account-related operations; this guide does not repeat those procedures.Install Codex CLI
Follow the official Codex documentation and start Codex CLI at least once.
Create an API key
Create and save an API key in Kimi Open Platform.
Install CC Switch
Follow the official CC Switch instructions to install the version for your operating system.
CC Switch is a third-party open-source tool and is not part of Kimi Open Platform. Before using it, evaluate it according to your organization’s security and compliance requirements; your API key and Codex requests and responses will be processed by its local router.
Step 1: Enable Codex Routing
In CC Switch, open Settings > Routing, then:- Turn on Routing Master Switch to start the local routing service.
- Under Routing Enabled, turn on Codex.

Codex CLI uses the Responses API, while Kimi Open Platform provides an OpenAI-compatible Chat Completions API. CC Switch Local Routing converts requests and streaming responses between the two protocols. Keep CC Switch and Codex routing running while using the Kimi provider.
Step 2: Add the Kimi Provider
- Return to the CC Switch home screen and select the Codex tab at the top.
- Click + in the upper-right corner to add a provider.

- Confirm that you are on the Codex Provider page. Search for Kimi if needed, then select Kimi from the preset provider list.

- Enter the following settings:
- After changing the default model to
kimi-k3, click Add to mapping.

- Scroll down and confirm the following advanced settings:
- After confirming the settings, click Add in the lower-right corner.

Step 3: Enable the Kimi Provider
Return to the Codex provider list after adding the provider and click Enable on the Kimi provider you just added.
- Kimi is the active provider under the Codex tab;
- CC Switch Local Routing is running;
- Codex is enabled under the routing settings.
Step 4: Start Codex CLI
If Codex CLI is already running, exit the current session. Enter the project directory where you want to work and start Codex CLI again:kimi-k3 as the current model, then send a simple request:
kimi-k3, the configuration is working.
