Every call, on every interface, authenticates with an API key or as a person, with OAuth or a sign-in. The steps are in Authentication.
Credentials
The CLI signs you in and stores a token in ~/.config/veryfront/token:
npx veryfront loginIt opens a browser. --google, --github and --microsoft pick the provider; with no browser, --token asks for an API key instead:
npx veryfront login --tokenIn scripts and projects, the CLI and the TypeScript SDK read an API key:
VERYFRONT_API_KEY=vf_…Check who you are:
npx veryfront whoamiAPI keys
A key looks like vf_<prefix>_<secret>. Its secret is shown once, when you create it. Both headers work the same:
curl https://api.veryfront.com/projects?limit=1 \ -H "Authorization: Bearer $VERYFRONT_API_KEY" curl https://api.veryfront.com/projects?limit=1 \ -H "X-API-Key: $VERYFRONT_API_KEY"A key has:
- Scopes:
readby default.read,writeanddeletecover everything; narrower ones name a resource, such asfiles:writeorsandboxes:*. - A project: a project key reaches only that project. A key made without one acts for its user.
- An expiry: optional. An expired key is rejected as
Invalid or expired API key. - Inference limits: the models it may call and its requests per minute. See Limits.
See:
OAuth
The MCP server signs in MCP clients with OAuth: authorization code with PKCE (S256), public clients, scope mcp, and refresh tokens. A client registers itself at /oauth/register and revokes an access or refresh token at /oauth/revoke; the rest of the server is described at /.well-known/oauth-authorization-server. When an app asks, Veryfront shows Connect to Veryfront, to use Veryfront as you with your existing permissions: click Authorize or Cancel. Your approved apps are under MCP clients in your own Settings > Connections, with Project, Approved and Last used; Revoke in a row's ⋯ menu removes one.
When a call isn't authenticated
A missing, malformed or expired credential returns 401 with the error authentication-required:
{ "type": "https://api.veryfront.com/errors/authentication-required", "title": "Authentication Required", "status": 401, "detail": "Invalid or expired API key", "slug": "authentication-required"}Missing or invalid Authorization header means no credential reached the API; Invalid or expired API key means one did and was refused. A credential without the permission gets 403 authorization-denied. See Errors.
See Fix errors.