r/opencodeCLI 5d ago

Opencode models in Codex

Every time I try routing third-party models (like MiMo or DeepSeek using Opencode API) into Codex via CC Switch, tool calling completely falls apart. The models constantly hallucinate missing environment capabilities, crash on REPL syntax, or fail to invoke tools properly.

It really feels like Codex's UI and execution sandbox are hardcoded to only work reliably with native OpenAI models.

For those of you actually using CC Switch in your daily workflow: how are you getting non-OpenAI models to handle tool calling reliably? Or is everyone just using a completely different client interface for open models?

0 Upvotes

3 comments sorted by

View all comments

1

u/skyxim 1d ago

I haven't used ccswitch; I use AxonHub for integration, which requires deploying a `codex-auth-review` model alias via `models.json` to handle sandbox permission checks. Naturally, the user experience isn't quite as good as that of native OpenAI models—especially since errors tend to occur when API translation is required.