/cloudflare-vm:r2-sqlfrom cloudflare-vm
Cloudflare R2 SQL: Serverless, distributed, read-only query engine (Apache DataFusion) for Apache Iceberg tables in R2 Data Catalog.
Ships in cloudflare-vm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Vendored from themusebook/skills (derived from cloudflare/skills, Apache-2.0). This snapshot may be outdated: confirm limits, pricing, API signatures and config options against https://developers.cloudflare.com/ before you cite them. When this file and the docs disagree, trust the docs.
When invoked: read every file in this skill's directory before answering, so you have the full reference: api.md, configuration.md, gotchas.md, patterns.md. Then answer the user's question (or, if none was given, summarise the product: what it is, config, API, patterns and gotchas). Related products are sibling skills, linked as ../<product>/.
Serverless, distributed, read-only query engine (Apache DataFusion) for Apache Iceberg tables in R2 Data Catalog.
For full function lists, data types, and pricing, retrieve the live docs — use the cloudflare-docs MCP/search tool if available, otherwise webfetch.
| Topic | URL |
|---|---|
| Overview / get started | https://developers.cloudflare.com/r2-sql/get-started/ |
| Query data | https://developers.cloudflare.com/r2-sql/query-data/ |
| SQL reference | https://developers.cloudflare.com/r2-sql/sql-reference/ |
| Aggregate functions | https://developers.cloudflare.com/r2-sql/sql-reference/aggregate-functions/ |
| Scalar functions | https://developers.cloudflare.com/r2-sql/sql-reference/scalar-functions/ |
| Complex types | https://developers.cloudflare.com/r2-sql/sql-reference/complex-types/ |
| Limitations & best practices | https://developers.cloudflare.com/r2-sql/reference/limitations-best-practices/ |
| Wrangler commands | https://developers.cloudflare.com/r2-sql/reference/wrangler-commands/ |
| Pricing | https://developers.cloudflare.com/r2-sql/platform/pricing/ |
| Value | Format |
|---|---|
| REST endpoint | https://api.sql.cloudflarestorage.com/api/v1/accounts/{ACCOUNT_ID}/r2-sql/query/{BUCKET} |
| Wrangler | npx wrangler r2 sql query "{WAREHOUSE}" "<SQL>" with WRANGLER_R2_SQL_AUTH_TOKEN set |
| Warehouse | {ACCOUNT_ID}_{BUCKET} |
The REST endpoint is
api.sql.cloudflarestorage.com— notapi.cloudflare.com/.../r2/sql.
npx wrangler r2 bucket catalog enable my-bucket # 1. enable catalog
export WRANGLER_R2_SQL_AUTH_TOKEN=<r2-token> # 2. auth (Admin R&W + R2 SQL Read)
npx wrangler r2 sql query "$ACCOUNT_ID"_my-bucket \
"SELECT * FROM default.my_table LIMIT 10" # 3. query
R2 SQL is read-only and supports a broad analytical SQL surface (SELECT, JOINs, subqueries, CTEs, set operations, window functions, and aggregate/scalar/JSON functions over complex types). For the authoritative, current list of supported syntax, functions, and limitations, see the SQL reference and limitations docs linked above. api.md has query templates.
Use for: SQL analytics over Iceberg (logs, BI, fraud, ad-hoc), multi-cloud queries without egress, dashboards (query from a Worker via HTTP).
Don't use for: writes (use PySpark/PyIceberg) or real-time OLTP (<100 ms).
There is no env.R2_SQL binding. Query from a Worker via fetch() to the REST endpoint with the token as a secret (see patterns.md).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub vmaia00/claude-specs --plugin cloudflare-vm64 skills in this plugin
/agents-sdkCloudflare Agents SDK: Cloudflare Agents SDK enables building AI-powered agents on Durable Objects with state, WebSockets, SQL, scheduling, and AI integration./ai-gatewayCloudflare AI Gateway: Expert guidance for implementing Cloudflare AI Gateway - a universal gateway for AI model providers with analytics, caching, rate limiting, and routing capabilities./ai-searchCloudflare AI Search Reference: Expert guidance for implementing Cloudflare AI Search (formerly AutoRAG), Cloudflare's managed semantic search and RAG service.Other plugins' skills for the same job