CLI and agent skills
The kokumi binary outputs strict JSON envelopes on stdout, isolates visitor-written strings behind an untrusted marker, and generates its own read and onboarding skills.
First-timer setup and READ_TOKEN generation#
Kokumi tokens are bearer secrets stored on your Worker, not Cloudflare API keys. Generate one with openssl rand -hex 32, save it to your Worker secret, and initialize a chmod 600 CLI config.
<READ_TOKEN>https://example.comcargo build --manifest-path cli/Cargo.toml --release
openssl rand -hex 32
wrangler secret put READ_TOKEN
./cli/target/release/kokumi init --site main --url https://example.com --token "<READ_TOKEN>"
./cli/target/release/kokumi healthSelf-describing registry and dual skills#
Run kokumi describe --format skill to give a daily heartbeat assistant read-only instructions, or kokumi describe --format onboarding-skill for guided setup ending in handover (which drops any write token and verifies HTTP 403 least-privilege).
Live commands (20)#
Every command is listed in kokumi describe. Click any row to inspect flags, agent directives, and linked exit recovery.
Output safety and exit codes#
All visitor-controlled paths and referrers are NFKC-normalized, stripped of control and bidi characters, capped at 120 chars, and wrapped as {"untrusted": "..."}. Bearer tokens never print to stdout or stderr.