Using OpenAI Codex IDE with Local Ollama Models in VSCodium

The OpenAI Codex IDE plugin for VSCodium can be configured to work with local Ollama models, despite not officially supporting profiles or flags like the CLI. By editing the config.toml file, developers can use this setup to avoid cloud-based AI solutions.
Key Details
To configure the OpenAI Codex IDE to work with local Ollama models, you'll need to access the plugin's settings in VSCodium:
- Go to the Codex tab and click the Settings cogwheel at the top.
- Select "Codex Settings" and then "Open config.toml".
Within the config.toml file, use the following configuration:
model = "qwen3-coder-next:Q4_K_M"
model_provider = "ollama"
model_reasoning_effort = "medium"
[model_providers.ollama]
name = "Ollama"
base_url = "http://localhost:11434/v1"
[analytics]
enabled = falseNote that there is no built-in method to switch models or reload the configuration without restarting VSCodium. Despite this minor setback in the plugin's implementation, this setup allows for fully local AI coding with reasonably good tool use. However, the performance, especially with a model around 50GB in size, is slower than paid options but remains functional and satisfactory for many developers.
The setup benefits developers who prefer working offline and have privacy concerns with cloud AI services, even though it comes with some performance trade-offs. Compared to other plugins like Kilocode and Roo, the Codex plugin showed superior performance with the same models.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Pilot Protocol: Open-Source P2P Network Stack for AI Agent Swarms
Pilot Protocol is an open-source Layer 3 and Layer 4 overlay network stack designed specifically for AI agent communication, providing direct encrypted UDP tunnels between agents with permanent 48-bit virtual addresses.

Qwen 3.6 27B with MTP on V100 32GB: 54 t/s via llama.cpp Branch
am17an's MTP branch of llama.cc runs Qwen 3.6 27B at 54 t/s on V100 32GB via PCIe adapter, dropping to 29-30 t/s without MTP.

AI Agent Autonomously Creates Video Using Remotion Without Predefined Tools
A developer tested an AI agent that autonomously created a short video reel by installing Remotion, writing composition code, debugging issues, and delivering a rendered file without human intervention.

Developer builds AI framework with 17 biological principles using Claude Code
A developer created an AI framework called Cognitive Sparks by implementing 17 biological principles like threshold firing and Hebbian plasticity, based on the 1999 book 'Sparks of Genius.' The entire project—22 design docs and 3,300 lines of code—was built in one day using Claude Code, with no human-written code.