Daily Edition Sources +3

API Discovery: Cloudflare’s Gateway Keeps Native Agent APIs Intact

Cloudflare’s public Responses and Messages endpoints give agent builders a choice that generic gateway adapters often erase: keep the provider-shaped request format that the workflow actually needs.

A rough-marker routing diagram links Cloudflare Responses and Messages endpoint cards to matching OpenAI and Anthropic route cards, with an access-and-credits caveat stamp.
Diagram Punkchoose the public endpoint whose request semantics match the job.
repo anomalyco/opencode evidence
3 source signals 1 repo commit cba6b5f
Evidence: commit cba6b5f / August 18, 2026 / Daily Edition
Open Edition Evidence below

API discovery: Cloudflare documents POST /ai/v1/responses as its OpenAI Responses-compatible surface for agentic workflows, alongside a separate Messages endpoint. That distinction became newly practical in OpenCode's merged gateway routing: OpenAI models are sent through a native Responses path and Anthropic models through a native Messages path, rather than both being squeezed through a compatible chat endpoint.

The consequence is plain. A coding or repair agent that depends on the Responses API's request semantics should be tested on the route that speaks Responses, not on a translation layer that happens to accept a similar model name. Cloudflare says those public REST routes apply its configured gateway controls while authenticating through the account.

Practical example: a bounded repair rehearsal

Build a disposable one-turn repair rehearsal: ask an OpenAI Responses-compatible model to turn a fictional bug report into a short patch plan and a test checklist, then inspect the request and response shape before connecting it to a repository. The useful experiment is not “does an LLM answer?” but whether your agent harness preserves the endpoint and model semantics you intended.

Copy-paste agent instruction

In a new disposable project, prepare but do not execute a minimal OpenAI Responses API smoke test for Cloudflare AI Gateway. Use the documented REST base URL ending in /ai/v1, read the Cloudflare token only from an environment variable, and send one fictional bug report to an openai/ model through responses.create. Produce: (1) a short setup README, (2) code that redacts credentials from logs, and (3) an assertion that the response can be recorded without sending repository contents. Do not create tokens, do not call a live endpoint, and flag the account, credit, and model-access checks the operator must complete first.

Access and test caveat

This is a preparation recipe, not a claim that the request will run everywhere. Cloudflare access requires the right account token and credits, and model availability can differ by provider and account. The OpenCode change is merged-source evidence with a stubbed network test; verify the installed version, keep the first call synthetic, and never place provider or gateway credentials in an agent prompt or source-control file.

Evidence Trail

Receipts below the story

The article above is the public narrative. This section keeps the source trail and limits on the same page.

Edition
DateAugust 18, 2026
LaneDaily Edition
Confidence78%
Sources3
Reposanomalyco/opencode

Primary Evidence

Evidence Limits

  • The API requires appropriate Cloudflare account access, a token, and credits; model and feature availability can vary by account and provider.
  • The OpenCode receipt is merged code with stubbed network tests. It does not prove a released OpenCode version, a configured gateway, or the result of a live request.
Letters & Corrections

Send a note to the desk

Corrections, missing context, or a follow-up lead.