Skip to main content
Keyflare uses API keys for authentication. There are two types with different access levels.

Key Types

User Email Tracking

When a key is created via the CLI, the Cloudflare account email of the creator is automatically recorded (via wrangler whoami). This is shown in the EMAIL column of kfl keys list. Keys created without a detectable email show -.

User Keys (kfl_user_*)

  • Full admin access to everything
  • Can manage all projects, environments, secrets, and other API keys
  • No scoping required — access to all resources
  • Use for: developers, admins, backup keys

System Keys (kfl_sys_*)

  • Scoped access to specific project:environment pairs
  • Can only read or write secrets within their scope
  • Cannot create projects, environments, or other keys
  • Use for: CI/CD pipelines, deployment scripts, runtime services

Permission Levels

Create API Keys

User Key

The full key is shown only once. Save it securely — it cannot be retrieved again.

System Key

System keys require --scope and --permission flags:
The * wildcard must be quoted to prevent shell expansion:

Scope Format

Scopes follow the format project:environment:

List Keys

Output:

Update System Keys

Update scopes and permissions for an existing system key:
kfl keys put replaces all existing scopes with the new set. Copy current scopes from kfl keys list and modify as needed.

Revoke Keys

Revocation is instant — the key can no longer authenticate.

Next Steps

Using Secrets

Inject secrets into CI/CD pipelines and runtime processes.

Security & Backup

Back up your master key and define your recovery strategy.