API tokens¶
An API token lets a program manage your organisation's context and configuration as you, without signing in to the admin UI. The Aegis MCP server uses one, so an AI client such as Claude Code can read and edit your instructions, skills and settings.
API tokens are separate from the API keys developers use with the aegis command. A key
receives a package. A token manages what's in it.
What a token can do¶
A token acts as the person who made it, at their permission level. It can do what an editor can do in the admin UI:
- read, create, change and delete files in Context & Config and All files, including team, role and role-in-repository files
- manage variables (it can set a secret's value, but never read one back)
- register repositories, change them, and import from them
- read the activity feed and preview what someone receives
If your level is lower, the token's is too. An editor on one repository can only change that repository's files, with a token or without.
A token can't do anything that needs an administrator. That covers people, groups, permissions, invitations, settings, backups, the security log and the organisation, even when an administrator makes the token. It also can't change your own account or make another token.
Making a token¶
- Open your account page and go to API tokens.
- Give the token a name you'll recognise later, such as the machine it's for.
- Choose when it expires: 30 days, 90 days or a year.
- Optionally limit its permission level. A token limited to collaborator can read but not change anything.
- Enter your password, and a code if you use two-step verification.
- Choose Make token and copy it. It's shown only once.
A token starts with aegt_. Keep it as secret as a password: anyone holding it can act as you.
Ending a token¶
Choose Revoke next to it on your account page. It stops working at once. An administrator can revoke anyone's token.
Tokens also end when:
- your password is reset, or an administrator sets or removes it
- an administrator lowers your permission level
- an administrator resets your two-step verification
- your account is deleted
- the token reaches its expiry date
Changing your own password and signing out everywhere don't end your tokens.
Every change made with a token shows in the activity feed under your name. The security log records when each token is made, used and revoked.
The Aegis MCP server¶
The Aegis MCP server uses a token to let an AI client manage your context and configuration. To make it read-only, limit its token to collaborator.