Credentials for MCP, CLI and API
Published
Reviewed
π
Two keys, three doors.
Everything outside the dashboard authenticates with one of two credentials: a browser sign-in or a personal API token. Which one a tool accepts, and what it may do there, differs per tool.
About credentials
A browser sign-in starts in the MCP client or with frbit auth login. A person approves it in the dashboard, and the tool stores and renews it. An API token is created in the dashboard and pasted where needed.
A browser sign-in works only for the tool that started it. An API token works everywhere.
Where each credential works
| Credential | MCP server | CLI and public API |
|---|---|---|
| MCP sign-in | Yes | No |
| CLI sign-in | No | Yes |
| API token | Yes | Yes |
Agent skills hold no credential of their own. They use the MCP server or the CLI.
What each credential may do
| Credential | Read | Write | Delete |
|---|---|---|---|
| MCP sign-in | Yes | Yes | Not offered |
| CLI sign-in | Yes | Yes | When allowed |
| API token, read | Yes | No | No |
| API token, read and write | Yes | Yes | No |
| API token, read, write and delete | Yes | Yes | Yes |
Write means create and change. Over MCP, an agent creates apps and environments, changes environment variables, deploys and restarts. No MCP tool deletes, so the delete permission changes nothing there.
API token permissions apply on the MCP server too: a read-only token calls the read tools only.
The CLI sign-in deletes only when Allow deletes was ticked on approval. Restoring a backup and switching a component off count as deletes, see token permissions.
Lifetime and revocation
| Browser sign-in | API token | |
|---|---|---|
| Created | MCP client, frbit auth login | Dashboard |
| Expires | 1 year after approval, or after 30 days unused | Never |
| Revoke | AI agents in the account menu | API tokens |
Which one to use
- A person at their own computer: the browser sign-in.
- A CI job, a script or a server: an API token with the smallest permission that covers the job.
- An MCP client without OAuth support: an API token, read-only unless the agent should change things.