An agent that calls the API from outside the process can have a credential of its own
(nma_...), so the ledger and a revoke apply to that agent alone. The routes are in
the API reference (“Agent credentials”).
Prerequisites
Section titled “Prerequisites”- A running server with sign-in on and an owner account (Accounts and roles). Only an owner in a signed-in session can issue or rotate a credential.
- The id of the agent: the
idof an entry underorg.agentsin the configuration. - The team folder, for the command line.
- As the owner, issue the credential in the app (Agents, Access, Issue) or with
POST /v1/agents/{id}/credentials. The secret is shown once: store it where the agent reads its secrets. - Give the agent the secret. It calls the API as itself, with
readandrunonly. - List, and revoke when needed, from the command line: Example.
What the command line can and cannot do
Section titled “What the command line can and cannot do”| Action | Command line | App / API |
|---|---|---|
| issue a credential | no | owner in a signed-in session (POST /v1/agents/{id}/credentials, or Agents, Access, Issue in the app) |
| rotate | no | owner in a signed-in session |
| list | agents credentials list |
yes |
| revoke one | agents credentials revoke |
yes |
| revoke all of one agent | agents credentials revoke-all |
yes |
The command line can only look and restrict. It never issues, renews or lengthens a credential and
never shows a secret (the secret is shown once, when it is issued). A revoke from the command line
is recorded in the ledger as service:cli, reason admin, and a halt or a paused role does not
block it.
<team> is the team folder (its name is the team the credentials belong to). The store is chosen
as on CLI reference (“Which store a command uses”). An agent id is the id of an entry under
org.agents in the configuration.
Example
Section titled “Example”The walk-through used a scratch team (nuramesh init agent-team --template dev-team), a server
started with nuramesh serve agent-team --auth, the first owner made from a setup token, and
three credentials issued through POST /v1/agents/{id}/credentials (two for dana, one for
theo, scopes read and run, 30 days). Then, from a terminal:
$ nuramesh agents credentials list --team agent-teamagc_e7d1c652901bcd55f3052a12 dana read,run active expires 2026-11-29T02:49:24.474314+00:00agc_91c5d59465afe8d4f903d2f1 dana read,run active expires 2026-11-29T02:49:24.515250+00:00agc_6ff48a137ba10ffef5f42f8d theo read,run active expires 2026-11-29T02:49:24.555423+00:00[exit 0]$ nuramesh agents credentials list --team agent-team --agent danaagc_e7d1c652901bcd55f3052a12 dana read,run active expires 2026-11-29T02:49:24.474314+00:00agc_91c5d59465afe8d4f903d2f1 dana read,run active expires 2026-11-29T02:49:24.515250+00:00[exit 0]$ nuramesh agents credentials list --team agent-team --agent nobodyno agent 'nobody' in this team[exit 2]The columns are the credential id, the agent, the scopes, the state and the expiry. The state is
active, revoked or expired; issuer-erased is added at the end of the line when the person
who issued it has been erased. The list shows this team’s credentials only (the ones this server can
act on).
$ nuramesh agents credentials revoke agc_e7d1c652901bcd55f3052a12 --team agent-teamrevoked agc_e7d1c652901bcd55f3052a12[exit 0]$ nuramesh agents credentials revoke agc_e7d1c652901bcd55f3052a12 --team agent-teamalready revoked agc_e7d1c652901bcd55f3052a12[exit 0]$ nuramesh agents credentials revoke agc_000000000000000000000000 --team agent-teamno credential 'agc_000000000000000000000000'[exit 2]$ nuramesh agents credentials revoke-all --team agent-team --agent danarevoked 1[exit 0]revoke takes the credential id and works for any credential of the organization. revoke-all
needs --agent and revokes the live credentials of that agent in this team; the number printed
counts only the ones that were still live (here one, because the other had just been revoked).
Afterwards:
$ nuramesh agents credentials list --team agent-teamagc_e7d1c652901bcd55f3052a12 dana read,run revoked expires 2026-11-29T02:49:24.474314+00:00agc_91c5d59465afe8d4f903d2f1 dana read,run revoked expires 2026-11-29T02:49:24.515250+00:00agc_6ff48a137ba10ffef5f42f8d theo read,run active expires 2026-11-29T02:49:24.555423+00:00[exit 0]Good to know
Section titled “Good to know”- A credential reads runs and, with the
runscope, stops a run its agent takes part in; nothing else (Quickstart, “Give an agent its own credential”). - An agent that is removed from the configuration, or changed (role, model, checks, reporting line), loses its credentials the next time the server starts.
- An agent has at most 5 live credentials, counted across the organization’s teams.
Check it worked
Section titled “Check it worked”nuramesh agents credentials list --team <team> shows the credential with the agent’s id, its scopes and the state active. A call the agent makes is recorded in the ledger under the agent’s own identity.
Troubleshooting
Section titled “Troubleshooting”| You see | Do this |
|---|---|
no agent '<id>' in this team (exit 2) |
The id is not under org.agents in this team’s configuration |
403 human_required when issuing |
An API token or an agent credential cannot issue. Sign in as the owner |
403 agent_forbidden |
The route is closed to agent credentials, for example a task audit or an approval |
| The secret is lost | It is shown once and stored as a hash. Revoke the credential and issue a new one |
Next steps
Section titled “Next steps”- Agent identity and oversight.
- Stop an organization, a role or a rule.
- API reference: the credential routes.
Was this page helpful?