What an API key is for
Current workspace API keys use theworker scope. They are intended for CLI and worker daemon authentication.
Create a key
- Open the Cogno app.
- Select the workspace.
- Open Settings > API Keys.
- Select Create.
- Enter a name, such as
MacBook workerorCI worker. - Select Create.
- Copy the raw key immediately.
Use the key with the CLI
Run:Key format and limits
Naming keys
Use names that make revocation decisions obvious.
Avoid names like
test, key, or worker when more than one person operates the workspace.
Store the key
Treat the raw key like a password.- Store it in a local secret manager, CI secret store, or environment variable.
- Do not paste it into task comments, docs, chat, tickets, or screenshots.
- Do not commit it to a repository.
- Create separate keys for separate machines or services.
- Revoke temporary keys when the task is complete.
Revoke a key
- Open Settings > API Keys.
- Find the key by name or prefix.
- Select the revoke icon.
- Confirm Revoke.
Rotate a key
- Create a new key.
- Copy and install the new key on the worker machine or service.
- Restart the worker.
- Confirm the worker appears in Settings > Workers.
- Revoke the old key.