Cloudflare in Codex.
Codex can build and test on Cloudflare, but going live or deleting anything needs your OK. This is for the Codex app or Codex in your Terminal, on your own Mac or Linux computer.
passed Nov 16 · Wrangler (Cloudflare)
fieldtrip add wranglerNew to fieldtrip? Install it first: curl -fsSL fieldtrip.sh/install | sh
Codex can
- Test deploys before they go live.
- Read your logs and data.
- Make test versions to share.
Asks you first
- Put a deploy live.
- Delete a database, storage or a Worker.
- Change secrets.
Try asking Codex
Paste one into Codex. Underneath: what it runs.
Check my Worker would deploy, without going live.
wrangler deploy --dry-runWatch my Worker's logs while I click around.
wrangler tail my-worker --format jsonHow many rows are in the votes table in D1?
wrangler d1 execute my-db --remote --command "select count(*) from votes" --jsonDeploy my Worker.
wrangler deployasks you first
How it’s set up for Codex
| the key | In Codex's own settings, ~/.codex/config.toml, in the part that only applies to the commands Codex runs. Your Terminal can't see it. |
|---|---|
| the note | Saved as a skill in ~/.agents/skills/wrangler, where Codex looks. Codex reads it when you ask about Cloudflare. It says how to use Cloudflare, and what to check with you about first. |
| after setup | Quit Codex and start it again. It reads its settings when it starts. |
| two checks | Codex has its own settings for when it asks before running a command. fieldtrip's note adds a check that doesn't depend on them. |
| check it | Ask Codex on your computer to run fieldtrip doctor. It should say “Running in Codex” and show a ✓ beside Cloudflare. |
Do this once.
- Make a key on Cloudflare from its "Edit Cloudflare Workers" template, for one account. fieldtrip will give you the link and tell you which boxes to tick, and why.
- Paste your key when fieldtrip asks you to.
Your key goes into your Terminal when fieldtrip asks. It never goes through Codex’s chat.
Checked every night
Yes. Cloudflare 4.163.0 passed all five checks, Mon, Nov 16 · 11:09 AM CST.
Each square is one night.
← All of Cloudflare: every AI, every version · Cloudflare in Claude Code → · Cloudflare in Cursor → · What’s a CLI?