How it works
Your server holds the most powerful credential, a secret key, and it never leaves your server. Everything else gets something narrower: agents get agent keys, customers’ browsers get short-lived end-user tokens that your server mints, and MCP clients sign in with OAuth as a team member.Choose a credential
API keys helps you pick one, and Key lifecycle covers creating, rotating, and revoking them.
Enterprise management scopes
Scopes decide which management actions a secret key can take. Give each key only the ones it needs:- Read the workspace:
tenant:readcovers workspace, catalog, balance, usage, ledger, and billing reads. - Change settings and the catalog:
tenant:writeandcatalog:write. - Spend and move credits:
credits:movecovers metered calls, top-ups, and allocations. - Manage credentials:
credentials:managefor keys andtokens:managefor end-user tokens and policies. - Manage payouts and people:
payouts:manageandmembers:manage.
Scopes and roles work together
Scopes don’t override workspace roles. Sensitive changes, including key lifecycle, membership, spend controls, and payout settings, require a workspace owner or admin with recent MFA or passkey verification. An API key can’t satisfy that requirement. Custom API changes, plan changes, and ownership transfer are owner-only. A server key can still automate agent keys; see Automate agent keys.Enterprise workspace roles and invitations
Each member has one role: Owner, Admin, Developer, Billing, or Viewer. Each workspace has exactly one owner. An owner or admin can invite members from Team. Invitations expire after seven days. Team access needs an Enterprise plan, an active Enterprise trial, or a signed agreement. See Team and roles for what each role can do and how to transfer ownership.Check access
Ask Locus what the current credential can do. The response shows its scopes and role, never the secret:When access is denied
Retrying a refused request won’t fix missing access. Check, in order:- The credential: is it the right kind, unexpired, and not revoked?
- The scope: does the key have the scope the action needs?
- The person: sensitive changes need an owner or admin with recent verification, and some need the owner.
- The plan: Enterprise features need an Enterprise plan, trial, or agreement. The owner can choose one under Billing → Plans.
Next steps
API keys
Pick the right key for each place your code runs.
Team and roles
Invite members and choose what each can do.