0n3
MCP servers · Cloudflare · MCP server

Connect Codex CLI to Cloudflare

One line gives Codex CLI your Cloudflare account as tools: 21 endpoints, workers, kv, r2, called with your own connection. No key in the prompt, a receipt for every call, revoke Codex CLI's access alone any time.

Get the line for Codex CLIConnect Cloudflare first

Three steps

  1. Create a free 0n3 account and connect Cloudflare. Paste a key or sign in; it lands in your vault, encrypted.
  2. Install 0n3 into Codex CLI. OpenAI's terminal agent reads 0n3 over Streamable HTTP with a token from your environment.
  3. Ask Codex CLI: whoami. Then: "List workers in Cloudflare".
Put the token in your environment
export ON3_TOKEN="<your 0n token>"

Add it to your shell profile so Codex finds it next time.

The line above carries a placeholder; 0n3.app/install mints a real key named for Codex CLI and fills it in.

What Codex CLI can then do in Cloudflare

Workers · Deploy and manage Cloudflare Workers3
List workersGET /accounts/{accountId}/workers/scripts
Get a workerGET /accounts/{accountId}/workers/scripts/{scriptName}
Delete a workerDELETE /accounts/{accountId}/workers/scripts/{scriptName}
Kv · Key-Value storage for Workers5
List kv namespacesGET /accounts/{accountId}/storage/kv/namespaces
Create a kv namespacePOST /accounts/{accountId}/storage/kv/namespaces
Read a kv valueGET /accounts/{accountId}/storage/kv/namespaces/{namespaceId}/values/{keyName}
Write kv valuePUT /accounts/{accountId}/storage/kv/namespaces/{namespaceId}/values/{keyName}
Delete a kv valueDELETE /accounts/{accountId}/storage/kv/namespaces/{namespaceId}/values/{keyName}
R2 · S3-compatible object storage2
List r2 bucketsGET /accounts/{accountId}/r2/buckets
Create a r2 bucketPOST /accounts/{accountId}/r2/buckets
D1 · Serverless SQL database3
List d1 databasesGET /accounts/{accountId}/d1/database
Create a d1 databasePOST /accounts/{accountId}/d1/database
Query d1POST /accounts/{accountId}/d1/database/{databaseId}/query
Dns · DNS zone and record management4
List dns recordsGET /zones/{zoneId}/dns_records
Create a dns recordPOST /zones/{zoneId}/dns_records
Update a dns recordPUT /zones/{zoneId}/dns_records/{recordId}
Delete a dns recordDELETE /zones/{zoneId}/dns_records/{recordId}
Pages · Cloudflare Pages static site deployments1
List pages projectsGET /accounts/{accountId}/pages/projects

All 21 Cloudflare endpoints →

Cloudflare in other AI clients

Claude Code + CloudflareMCP server + skillClaude (desktop & claude.ai) + CloudflareconnectorChatGPT + Cloudflareconnector · GPT actionGemini CLI + CloudflareMCP serverCursor + CloudflareMCP serverVS Code (Copilot) + CloudflareMCP serverWindsurf + CloudflareMCP server

Codex CLI with other apps

Hostinger363 endpointsTelegram132 endpointsPipedrive95 endpointsResend67 endpointsSquare57 endpointsLinkedIn50 endpointsSlack45 endpointsFigma32 endpointsCloudConvert32 endpointseBay25 endpointsQuickBooks21 endpointsReddit21 endpoints