Command Code + Cloudflare·续
FAQ
<details>
<summary>Should I use Skills, the MCP server, Wrangler CLI, or all of them?
</summary>
All three, and start with Skills. Skills give Command Code persistent Cloudflare expertise: when to reach for Durable Objects over KV, how to structure a Workers project, and when to call the CLI instead of the API. The Cloudflare API MCP server handles account operations, such as DNS, WAF, R2, and Zero Trust. Wrangler handles local development, deployments, and migrations. Command Code runs local shell commands, so it can call Wrangler directly.
</details>
<details>
<summary>How do I give Command Code access to my Cloudflare account?
</summary>
Run <code>cmd mcp add --transport http cloudflare https://mcp.cloudflare.com/mcp</code>. When Command Code prompts you, complete the OAuth flow in your browser and choose the permissions to grant.
</details>
<details>
<summary>Where does cmd skills add install the Cloudflare Skills?
</summary>
Into <code>.commandcode/skills/</code> for the current project, or <code>~/.commandcode/skills/</code> when you pass <code>--global</code>. Run <code>cmd skills list</code> to confirm what is installed.
</details>
<details>
<summary>What does Code Mode mean for MCP?
</summary>
Code Mode is how the Cloudflare API MCP server fits all 2,500+ API endpoints into about 1,000 tokens. Instead of exposing every endpoint as a separate tool, it exposes <code>search()</code> and <code>execute()</code>. Command Code writes JavaScript to call them. For more information, refer to <a href="https://blog.cloudflare.com/code-mode-mcp/">Code Mode ↗︎</a>.
</details>
<details>
<summary>Which models can I use with Command Code?
</summary>
Command Code works with models from Anthropic, OpenAI, Moonshot, DeepSeek, Z.ai, Alibaba, MiniMax, and others. Run <code>cmd --list-models</code> to see what is available to you, or <code>/model</code> to switch inside a session. For the current list, refer to <a href="https://commandcode.ai/docs/reference/cli/models">Available Models ↗︎</a>.
</details>
<details>
<summary>How does Command Code learn my coding style?
</summary>
Through Taste. Every accept, reject, and edit becomes a signal, and the learned preferences are stored in taste packages that you can share across projects and with your team. For more information, refer to <a href="https://commandcode.ai/docs/taste">Taste ↗︎</a>.
</details>
<details>
<summary>Can I run Command Code in CI against my Workers project?
</summary>
Yes. Headless mode runs Command Code non-interactively, so it can lint, test, or deploy a Worker from a pipeline. For more information, refer to <a href="https://commandcode.ai/docs/headless">Headless Mode ↗︎</a>.
</details>
<details>
<summary>Is Command Code open source?
</summary>
No. Command Code is a commercial product with a subscription plan. For details, refer to <a href="https://commandcode.ai/docs/resources/pricing-limits">Pricing and Limits ↗︎</a>.
</details>
Troubleshooting
<details>
<summary>MCP server not connecting
</summary>
Run <code>cmd mcp list</code> to check the server status. Confirm that the server URL is <code>https://mcp.cloudflare.com/mcp</code> and that you passed <code>--transport http</code>. Remove the server with <code>cmd mcp remove cloudflare</code> and add it again.
</details>
<details>
<summary>Getting outdated information about Cloudflare products
</summary>
Point Command Code to <a href="https://developers.cloudflare.com/llms.txt">developers.cloudflare.com/llms.txt</a> for a directory of all products, or <code>developers.cloudflare.com/<product>/llms.txt</code> for a product-specific index.
</details>
<details>
<summary>MCP server authentication fails
</summary>
Remove and re-add the MCP server. When Command Code prompts you, complete the OAuth flow in your browser.
</details>
Build agents on Cloudflare
Cloudflare is not just a deploy target for agents, it is a full stack for building your own.
Agents SDK Stateful AI agents with state, scheduling, RPC, email, streaming chat — and the Code Mode SDK for token-efficient tool use.Learn more Build an MCP server Ship a remote MCP server on Workers with OAuth, durable state, and streamable HTTP transport.Learn more Workers AI Run open-source LLMs, embedding models, and image models at the edge. Use it as your agent's model provider.Learn more Worker Loader Load user-generated code into isolated Workers on demand. The secure sandbox behind Code Mode.Learn more
Other agents

Anthropic<h3>Claude Code</h3>Terminal-based coding agent that understands your codebase, runs commands, edits files, and manages git. Made by Anthropic.View guide 
OpenAI<h3>Codex</h3>OpenAI coding agent available as a terminal CLI and desktop app. It reads and writes files, runs commands, and browses the web in a sandbox.View guide 
Cursor<h3>Cursor</h3>AI-first IDE built on VS Code with multi-file Composer edits and background agents. Made by Cursor.View guide 
GitHub<h3>GitHub Copilot</h3>Editor extension and CLI with agent mode, workspace context, and native PR integration. Made by GitHub.View guide 
Anomaly<h3>OpenCode</h3>Open-source terminal agent with a rich TUI that works with 75+ LLMs. Made by Anomaly.View guide 
Mistral AI<h3>Vibe</h3>Coding agent for terminal, IDE, and cloud workflows that reads files, runs commands, writes code, and opens pull requests. Made by Mistral AI.View guide 
Cognition<h3>Devin</h3>A full IDE with an agent manager built in — the command center for managing all your agents in one place. Made by Cognition.View guide 
Microsoft<h3>Visual Studio Code</h3>Free, open-source code editor with native Model Context Protocol (MCP) client support and Copilot Chat integration. Made by Microsoft.View guide 
LM Studio<h3>Bionic</h3>Powerful agent for coding and work. Natively local, with open models in the cloud. By LM Studio.View guide 
Factory<h3>Droid</h3>Model-agnostic coding agent that plans, edits files, runs commands, and automates CI, from the terminal, desktop app, or cloud. Made by Factory.View guide
Was this helpful?
YesNo
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/agent-setup/command-code/#page","headline":"Command Code + Cloudflare","description":"Use Command Code with Cloudflare projects, Cloudflare Skills, the Cloudflare MCP servers, and Wrangler from your terminal.","url":"https://developers.cloudflare.com/agent-setup/command-code/","inLanguage":"en","image":"https://developers.cloudflare.com/agent-setup/command-code/og.png?v=c491d96cb16733a4","dateModified":"2026-10-05","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: AI-first IDE built on VS Code with multi-file Composer edits and background agents. Made by Cursor. title: Cursor + Cloudflare image: https://developers.cloudflare.com/agent-setup/cursor/og.png?v=cd111722160e6c8a
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/agent-setup/llms.txt
Use this file to discover all available pages before exploring further.


Cursor
