Skip to main content

Cloudflare from the command line

Zones, DNS, Workers and the rest of a Cloudflare account. GBrain gives Cloudflare, and every other connector you add, a command line.

Get Personal, $49 a month

One price for one person: Cloudflare and every other connector GBrain offers, from a terminal or any AI. Cancel any time.

Install the GBrain command line, then connect Cloudflare

Cloudflare is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# AI agents: read gbrain.io/llms.txt
curl -sSL https://gbrainio.terminalwire.sh | bash
gbrainio terminal connect

The installer is a shell script for macOS and Linux. Read it before you run it.

# Every Cloudflare command, once Cloudflare is connected
gbrainio tool help cloudflare

What GBrain can do with Cloudflare

Cloudflare sits in front of websites for DNS, security and speed, and runs code at the edge. Connected to a workspace, GBrain can answer “where does this subdomain point?”, add a DNS record, or check what a Worker is bound to.

  • Search the Cloudflare API
  • Manage zones and DNS records
  • Look up Workers and storage
  • Search Cloudflare's developer docs
gbrainio
gbrainio tool cloudflareZones, DNS, Workers and the rest of a Cloudflare account.USAGE  gbrainio tool cloudflare <command> [arguments]COMMANDS  docs     Search the Cloudflare documentation  search  execute  whoami   Return the Cloudflare user or account that this connection is authen…  open     Open its page in the browserLEARN MORE  gbrainio tool cloudflare <command> -h  What one command takes  https://gbrain.io/docs/tools           The manual
Every command Cloudflare's own server lists, each in its own words.

Cloudflare's own server lists these commands, and the CLI prints this page for them once Cloudflare is connected.

What a terminal may do with Cloudflare, and what GBrain keeps

Off or On, for each terminal

Each terminal reaches Cloudflare at the level set for it in the browser: Off, or On, which is every command Cloudflare's server lists. A terminal reads its level and never raises it.

1,000 actions a day for each command

Each of Cloudflare's commands stops at 1,000 actions a day on the account it reaches, whichever terminal or AI asks, and starts again at midnight UTC. Only that command stops.

Every action on one record

Each command a terminal runs on Cloudflare is a row on GBrain's activity log: which terminal, which account, what it did and whether it was allowed, refusals included. gbrainio activity ls --tool cloudflare reads it back.

From a terminal, Claude Code or Codex

gbrainio tool help cloudflare says what Cloudflare is and what each of its commands does, and gbrainio tool ls lists them with everything else the terminal can run. Claude Code and Codex run the same commands, at the same level, on the same record.

From Cloudflare

GBrain reaches Cloudflare at its own server, mcp.cloudflare.com. On Cloudflare's own pages: its website, how the connection works, its terms of service and its privacy policy.

The GBrain Tools command line works with every other connector GBrain offers, each with a page like this one.

Every connector's command line

Cloudflare from a terminal, with GBrain Personal

Personal is $49 a month for one person. Connect Cloudflare in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.