/cloudflare:cloudflare-workers-aifrom cloudflare
Use this skill when the user asks about Cloudflare Workers AI, running AI inference on Cloudflare's edge, using AI models in Workers, or managing Workers AI resources with Pulumi.
Ships in cloudflare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Workers AI lets you run AI models on Cloudflare's GPU-powered edge network. Access open-source models (LLMs, image generation, embeddings, speech-to-text) directly from Workers with zero infrastructure management.
cloudflare.WorkersScript with aiBindingexport default {
async fetch(request: Request, env: Env): Promise<Response> {
const response = await env.AI.run("@cf/meta/llama-3.1-8b-instruct", {
messages: [{ role: "user", content: "What is Cloudflare?" }],
});
return Response.json(response);
},
};
interface Env {
AI: Ai;
}
[ai]
binding = "AI"
| Model | Task | ID |
|---|---|---|
| Llama 3.1 8B | Text generation | @cf/meta/llama-3.1-8b-instruct |
| Mistral 7B | Text generation | @cf/mistral/mistral-7b-instruct-v0.2 |
| BAAI BGE | Text embeddings | @cf/baai/bge-base-en-v1.5 |
| Stable Diffusion XL | Image generation | @cf/stabilityai/stable-diffusion-xl-base-1.0 |
| Whisper | Speech-to-text | @cf/openai/whisper |
Workers AI also has a REST API (no Worker needed):
curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/ai/run/@cf/meta/llama-3.1-8b-instruct" \
-H "Authorization: Bearer $CF_API_TOKEN" \
-d '{"messages": [{"role": "user", "content": "Hello"}]}'
// Workers AI is accessed via a binding on a Worker — no separate resource needed
const worker = new cloudflare.WorkersScript("ai-worker", {
accountId,
name: "ai-worker",
content: workerScript,
module: true,
// AI binding is automatic when using the AI API in the Worker
});
| Tier | Neurons/day | Cost |
|---|---|---|
| Free | 10,000 | $0 |
| Paid | Unlimited | $0.011 per 1,000 neurons |
Neurons are a normalized unit of compute across all models.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nsheaps/ai-mktpl --plugin cloudflare15 skills in this plugin
/cloudflare-ai-gatewayUse this skill when the user asks about Cloudflare AI Gateway, proxying AI API requests through Cloudflare, setting up Claude Code with AI Gateway, configuring ANTHROPIC_BASE_URL, routing AI traffic through a gateway for logging/caching/rate-limiting, cost tracking for AI APIs, connecting Claude Code to OpenRouter or z.ai via a gateway, or managing AI Gateway with Pulumi.
/cloudflare-d1Use this skill when the user asks about Cloudflare D1, serverless SQL databases on Cloudflare, SQLite on the edge, or managing D1 databases with Pulumi.
/cloudflare-dnsUse this skill when the user asks about Cloudflare DNS, managing DNS records, domain zones, DNSSEC, proxied records, or managing DNS with Pulumi.
Other plugins' skills for the same job