AI agents
An AI agent is an account for a bot or a CI job. It has no email and no password, only a token, and it always has an owner: the person who answers for it. An agent reaches only what it is granted, never past its role's level (Write for the built-in AI agent role), and never more than its owner does. If the owner is disabled, so is the agent. Agents aren't listed under Users, and the API keeps them at /api/v1/agents.
An agent running on your own machine doesn't need an account: create a personal token with Names only from your account menu. Root has no personal tokens, so if root is your only account, add an agent.
Open AI agents from the sidebar. With agents.view you see the agents you own, and with agents.view_all you see every agent. The table shows each agent's owner, its token (active, expires in 3 days once it is a week from expiring, or no token), when the token expires, and when it was last used. Add an Owner chip to see one person's agents.
Add an agent
Choose Add AI agent, give it a name such as review-bot, and choose Add agent. Adding agents needs agents.view, which Admins and Members have. You become its owner and land on its page. It starts with no access.
An agent's page
The page header names the owner and the deepest level the agent can reach. Activity opens the audit log filtered to the agent, and Transfer owner gives it to someone else.
- Access lists its grants, as on a person's page. Give access opens the page described in Users. Levels above its role are shown but can't be picked. As its owner you don't need to manage the project: you can give your agent any project or environment you reach, up to your own level there and at most Write.
- Tokens lists its current token and the ones before it.
- Danger zone disables or deletes the agent.
Its owner, or anyone with agents.manage, can change it. users.manage alone doesn't reach agents.
What an owner can give
Say there are three projects and you have Write on payments only. On your agent's Give access page, payments is the only project listed, and you can give the agent Names only, Read, or Write there. The other two projects aren't offered. A protected environment your project grant doesn't reach isn't offered either.
If your own access drops later, the agent drops with it on its next request, whatever its grant says.
Create or replace its token
An agent holds one token at a time. Choose New token, on the Tokens tab or in the list's ⋯ menu, and set:
- Name: lowercase letters, numbers, and hyphens, such as
ci-deploy. Name it after where it's used. - Can: Names only, Read, or Write. It starts on Read. The role sets the most a token can do. A Write token changes secrets wherever the agent has Write; protected environments still need a grant of their own.
- Where: every project the agent reaches, or one of its grants.
- Expires: 7, 30, or 90 days, or a custom number of days, within the role's limit.
If the agent already has a token, a note says the new one replaces it. Creating the new token revokes the old one right away, so update wherever it is used. Dopbase shows the token once, with an export DOPBASE_TOKEN=... line and a dopbase run line for where it reaches. Copy it straight into a secret store, then choose I've stored it.
To stop a token without making a new one, choose Revoke on the Tokens tab or Revoke token in the list's ⋯ menu.
Transfer, disable, or delete
Transfer owner needs agents.manage. It lists the people who can own the agent: root and anyone whose role has agents.view, so the new owner can see and run it. You see these people even without users.view. The agent keeps its grants but never reaches more than its new owner does. Its tokens are revoked, so a copy the old owner kept stops working; the new owner creates a new one with New token. With no one else who could own it, as on a solo install with only root, the button and the menu item are hidden.
Disable agent stops its token; its access and history stay. If someone with agents.manage disabled it, its owner can't enable it again; only agents.manage can. Delete agent asks you to type its name, then removes it with its grants and tokens. Audit events stay.
The AI agent access guide shows how to pass the token to an agent and what it can do with it.