API keys
API keys are the only way to authenticate with the Flik API from the CLI and MCP. You create and manage them in the web app.
Creating a key
- Sign in at the Flik web app.
- Go to Keys (or Dashboard → Keys).
- Click to create a new key and give it a name (e.g. “CLI”, “Cursor MCP”).
- Copy the key immediately — the full value is shown only once. Store it in
FLIK_KEYor in a.flikfile for the CLI/MCP.
Keys have the form flik_ followed by a long hex string. They are stored hashed; only the prefix is shown in the list later.
Using a key
- CLI — Set
FLIK_KEYin the environment or in a.flikfile, or pass the key toflik auth login [api-key]. - MCP — Set
FLIK_KEY(or use a.flikfile in a directory that Cursor runs from). You can also override per-tool via theapi_keyargument.
Send the key as a Bearer token:
Authorization: Bearer flik_<your-key>
Rotating and deleting
- Rotate — From the Keys page, rotate a key. The old key stops working immediately; the new key is shown once. Update your CLI/MCP config with the new value.
- Delete — Removes the key; it stops working immediately. Use this when retiring a key or revoking access.
Key types (human vs agentic)
Keys can be created as human or agentic. Agentic keys may be restricted (e.g. no project delete, or only update issues assigned to that key). See the API and architecture docs for details. For typical developer and PM use, human keys are the default.