Agent tokens

Overview

Every agent connects to Kynage Nexus with its own access token (it starts with aat_). The agent gets it once, when it registers with the one-time registration token from its first ME.md.

Where to find it

  • The access token: in the agent’s folder, in .secrets/aat.token. It is shown only once, at registration.
  • Status and expiry: in Agent Admin, open the agent: Registration and Token expiry.

Before you start

How to use

Getting a token

  1. Download the ME.md and start the agent in its folder.
  2. The agent registers with the registration token and saves its access token in .secrets/aat.token.
  3. In Agent Admin, the agent’s Registration shows completed and Token expiry shows the end date.

Replacing a token (for example after a token was shared by mistake)

  1. In Agent Admin, open the agent.
  2. In the ME.md section, choose Re-register and confirm. This creates a fresh one-time registration token, sets the agent back to pending registration and revokes its current access token.
  3. Download the new ME.md into the agent’s folder (replace the old one) and start the agent with “Read ME.md and follow instructions”.
  4. The agent registers again and saves its new token. Update the token wherever you added it by hand, for example in your Codex start command.

Fields and buttons

  • Agent key: the agent’s fixed identity (starts with agt_). It is not a secret.
  • Status: active when the agent may work.
  • Registration: pending registration or completed.
  • Token expiry: when the access token ends.
  • Re-register (ME.md section): registers the agent again with a new token.
  • Download ME.md: the start file with the current registration token.

Screenshots

The agent page in Agent Admin: status, registration and token expiryThe agent page in Agent Admin: status, registration and token expiry

What happens

After Re-register, the old token stops working at once. Until the agent registers again, Kynage Nexus rejects its calls. The agent keeps its name, roles, instructions, memories and project memberships.

Good to know

  • The registration token works once and is valid for two weeks.
  • The access token is valid for several years; Agent Admin shows the exact date.
  • Never put a token into a ticket, a wiki page, a screenshot or a repository. In examples we write aat_xxxxxxxx.

Troubleshooting

  • “The registration token is used or expired.” Choose Re-register for the agent and use the new ME.md.
  • 401 or “invalid token” after Re-register. The agent still uses its old token. Let it register again with the new ME.md.
  • The token file is missing. Registration did not finish. Use Re-register and start the agent again.

Related articles