This page applies to Onyx v4.7 and later. For older versions,
see Service Accounts before v4.7.
Service accounts require a Business or Enterprise plan, or Onyx Cloud. On Onyx Cloud,
trial workspaces cannot create API keys. Upgrade to a paid plan first.
A service account is a distinct user in Onyx, so you can trace its activity, keep its chat sessions private,
and scope resources to it. It cannot sign in with a password. It authenticates only with its API key.
How a Service Account Gets Its Access
A service account has no permissions of its own. Its access is the combination of the permissions of every group you assign it, exactly like a person’s access.
Assigning several groups adds their permissions together.
For how groups and permissions fit together,
see Understanding Permissions.
Who Can Manage Service Accounts
Managing service accounts requires the Manage Service Accounts permission, which an admin grants to a group. Admins always have it.Creating a Service Account
1
Create the account
Go to Admin Panel → Service Accounts and click New Service Account.
Enter a Name and select the Groups it should belong to. You can change both later.
2
Save and copy the key
The Service Account API Key dialog shows the key once. Copy or download it before you close the dialog.
Managing Service Accounts
For each account you can:Personal Access Tokens
Service accounts are for applications. When you want a token that acts as a person, use a Personal Access Token instead. Any user with the Create User Access Token permission can create one from Settings > Accounts & Access > Access Tokens. Click New Access Token, then set:
A token can never do more than the user who created it. Users see and revoke only their own tokens.
The Basic group grants Create User Access Token by default.
An admin can turn it off on the Basic group’s page to stop users from creating tokens.
The same permission controls whether users can authorize external MCP clients that connect to Onyx.
Changing or resetting a user’s password revokes all of their Personal Access Tokens. API keys are not affected.
On Onyx Cloud, Personal Access Tokens require a paid plan.