Run local LLM in ChatGPT Desktop app with opencodex alone
The open-source tool opencodex (MIT license) works as a local proxy and replaces the base URL in ~/.codex/config.toml, forcing the ChatGPT Desktop app to use third-party and local models. It supports Ollama, vLLM, LM Studio, and over 40 providers, including Anthropic, Gemini, DeepSeek, and Qwen.
- opencodex replaces base URL with http://127.0.0.1:10100/v1 in config.toml
- Supports Ollama, vLLM, LM Studio, and 40+ providers
- Install: npm install -g @bitkyc08/opencodex, requires Node 18+
- Web dashboard at localhost:10100 shows token stats and costs
Read next
Software