Cloudflare Codemode Bash — DevOps skill for Claude Code
Claude Code skill for interacting with the Cloudflare API via bash + node.
How to install Cloudflare Codemode Bash
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Ankcorn/cloudflare-codemode-bash and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cloudflare Codemode Bash does
Claude Code skill for interacting with the Cloudflare API via bash + node.
Alternatives in DevOps
- Kubeshark — Cluster-wide network observability for Kubernetes 11.8k ★
- Vinext — Vite plugin that reimplements the Next.js API surface — deploy anywhere 8.7k ★
- GPT Telegram Worker — A multi-model AI Telegram bot powered by Cloudflare Workers, supporting various APIs including OpenAI, Claude 268 ★
README
cloudflare-codemode-bash
A Claude Code skill for interacting with the entire Cloudflare API using bash + Node.js — no MCP server required.
Inspired by the **codemode pattern** invented by [Matt Carey (@mattzcarey)](https://x.com/mattzcarey), who built the original [mattzcarey/cloudflare-mcp](https://github.com/mattzcarey/cloudflare-mcp) server that Cloudflare subsequently adopted as their official [cloudflare/mcp](https://github.com/cloudflare/mcp). The core insight: instead of exposing 2,500 API endpoints as individual MCP tools (~244k tokens), give the agent two tools — `search` and `execute` — and let it write JavaScript to call the API itself (~1k tokens).
This skill takes that same approach but strips out the MCP server entirely. Since Claude Code already has bash access, you can just run Node directly.
How it works
Two steps, same as the official Cloudflare MCP codemode server:
- Search — query
~/.cache/cloudflare-spec-processed.jsonwith a Node snippet to find endpoints - Execute — run a Node script against
api.cloudflare.comusing your API token
The `process-spec.js` script mirrors `cloudflare/mcp`'s `spec-processor.ts`: it resolves all `$ref` pointers inline and injects synthetic product tags, so searches work cleanly without manual schema lookups.
Setup
# 1. Set env vars
export CLOUDFLARE_API_TOKEN=your_token_here
export CLOUDFLARE_ACCOUNT_ID=your_account_id_here
# 2. Download raw spec (~9MB)
curl -s -o ~/.cache/cloudflare-spec.json \
https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
# 3. Pre-process (resolves $refs, injects product tags, ~33MB output)
node process-spec.js
Install
Clone and drop the skill folder into `~/.claude/skills/`:
git clone https://github.com/Ankcorn/cloudflare-codemode-bash
cp -r cloudflare-codemode-bash ~/.claude/skills/cloudflare-api
Or in Claude Code:
/plugin install cloudflare-codemode-bash@Ankcorn
Files
SKILL.md— skill
Related Skills
Clopinette AI
Cloudflare-native AI agent — 13 tools, codemode, 5-layer memory, self-learning, multimodal I/O. Telegram, Disc
Do Computer
Open-source, self-hostable, always-on personal agent with its own computer. Runs on Cloudflare Workers or Node
Openclaw Obsidian Desktop
Docker setup for running OpenClaw and Obsidian together in a browser-accessible virtual desktop, with an OpenC
Agbox
Turn a fresh Debian/Ubuntu machine into a home for AI coding agents (Claude Code, Codex, opencode) in one comm
Kubectl Guard For Claude Code
A PreToolUse hook for Claude Code that restricts what an AI agent can do with kubectl and helm through the Bas
Claude AWS Guard
Claude Code plugin that guards aws CLI calls from the Bash tool. Configurable profile blocklist, extra denies
Related Agents
DevOps Automator
API deployment and CI/CD specialist for Docker, GitHub Actions, Cloudflare Workers, Node.js, AWS Lambda, Railw
Beardrive Designer
Product designer who reviews the BearDrive web app's visual design, UX, and layout. Drives the real UI with Pl
Script Reviewer
Senior scripting reviewer (2026) auditing a single kit script — Python, bash, or Node ESM (.mjs). Reviews invo