egk_, scoped to one
workspace, and shown in full only once. An app can also sign in to the MCP server
instead of using a key; see Connect your agent.
Mint a key
Only workspace owners and admins can see, create, rotate and revoke keys.1
Open API key settings
Sign in at app.enokilabs.ai and go to
Settings → API Keys. Settings is in the menu under your avatar, top right.
2
Create a key
Click Create key, give it a name, select the scopes it needs (see below),
and click Create. The default selection is
read + write.3
Copy it once
The full key (
egk_…) is shown once, and the page hides it after five
minutes. Copy it and store it securely — you can’t retrieve it again, only
rotate or revoke it. The dashboard afterwards shows just the egk_XXXX
prefix for identification.Scopes
A key carries one or more scopes. Grant the narrowest set that does the job.admin implies read, write, and test:run; read and write each imply
their monitoring:* counterpart. But write does not imply read: the two
are independent.
Which scope each MCP tool needs
cancel_run sits under test:run rather than write: stopping a run is the
same authority over the same resource as starting one, so a key that can
trigger assessments can also stop them — and a key that can only trigger would
otherwise be able to start work it could never halt.read, and has write and test:run when they stayed ticked as it
connected. A workspace owner or admin can change them under Settings → Connected
apps; if the scope you need isn’t offered there, connect the app again.
Which scope each REST endpoint needs
The REST API takes API keys only, with the same scopes:test:run does not imply read either, so a CI key that triggers a run and
polls GET /api/v1/run/{run_id} for its verdict needs both.
Rotate and revoke
1
Rotate
Rotating issues a new key with the same name and scopes and keeps the old one
valid for the grace period you pick (none, 1, 6, 12 or 24 hours; 24 by
default) so you can swap it in without downtime, then the old key stops
working. The new key is shown once, same as creation. The old key leaves the
list at once and can’t be revoked during its grace period, so if it may be
exposed, pick No grace period.
2
Revoke
Revoking disables a key immediately. Use it when a key is no longer needed or
may be exposed.
Key hygiene
- Least privilege. Grant only the scopes needed; never default to
admin. - Keys live in config files. MCP clients store the key on disk (see Connect your agent), so treat it like any secret and prefer a scoped, rotatable key. Where your client can sign in instead, its access is what you allowed, ends on its own, and can be ended under Settings → Connected apps.
- One key per use. Separate keys for separate consumers (a developer’s Claude Code vs a CI pipeline) so you can rotate one without disrupting the other.
- Keep keys out of chats. Don’t paste a key, Enoki’s or an MCP server’s, into an assistant’s chat, or have it read one from your clipboard: whatever it reads lands in the transcript and with its model provider. Add an MCP server’s key on the Enoki page your assistant links to, and in a script read keys from a file or an environment variable, as in the CI example.