Docs
Reference

Workers KV

Keys in one Workers KV namespace, readable back through the API.

Keys in one Workers KV namespace, readable back through the API.

The connection

WhatThis provider
VendorCloudflare
Keycloudflare-workers-kv
Availabilityavailable. You can connect it today.
Credential penv holdscloudflare-token
Values read backyes
Activationimmediate

What it moves

DirectionWhat it does
importReads names and values out of the store into penv.
exportWrites names and values from penv into the store.

When a written value goes live

immediate. The running app sees a new value at once.

What happens to a name that exists

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

How you connect

You paste a credential you already hold. penv seals it and never shows it again.

FieldLabelKindRequiredWhat it is
apiTokenAPI tokensecret, masked here and sealedyes

What the connection asks for

Fixed when you connect, and shared by every mapping on it.

FieldLabelKindRequiredAdvancedWhat it is
accountIdAccount IDtextyesnoWorkers & Pages in the dashboard shows it in the right-hand column.

What a mapping asks for

Answered once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
namespaceIdNamespacetextyesnoOne namespace holds one environment.
keyPrefixKey prefixtextnoyesLimits this sync to keys starting with it. Pruning permanently deletes every key in reach, including ones this sync did not write.

Permissions it needs

penv probes for these when it verifies the connection.

PermissionDirectionsBlockingWithout it
Account Settings:Readevery directionyesWe cannot confirm the token reaches this account.
Workers KV Storage:ReadimportyesImport cannot read any value in the namespace.
Workers KV Storage:EditexportyesExport cannot write or remove a key.