Route OpenAI and Anthropic models through Cloudflare AI Gateway passthroughs
OpenCode v1.18.19 adds native OpenAI/Anthropic passthroughs for Cloudflare AI Gateway, tighter Codex↔ChatGPT rate limits, fixed /connect auth display, safer pricing/cost math, and web search on OpenCode Go—use these to centralize model traffic and cut provider friction.
Why this loop
This release makes Cloudflare AI Gateway a first-class path for OpenAI and Anthropic instead of ad-hoc proxies, so teams can standardize logging, controls, and model IDs in one place. Codex rate limits now track ChatGPT subscription limits more closely, reducing surprise throttling for subscription-backed workflows. /connect correctly lists authenticated providers, so reconnect and onboarding stop hiding working accounts. Malformed pricing no longer breaks usage cost calculation, and oversized OpenAI websocket payloads fall back instead of failing hard—both stabilize cost visibility and long sessions. OpenCode Go gains web search, and ChatGPT workspace compute residency is forwarded to Codex, which matters for residency-sensitive orgs. Qwen no longer sends unsupported built-in sampling defaults. Workflow gain: point gateway-backed models at the new passthroughs, re-auth via /connect, align Codex with subscription limits, and turn on Go web search where research agents need it.
Proposed actions
- In OpenCode model config, switch OpenAI and Anthropic routes that should traverse Cloudflare AI Gateway to the native gateway passthrough model entries added in v1.18.19 (replace any custom base-URL hacks with the built-in passthroughs).
- Run `/connect` in OpenCode and confirm every authenticated provider you rely on appears; re-authenticate any missing provider and save so account connection uses the updated default Console URL.
- For ChatGPT-subscription Codex usage, set rate-limit / pacing config to the v1.18.19 Codex limits that match ChatGPT subscription quotas, and enable forwarding of ChatGPT workspace compute residency on those Codex requests.
- If you use Qwen, remove any workflow reliance on OpenCode’s old built-in Qwen sampling defaults; send only sampling parameters the provider accepts.
- For agents on the OpenCode Go provider, enable web search in the provider/tool settings and re-run a retrieval-style prompt to verify search-backed responses.
Agent prompt
Paste into your agent or query via MCP (`get_agent_prompt`) — free, no extra AI costPaste into Claude Code / CLAUDE.md task
# DevAgentRadar → Claude Code You are helping me adopt a real coding-assistant change. Work only from the facts below. Do not invent features. ## Context Assistant: OpenCode Proposal: Route OpenAI and Anthropic models through Cloudflare AI Gateway passthroughs Summary: OpenCode v1.18.19 adds native OpenAI/Anthropic passthroughs for Cloudflare AI Gateway, tighter Codex↔ChatGPT rate limits, fixed /connect auth display, safer pricing/cost math, and web search on OpenCode Go—use these to centralize model traffic and cut provider friction. Primary source: https://github.com/anomalyco/opencode/releases/tag/v1.18.19 ## Why it matters This release makes Cloudflare AI Gateway a first-class path for OpenAI and Anthropic instead of ad-hoc proxies, so teams can standardize logging, controls, and model IDs in one place. Codex rate limits now track ChatGPT subscription limits more closely, reducing surprise throttling for subscription-backed workflows. /connect correctly lists authenticated providers, so reconnect and onboarding stop hiding working accounts. Malformed pricing no longer breaks usage cost calculation, and oversized OpenAI websocket payloads fall back instead of failing hard—both stabilize cost visibility and long sessions. OpenCode Go gains web search, and ChatGPT workspace compute residency is forwarded to Codex, which matters for residency-sensitive orgs. Qwen no longer sends unsupported built-in sampling defaults. Workflow gain: point gateway-backed models at the new passthroughs, re-auth via /connect, align Codex with subscription limits, and turn on Go web search where research agents need it. ## Suggested actions 1. In OpenCode model config, switch OpenAI and Anthropic routes that should traverse Cloudflare AI Gateway to the native gateway passthrough model entries added in v1.18.19 (replace any custom base-URL hacks with the built-in passthroughs). 2. Run `/connect` in OpenCode and confirm every authenticated provider you rely on appears; re-authenticate any missing provider and save so account connection uses the updated default Console URL. 3. For ChatGPT-subscription Codex usage, set rate-limit / pacing config to the v1.18.19 Codex limits that match ChatGPT subscription quotas, and enable forwarding of ChatGPT workspace compute residency on those Codex requests. 4. If you use Qwen, remove any workflow reliance on OpenCode’s old built-in Qwen sampling defaults; send only sampling parameters the provider accepts. 5. For agents on the OpenCode Go provider, enable web search in the provider/tool settings and re-run a retrieval-style prompt to verify search-backed responses. ## Your job 1. Restate the change in one sentence. 2. Propose a minimal plan for my repo (or a throwaway pilot). 3. Implement only what I approve; prefer small diffs and tests. 4. Call out risks (permissions, breaking APIs, cost). Start by confirming you understood the proposal.
Your loop
This browser · no sign-in · not shared as “you”Your decision stays on this device. A public tally appears after a few votes.