OpenAI's Codex CLI has generated significant buzz as a powerful agentic coding tool, but its exclusive reliance on OpenAI's Responses API limits its accessibility for developers who prefer or require alternative model providers. A new open-source tool, CC Switch, offers a practical workaround by acting as a local routing proxy. It intercepts API calls from Codex CLI and redirects them to compatible endpoints from providers like DeepSeek, Kimi, MiniMax, and SiliconFlow. The setup is straightforward: configure a local endpoint, map it to the desired model's API, and run Codex CLI as usual. This approach not only expands Codex's usability in regions where OpenAI services are restricted but also allows developers to compare performance across models. While it relies on the third-party model's API compatibility with Codex's protocol, early reports suggest it works well for common tasks. This development highlights the growing demand for model-agnostic tooling in the AI coding space.
This article demonstrates how to use a local routing tool called CC Switch to make OpenAI's Codex CLI work with third-party models such as DeepSeek, Kimi, and MiniMax. It addresses a key limitation for developers outside OpenAI's ecosystem, enabling broader experimentation with Codex's agentic capabilities.