add-binding

add-binding is a command for Claude Code from henkisdabro/cloudflare-workers-react-boilerplate. It costs 0 tokens per session (3,009 once invoked), scanned A, original, MIT.

A guided command for adding a Cloudflare binding to a Worker. A binding connects a small program running on Cloudflare to Cloudflare services or other resources.

In plain words
What is it for?
Use it to add a new binding while working on a Cloudflare Worker.
Why use it?
It helps when a Worker needs access to another service or resource but the required connection has not been set up.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add a new binding while working on a Cloudflare Worker.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/henkisdabro/cloudflare-workers-react-boilerplate

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-binding

README.md
[![agentmods](https://agentmods.dev/badge/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding/github.svg)](https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding)
Your own site
<a href="https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding"><img src="https://agentmods.dev/badge/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-binding

Your own site · 80×15
<a href="https://agentmods.dev/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding"><img src="https://agentmods.dev/badge/commands/henkisdabro/cloudflare-workers-react-boilerplate/add-binding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,009 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03009
Opus 5.5 $0.00000 $0.01204
Sonnet 5.5 $0.00000 $0.00602
Haiku 4.5 $0.00000 $0.00301

Measured 19d ago against content hash b45e27bf0cdb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-binding scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

async fetch(request, env) {
.claude/commands/add-binding.md · 327 lines

How it starts

The opening of the file, as written. The whole thing — 327 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Cloudflare Binding Wizard

I'll add a Cloudflare binding to this Worker: update wrangler.jsonc, regenerate types, and show a minimal usage example. Bindings are reached through env and are typed once pnpm cf-typegen has run.

Reference: https://developers.cloudflare.com/workers/runtime-apis/bindings/

Choose a binding

# Binding Use it for Docs
1 D1 database Relational data, SQL queries, transactions https://developers.cloudflare.com/d1/
2 KV namespace Read-heavy key-value data: cache, sessions, flags https://developers.cloudflare.com/kv/
3 R2 bucket Files and large objects, no egress fees https://developers.cloudflare.com/r2/
4 Queue Background jobs, retries, decoupled processing https://developers.cloudflare.com/queues/
5 Durable Object Per-entity state, WebSockets, coordination https://developers.cloudflare.com/durable-objects/
6 Workflow Durable multi-step jobs that survive failures https://developers.cloudflare.com/workflows/
7 Service binding Call another Worker without a public hop https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/
8 Workers AI Hosted model inference https://developers.cloudflare.com/workers-ai/
9 Analytics Engine Custom metrics queried with SQL https://developers.cloudflare.com/analytics/analytics-engine/
10 Environment variable Non-secret configuration strings https://developers.cloudflare.com/workers/configuration/environment-variables/

Pricing and free-tier allowances change; check each product's pricing page rather than relying on numbers here.

Not covered here: database setup with migrations and example code (use /setup-database), AI features (use /add-ai-feature), sandboxed code execution (use /setup-sandbox, see SANDBOX.md). AI Search (formerly AutoRAG) uses an ai_search (single instance) or ai_search_namespaces binding - see https://developers.cloudflare.com/ai-search/.

Read the full file on GitHub · 327 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -717 lines b45e27bf0cdb
  2. 1mo ago First seen · 1,044 lines · 0 tokens per session scan A 1e94e4723678

Subscribe to this mod's changes

add-binding is a command published in the GitHub repository henkisdabro/cloudflare-workers-react-boilerplate (12 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,009 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.