How to Use Kimi with Codex CLI (Step-by-Step Setup Guide)

A step-by-step guide to connecting Kimi Code to Codex CLI, including TOML configuration, API key setup, profile switching, and long-context settings.

Aug 19, 2026 · 3 min read · 602 Words · -Views -Comments 🔒 · Programming

Codex uses OpenAI models by default, but it also supports third-party model providers. Kimi Code exposes an endpoint compatible with the Codex Responses API. This guide documents how to use Kimi K3 as a Codex model.

Last updated on: Aug 19, 2026

🔒

Premium Content

Subscribe for full site access, or buy this article

After subscribing, you will be signed in automatically. To cancel or manage the subscription, use the Stripe management entry at the bottom of the subscribe page.

Already purchased?

Enter the email used during purchase to restore access

Payment issues?
If you see 'payment blocked' or 'too risky', this is Stripe's automated fraud prevention — not a merchant decision. Common causes and fixes:

1. VPN / Proxy
Turn off your VPN or switch to a node matching your card's issuing country. IP-to-card country mismatch often triggers the block.

2. Card not enabled for international payments
Make sure your credit/debit card has international online transactions enabled — some banks disable this by default.

3. Try a different card
Prefer Visa / Mastercard credit cards. Prepaid or virtual cards are more likely to be blocked.

4. Browser issues
Try incognito/private mode, or a different browser. Some extensions can interfere with the payment flow.

5. Still not working?
Contact the author via Alipay or PayPal to complete the payment.
Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover