LatchkeyLatchkey
← Docs

Supabase + Latchkey

Integration notes

Service role and personal access material should not sit in plaintext .env files that agents can read wholesale.

Typical env names

  • SUPABASE_URL
  • SUPABASE_ANON_KEY
  • SUPABASE_SERVICE_ROLE_KEY

Setup

  1. Add only what the tool needs. Prefer anon keys for client-shaped work. Put service role keys behind approve and a tight .latchkey.toml
  2. Never commit vault files. Commit .latchkey.toml (names only). Keep ~/.latchkey off git
  3. Inject for local scripts. latchkey run -- npm run db:script (or your migration helper)

Honest notes

  • Latchkey does not host your Supabase project or rotate Supabase keys.
  • A careless approve still injects plaintext into the child. Scope service role names tightly.
  • The offline scan looks for common key shapes; treat a finding as a rotate-and-purge job.

More tools: OpenAI · Anthropic · Cursor · Claude Code · Vercel · Stripe · GitHub. Pricing and licences: pricing.