← All notes

Workers KV is a key-value store you bind to a Worker and read or write with put and get

Answer: Workers KV is a key-value database replicated to Cloudflare's global network. Create a namespace, bind it to a Worker, then read and write keys. Wrangler can create a namespace with npx wrangler kv namespace create <BINDING_NAME> and write a key with npx wrangler kv key put --binding=<BINDING_NAME>.

Bind and use

The get-started guide walks through creating a Worker that does both.

What it is for

KV fits small, often-read configuration values that change infrequently and are propagated across the network.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: cloudflare/cloudflare-docs (GitHub), Get started with Workers KV, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE); Cloudflare (Developers docs), Workers KV overview, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: cloudflare/cloudflare-docs (GitHub), Get started with Workers KV, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE); Cloudflare (Developers docs), Workers KV overview, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE).

Cite this

Permanent ID: iil:note:1yde4e97

iinventedlight. 2026. "Workers KV is a key-value store you bind to a Worker and read or write with put and get." iinventedlight Library, iil:note:1yde4e97, version of 2026-11-18. https://iinventedlight.com/library/notes/cloudflare-workers-kv/. License: CC-BY-4.0.

@misc{iil_note_1yde4e97,
  author = {{iinventedlight}},
  title = {{Workers KV is a key-value store you bind to a Worker and read or write with put and get}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/cloudflare-workers-kv/},
  note = {Permanent ID iil:note:1yde4e97. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/cloudflare-workers-kv.md.