API keys
Keys for the MCP server, the GitHub Action, CI and scripts.
An API key lets a tool act as you without a browser sign-in. Use one for the MCP server, the GitHub Action, the CLI in CI, or your own scripts.
Creating a key
In the dashboard, open API keys:
- Under New key, name it after where it will live, for example "Claude Code on my laptop".
- Pick when it Expires: never, 30 days, 90 days or 1 year.
- Click Create key.
The key (il_…) is shown once, with a ready-made Claude Code setup command. Copy it then and store
it like a password.
What a key can do
- A key acts as you, with your role. If your role changes or you leave the org, the key's access changes with it.
- It works in the org you created it in. To use another org you belong to, set
INTERLEAVE_ORGor pass--org. - Any member can create keys. You see your own keys; admins and owners see every member's keys in the org.
Using a key
Set it as INTERLEAVE_API_KEY. The CLI, the MCP server and the Action all read it, and it beats a
saved interleave login:
INTERLEAVE_API_KEY=il_… npx @interleaveqa/cli run --pr 42In CI, store it as a secret, such as the repository secret INTERLEAVE_API_KEY on GitHub. Never commit
it.
interleave login also creates a key and saves it in ~/.config/interleave/credentials.json. It's
listed in the org you logged in with (--org), or in your personal org.
Revoking a key
On API keys, click Revoke next to the key and confirm. Anything using it stops working right away. You can revoke your own keys; admins and owners can revoke any member's key in the org.
The list shows each key's prefix and when it was last used, so you can spot keys nobody uses.