Quick Start
Get Keyflare running on your Cloudflare account in just a few commands.Prerequisites
Node.js
Node.js 20+ installed on your machine.
Cloudflare Account
A Cloudflare account. Free tier works perfectly. You need to be able to create at least one more Worker and one D1 database.
Installation
Install the Keyflare CLI globally:Optional: Use the bundled agent skill
If you use an AI coding agent in this repo, Keyflare ships with a lightweight CLI usage skill at:kfl run).
Deploy Keyflare
Run the initialization command:- Browser (OAuth)
- API Token
Opens
cloudflare.com in your browser. Wrangler caches the OAuth session locally, so subsequent runs reuse the session automatically.What kfl init Does
1
Authenticate
Checks for existing Wrangler session or prompts for authentication method.
2
Deploy Worker
Deploys the Keyflare Worker to your Cloudflare account via
wrangler deploy.3
Create Database
Wrangler auto-provisions the D1 database from the configuration.
4
Set Master Key
Generates a 256-bit
MASTER_KEY and stores it as a Worker secret.5
Apply Database Schema
Runs Drizzle migrations to create the database schema.
6
Bootstrap
Creates the first root user key via the
/bootstrap endpoint.7
Save Configuration
Saves the API URL and root key to
~/.config/keyflare/.Next Steps
Now that Keyflare is deployed, you can:Create a Project
Organize your secrets into projects and environments.
Add Secrets
Store your first secrets in Keyflare.
Create API Keys
Generate scoped keys for CI/CD and services.
