Codex and Ollama Tool Compatibility Layer
ManufacturerMany1239 · reddit · 2026-07-12
The author developed a local compatibility layer named codex-ollama-proxy to ensure that Codex retains its plugin tools, MCP namespaces, toolsearch, and applypatch capabilities when connecting to Ollama and other Responses API providers.
Its core mechanisms include:
- Flattening Codex's namespace / plugin tools into callable functions for the model
- Mapping tool calls back to the response format expected by Codex
- Preserving MCP and plugin definitions
- Supporting special response shapes like toolsearch and applypatch
- Allowing separate handling of text and vision models
- Connecting to Ollama, OpenRouter, or other Responses API-compatible endpoints
- Providing multiple web search fallback paths when Ollama's search is unavailable
The author notes this is still an experimental implementation that may require adjustments with future Codex updates. However, it has successfully resolved plugin and tool compatibility issues in their environment, and they are seeking test results across different Codex versions, Ollama models, OpenRouter models, and MCP servers.
More from coding & agent
- A better path to agent autonomy is running waves, finding friction, and iterating — JnBrymn · 2026-07-22
- Coding agents are heading toward an AI-writes, AI-reviews, human-approves workflow — aftahi_ai · 2026-07-22
- oMLX 0.5.2 adds Mac menu-bar stats, low-bit decode kernels, and faster downloads — awnihannun · 2026-07-22
- GitHub review bot hits its PR limit and forces a 39-minute cooldown — DanielLockyer · 2026-07-22
- Max reasoning effort appears to be mobile-only in Codex Remote, not desktop — GabGarrett · 2026-07-22
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22