The agent registration wizard, step by step (who, how, what)

LumoAuth registers an AI agent in three steps: who the agent is, how it proves its identity, and what it may do. Here is every choice in the wizard, what LumoAuth checks, and what you get after you click Register agent.

To register an AI agent in LumoAuth, open AI Agents → Agents in the Organization Portal and click Register agent. The wizard has three steps. Step 1 records who the agent is and who answers for it. Step 2 sets how the agent proves its identity: workload identity, AAuth, private key JWT, client ID and secret, API key or custom. Step 3 sets what the agent may do: capabilities, acting for people and a budget. You can change everything later except the identity type.

TL;DR

  • The wizard is one form in three steps: who, how and what. The identity type is the only choice that you cannot change after registration.
  • LumoAuth gives the agent its agt_ ID when the form opens. Step 2 can therefore show the exact audience for a workload token before the agent exists.
  • The capability picker offers only what you can grant. A LumoAuth permission that you do not hold is disabled, with the reason next to it, and the server checks the list again when you submit.
  • An API key or a client secret appears once, on the page after registration. Workload identity, AAuth, private key JWT and custom agents get no secret.
  • After registration, LumoAuth shows a checklist of the agent’s security posture. It also shows snippets with the agent’s own IDs, and a test panel with a 5-minute test token.

What do you need before you start?

You need the agents.create permission in your organization. Then collect three things:

  • Where the agent runs. For workload identity, that is the repository, cloud role, service account or SPIFFE ID that the agent runs as. For AAuth or a private key JWT, it is the URL where the agent publishes its public keys, or the keys themselves.
  • What the agent does. A short list of actions on the APIs that the agent calls, in the form resource:action, such as tickets:read.
  • A place for a secret, if you choose an API key or a client secret. LumoAuth shows it only once, so have your secrets manager open before you submit.

This post registers one agent from start to finish: a changelog writer. It runs in GitHub Actions in the repository acme-corp/changelog. It reads closed tickets and drafts the changelog for a person to review.

Step 1: who is this agent?

Step 1 asks for the facts that people read later, in the registry, the audit log and the approval inbox.

Field What to enter
Agent name Required. Name the agent after its job, such as Changelog writer. The name appears on approval requests, where a reviewer decides quickly whether the agent may go on
Description One line about the agent’s job, for the person who reviews its access later
Owner You, the signed-in person. The field is read-only
Framework Optional, such as LangGraph or CrewAI. LumoAuth stores it with the agent. The agent’s page shows it and links to the integration guide for that framework
Metadata Optional version, environment and team

The owner matters most. The owner is the person who answers for the agent. LumoAuth sends approval requests about the agent to the owner, and the agent asks for just-in-time access in the owner’s name. The owner can never approve the agent’s own just-in-time requests, so another person reviews them.

The agent also needs an owner in order to run. If the owner’s account is deleted or blocked, LumoAuth suspends the agents that the person owns. Someone must then name a new owner on the agent’s page before the agent can run again.

When the form opens, LumoAuth also reserves an agent ID, such as agt_7c41e09b2d5a8f36. Nothing is stored yet. Step 2 uses the ID to show the audience for a workload token.

Step 2: how does it prove its identity?

Step 2 holds the one choice that you cannot change later. The wizard lists the six identity types from strongest to weakest, and Workload identity is selected at the start.

Card How the agent proves its identity What you enter Secret shown after registration
Workload identity (recommended) With a token from the platform where it runs, such as GitHub Actions, AWS or Kubernetes Where it runs, and the binding None
AAuth It signs each request with a private key that only it holds Agent identifier, public keys, signing algorithms None
Private key JWT It signs a short-lived JWT for each token request A JWKS URL or the public keys None
Client ID and secret With the OAuth client credentials grant Nothing A client secret, once
API key (prototype only) With one bearer key When the key expires An agk_ key, once
Custom Another system that you trust confirms its identity The identity string from that system None

The post on the six identity types compares them in detail. In short, choose workload identity when the platform issues tokens to your code. Choose private key JWT or AAuth when the agent can keep a private key. Use an API key only for a prototype.

Binding a workload identity

Choose Workload identity, then the card for where the agent runs. There are cards for GitHub Actions, AWS, Google Cloud, Kubernetes, Azure and SPIFFE / SPIRE. Further cards cover several CI/CD platforms and any OIDC issuer. The fields for that platform appear below the cards. Together they form the binding: LumoAuth accepts only a token whose claims match it.

For the changelog writer, the fields for GitHub Actions hold these values:

Field Value
Repository acme-corp/changelog
Branch or tag ref refs/heads/main. A bare main becomes this
Environment Empty. It pins a deployment environment instead of the ref, or as well as the ref
More pins The numeric repository ID, which gh api repos/acme-corp/changelog --jq .id prints
Audience https://app.lumoauth.dev/orgs/acme-corp/api/v1/agents/agt_7c41e09b2d5a8f36

Three rules matter in this part of the form:

  • Pin a branch, tag or environment. Without a pin, a workflow on any ref of the repository could act as the agent, including a pull request from a fork. LumoAuth rejects a binding without a pin, unless you switch on Accept any branch, tag or pull request on purpose.
  • Pin the repository ID for production. A repository keeps its ID when it is renamed or transferred, and someone else can then take the old name.
  • Keep the default audience. It is the address of this one agent. A token that GitHub issued for another service therefore does not work here. The workflow must ask GitHub for a token with exactly this audience, and the snippets after registration already contain it.

The other platforms follow the same pattern. AWS binds a namespace and a service account on EKS. Kubernetes binds a cluster, a namespace and a service account. Google Cloud binds a service account. The docs on workload federation list the fields for each platform.

Choosing a key, a secret or a public key

The other cards need fewer fields:

  • API key shows Key expires after: 30, 90, 180 or 365 days, a date that you pick, or Never. The default is 180 days. Never comes last, with a warning, because a leaked key then works until someone revokes it. The post on API keys covers rotation.
  • Private key JWT takes a JWKS URL or the Public keys (JWKS) as text. Prefer the URL, because the agent can then publish a new key with no change in LumoAuth. Both fields accept public keys only.
  • AAuth takes the agent identifier in local@domain form, its public keys, and the signing algorithms that it may use.
  • Client ID and secret needs nothing. The client ID is the agent ID.
  • Custom takes the identity string that your other system assigns. LumoAuth checks nothing about it, so your trust in the agent rests on that system.

Step 3: what may it do?

Step 3 sets the agent’s authority. The section starts with the rule: everything not listed is refused, and only requests inside the list can ever be approved without a person.

Ticking capabilities

The picker groups LumoAuth’s own permissions by resource, such as users, roles, groups, OAuth clients and AI agents. Each row shows a capability in its stored form, such as users:read, next to its name. Each group ends with a wildcard row, such as users:*, marked Wildcard. A wildcard covers every current and future action on that resource, so tick single actions where you can.

Capabilities for your own APIs go in the box Custom capabilities, one per line. The changelog writer gets two:

tickets:read
changelog:draft

Each entry has the form resource:action in lower case, and a - stays part of the name. The box shows the stored form of each entry as you type. It warns about an entry with a dot, such as tickets.read, because LumoAuth refuses that form. A capability is also an OAuth scope, so it cannot hold a space, a quote or a backslash. The post on capabilities explains the form and the matching rules.

Granting only what you hold

The picker shows a rule of the server: you cannot give an agent a LumoAuth permission that you do not hold yourself. Such a row is disabled, with this note: “You do not hold this permission, so you cannot grant it to an agent. Ask an administrator who does.” A wildcard row is disabled when it covers any permission that you lack, and a bare * is refused.

The rule exists because capabilities also mark which just-in-time requests may be approved without a person. Without it, an administrator could register an agent with permissions that they lack, and then act through the agent. The picker only shows the rule early. When you submit, LumoAuth checks the list again and names each capability that you may not grant.

Your own capabilities, such as tickets:read, are not LumoAuth permissions. Anyone who may register agents can add them, because they grant nothing in LumoAuth itself. Your API gives them their meaning, through the Ask API or through the scope of the agent’s token.

Acting for people and budget

May act on behalf of users is off by default. Switch it on only when the agent acts for a person, for example to read that person’s calendar. Even then, the agent needs something from that person each time: the person’s own access token, the person’s approval, or the person’s choice on a linked account. For an AAuth agent, the section also has switches for user consent, delegation to sub-agents and token exchange.

Budget and limits sets calls per hour and per day, model tokens per hour and per day, a daily hard limit, a monthly cost limit, max steps and a timeout. LumoAuth refuses the agent’s calls once a limit on calls, tokens or cost is reached. Max steps and the timeout are for the agent’s own code. The changelog writer gets 200 Calls per hour and a Monthly cost limit of 20 dollars. The post on budgets describes each limit.

Step 3 ends with a Review of what LumoAuth will register. It lists the name, owner, identity, capabilities and budget, and whether the agent acts for people.

What happens when you click Register agent?

LumoAuth checks the whole form again on the server. It checks the name, the binding and each budget value. For each capability, it checks the form and whether you may grant it. If a check fails, the wizard opens again on the earliest step with a problem. The values that you typed stay in the form.

When every check passes, LumoAuth creates the agent. The agent is active at once, and the audit log records agent.created. The next page depends on the identity type:

  • API key or client secret: the Agent registered page shows the credential once, with a Copy button. For an API key, it also shows the expiry date. Store the credential before you leave the page. LumoAuth keeps only a hash, so nobody can show the credential again. If it is lost, rotate the credentials on the agent’s edit page.
  • Every other type: the agent’s own page opens. There is no secret to show.

Both pages then show a card with the agent’s security posture, and the snippets for the first call.

What does the posture card tell you?

The posture card is a checklist of the agent’s configuration. LumoAuth builds it from the agent’s record each time the page loads, and it stores no score. The card has one of three levels: Good, Needs attention or Critical. Each finding says why it matters and links to the page that fixes it.

Right after registration, the changelog writer shows these checks:

Check Result
Status Agent is active
Identity Workload identity
Binding Bound to a workload
Audience Agent-specific audience required
Ref pin Pinned to a ref or environment
Attestation Never attested (for information)
Capabilities 2 capabilities
Budget Budget is capped
Access rule No access rule applies (needs attention)

The level is Needs attention, because one finding is open. Many new agents start this way. An access rule is checked each time the agent authenticates, attests or asks for a token. It can require a recent attestation, a network range, a maximum risk level, or recent activity. The finding links to the page where you create a rule, and the governance docs describe the conditions.

Other findings that a new agent often shows:

Finding Level Fix
Any branch or pull request accepted Needs attention Pin a branch, tag or environment
API key never expires Needs attention Set an expiry on the edit page
API key or custom identity Needs attention Plan the move to a stronger identity type
Wildcard capabilities Needs attention Tick the single actions instead
No capabilities Needs attention Grant what the agent needs today
No budget ceiling Needs attention Set a limit on calls, tokens or cost

Which snippets do you get?

The Next steps section holds calls that you can copy and run. Each call already holds the agent’s ID and your organization’s URLs. For a workload, it also holds the exact audience. On the Agent registered page, the section is called Try it now, and the calls also carry the one-time credential. The snippets depend on the identity type:

Identity type Snippets
Workload identity attest, which exchanges the workload token for an agent token. For GitHub Actions and GitLab CI, also the job step
API key whoami, which calls GET /agents/me with the key
Client ID and secret client_credentials, which gets a token from the token endpoint
Private key JWT A Python example that signs a client assertion and gets a token
Every type ask, which asks the Ask API about the agent’s first capability

For the changelog writer, the snippet for GitHub Actions is this step:

permissions:
  id-token: write   # lets the job request an OIDC token
  contents: read

steps:
  - name: Attest to LumoAuth
    run: |
      WORKLOAD_TOKEN=$(curl -sS -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
        "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://app.lumoauth.dev/orgs/acme-corp/api/v1/agents/agt_7c41e09b2d5a8f36" | jq -r .value)
      LUMOAUTH_AGENT_TOKEN=$(curl -sS -X POST 'https://app.lumoauth.dev/orgs/acme-corp/api/v1/agents/agt_7c41e09b2d5a8f36/attest' \
        -H 'Content-Type: application/json' \
        -d "{\"attestation_token\": \"$WORKLOAD_TOKEN\"}" | jq -r .access_token)
      echo "::add-mask::$LUMOAUTH_AGENT_TOKEN"
      echo "LUMOAUTH_AGENT_TOKEN=$LUMOAUTH_AGENT_TOKEN" >> "$GITHUB_ENV"

The first command asks GitHub for a token with the agent’s audience. The second sends that token to LumoAuth. LumoAuth checks the signature, the binding and the audience, and returns an agent token that expires after 15 minutes:

{
  "access_token": "eyJraWQiOi…",
  "token_type": "Bearer",
  "expires_in": 900,
  "scope": "tickets:read changelog:draft",
  "identity": {
    "provider": "github",
    "subject": "github:acme-corp/changelog:refs/heads/main",
    "issuer": "https://token.actions.githubusercontent.com",
    "audience_generic": false
  }
}

The workflow masks the token in the log and passes it to the later steps. With it, the agent can ask the Ask API before an action. Here is the ask snippet, with a context added for your own rules:

curl -sS -X POST 'https://app.lumoauth.dev/orgs/acme-corp/api/v1/agents/ask' \
  -H "Authorization: Bearer $LUMOAUTH_AGENT_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"action": "tickets:read", "context": {"project": "web-app"}}'
{
  "allowed": true,
  "action": "tickets:read",
  "context": {"project": "web-app"},
  "reason": "Agent has authorized capability for 'tickets:read'.",
  "decided_by": "capability",
  "audit_id": "5e0c2a91b7d34f18"
}

How do you test the agent before it runs?

The agent’s page has a section called Test this agent, with two tools:

  • Can this agent…? runs the decision of the Ask API for an action that you type. It checks the capabilities first, then your attribute rules and relationships. For changelog:publish, the changelog writer is denied, because only changelog:draft is on its list.
  • Mint test token issues a token for the agent that expires after 5 minutes and carries token_use: test. Use it to call GET /agents/me or the Ask API yourself. An MCP server does not accept it. LumoAuth also refuses it for just-in-time requests, the Token Vault, approval prompts, usage reports, token exchange and delegation. You need the agents.edit permission.

The audit log records each check as agent.test_run and each test token as agent.test_token.issued, in your name.

For a workload agent, the real test is the first run of the workflow. Until then, the posture card shows Never attested. After the first successful attestation, it shows Recently attested.

What can you change after registration?

Everything except the identity type. Edit agent on the agent’s page opens the same sections as the wizard, plus four that the wizard leaves out:

  • Only issue DPoP-bound tokens. The tokens that the agent requests are then tied to a key that it holds, so a copied token does not work on another machine. Turn it on once the agent’s SDK sends DPoP proofs.
  • Who may use it for just-in-time requests: everyone, only your organization’s users, only members of your customer organizations, or chosen customer organizations.
  • A2A agent card, for agents that other agents should find.
  • Rotate API key or Rotate client secret, for the two types that hold a credential.

To change the identity type, register a second agent with the new type and move your code to it. Then revoke the old agent. Revocation ends the credentials and tokens of the old agent, and it cannot be undone.

How LumoAuth does it

In the Organization Portal, go to AI Agents → Agents (/orgs/{orgId}/portal/agents) and click Register agent. You need the agents.create permission. Viewing the agent’s page afterwards needs agents.view, and the test token needs agents.edit.

A pipeline can register agents through the Admin API instead: POST /orgs/{orgId}/api/v1/admin/agents with an API key or token that holds admin:agents:write. The lumo agents create command calls the same route. LumoAuth applies the same rules to capabilities and budgets on both paths. Each capability must have the form resource:action, each limit must be a number above zero, and the caller can grant only the permissions that they hold. The API accepts a GitHub binding without a branch pin, so set a ref or an environment yourself, and check the posture card afterwards.

The docs on the agent registry describe every field, and the attestation docs cover the token exchange for each platform. This series starts with What is an AI agent identity?, and the previous post covers what an agent sees when it asks who it is.

Standards involved

  • OAuth 2.0, RFC 6749: section 4.4 defines the client credentials grant, and section 3.3 the syntax of a scope value, which every capability follows
  • JSON Web Token (JWT) profile for OAuth 2.0 client authentication, RFC 7523, for private key JWT agents
  • JSON Web Token, RFC 7519, the format of the workload tokens from GitHub Actions and the cloud platforms
  • JSON Web Key, RFC 7517, the format of the public keys for private key JWT and AAuth agents
  • OAuth 2.0 demonstrating proof of possession (DPoP), RFC 9449, for Only issue DPoP-bound tokens

The full list is on the standards reference.

FAQ

Can I change an agent’s identity type after registration? No. The identity type is the one setting that stays fixed. To move an agent from an API key to workload identity, register a new agent with the new type, switch your code over to it, then revoke the old agent.

Why can’t I tick a capability in the picker? You do not hold that LumoAuth permission yourself, so you cannot give it to an agent. Ask an administrator who holds it to add the capability. LumoAuth checks the same rule on the server, so typing the name into the custom box does not work either.

Where do I find the agent’s API key after I leave the page? Nowhere. LumoAuth shows an API key or a client secret once, on the page after registration, and keeps only a hash. If you lose it, rotate the credentials on the agent’s edit page to get a new one.

Does the agent work right after registration? Yes. A new agent is active at once. A workload agent gets its first token when its workflow or pod attests for the first time. Until then, its posture card shows Never attested.

Can I register an agent without the portal? Yes. The Admin API creates agents with POST /orgs/{orgId}/api/v1/admin/agents, and the lumo agents create command calls the same route. The rules for capabilities and budgets are the same as in the wizard, including the rule that you can grant only the permissions that you hold.


Related: AI agent identity on the solutions pages, and six ways an AI agent can prove who it is on this blog.

Register your first agent at app.lumoauth.dev/register.

Last updated .

Ship passwordless sign-in this week. Put guardrails on your agents today.

The Developer plan is free for 10,000 monthly users and ten agents, with no card. Everything uses open standards, so moving in or out is a config change.