GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Bug: Ollama provider discovery is blocked by destination policy in OpenCode 2.7.43 · Issue #758 · lidge-jun/opencodex Closed Labels bugSomething isn't working DescriptionClient or integrationClaude Code AreaCLI SummaryI'm using OpenCode 2.7.43 with Ollama as the default provider under Ubuntu 24.04 WSL2. Although the Ollama provider is correctly configured and Ollama is reachable, ocx sync refuses to discover local models because the destination policy blocks loopback/localhost addresses. As a result: No Ollama models are added to the catalog. Expected behavior: The built-in Ollama provider should be allowed to discover models from the configured local endpoint. ReproductionReproduction Installed via: npm install -g @bitkyc08/opencodex Configuration: { Verify Ollama is reachable: curl http://127.0.0.1:11434/v1/models This correctly returns my installed models. Run: ocx sync Result: Provider model discovery for "ollama" was blocked by destination policy: Changing the URL to http://localhost:11434/v1 changes the message to: provider URL targets localhost destination but the behavior is identical. Expected Result ocx sync should successfully discover the models exposed by the configured Ollama endpoint and include them in the OpenCode model catalog. Actual Result Model discovery is blocked. curl http://127.0.0.1:10100/v1/models returns only OpenAI models. Claude requests are then routed to OpenAI instead of Ollama. Example proxy log: 400 openai/claude-opus-4-8-rox The OpenAI backend responds: The 'claude-opus-4-8-rox' model is not supported when using Codex with a ChatGPT account. The provider appears to be configured correctly: ocx provider show ollama returns: Provider: ollama (default) The installed source also registers the built-in Ollama provider with: allowPrivateNetworkByDefault: true located in: src/providers/registry.ts However, model discovery is still rejected by the destination policy during ocx sync.
Version2.7.43 Operating systemWindows 11 24H2 Provider and modelNo response Logs or error outputnbpacio@COOLMAN-PC:~$ ocx config show { "port": 10100, "providers": { "openai": { "adapter": "openai-responses", "baseUrl": "https://chatgpt.com/backend-api/codex", "codexAccountMode": "pool", "authMode": "forward" }, "ollama": { "adapter": "openai-chat", "baseUrl": "http://127.0.0.1:11434/v1" } }, "defaultProvider": "ollama", "openaiProviderTierVersion": 2, "multiAgentGuidanceEnabled": true, "codexShimAutoRestore": true, "subagentModels": [ "gpt-5.5", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.4-mini" ], "websockets": false, "codexAutoStart": true, "activeCodexAccountId": "__main__" } nbpacio@COOLMAN-PC:~$ ocx sync [opencodex] Provider model discovery for "ollama" was blocked by destination policy: provider URL targets loopback address [urlClass=provider-models, fallback=configured]. Pointed Codex's built-in openai provider at the opencodex proxy (openai_base_url). Codex model catalog: /mnt/c/Users/nbpac/.codex/opencodex-catalog.json Codex resume history: untouched (threads keep their native openai tag). All models now route through opencodex proxy (like OpenRouter). OpenAI models (gpt-5.5, etc.) are passed through to OpenAI. Custom models route to their configured providers. Fallback reference: /mnt/c/Users/nbpac/.codex/opencodex.config.toml Target Codex home: /mnt/c/Users/[USER]/.codex nbpacio@COOLMAN-PC:~$ ocx provider show ollama Provider: ollama (default) adapter: openai-chat baseUrl: http://127.0.0.1:11434/v1 nbpacio@COOLMAN-PC:~$ curl http://127.0.0.1:11434/v1/models {"object":"list","data":[{"id":"hf.co/tvall43/Qwen3.6-14B-A3B-FableVibes-GGUF:Q4_K_M","object":"model","created":1785333239,"owned_by":"tvall43"},{"id":"fervent_mcclintock/Gemma-3-12B-Instruct:Q4_K_M","object":"model","created":1785332957,"owned_by":"fervent_mcclintock"},{"id":"frob/mradermacher-Llama3.3-8B-Thinking-Heretic-Claude-4.5-Opus:q8_0","object":"model","created":1785332291,"owned_by":"frob"},{"id":"deepseek-r1:8b","object":"model","created":1785331986,"owned_by":"library"},{"id":"qcwind/qwen3-8b-instruct-Q4-K-M:latest","object":"model","created":1785330826,"owned_by":"qcwind"}]} nbpacio@COOLMAN-PC:~$ curl http://127.0.0.1:11434/v1/models {"object":"list","data":[{"id":"hf.co/tvall43/Qwen3.6-14B-A3B-FableVibes-GGUF:Q4_K_M","object":"model","created":1785333239,"owned_by":"tvall43"},{"id":"fervent_mcclintock/Gemma-3-12B-Instruct:Q4_K_M","object":"model","created":1785332957,"owned_by":"fervent_mcclintock"},{"id":"frob/mradermacher-Llama3.3-8B-Thinking-Heretic-Claude-4.5-Opus:q8_0","object":"model","created":1785332291,"owned_by":"frob"},{"id":"deepseek-r1:8b","object":"model","created":1785331986,"owned_by":"library"},{"id":"qcwind/qwen3-8b-instruct-Q4-K-M:latest","object":"model","created":1785330826,"owned_by":"qcwind"}]} nbpacio@COOLMAN-PC:~$ Screenshots and supporting filesNo response Redacted configurationChecks
Activity
MetadataMetadataAssigneesLabelsbugSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |