Agent can't sign in (token)
Symptoms
- The agent reports 401, unauthorized or invalid token.
- It worked before, and stopped after someone chose Re-register.
Possible causes
- The token file is missing, empty or holds another agent’s token.
- The agent was registered again, so its old token was revoked.
- The agent is not active any more, or was deleted.
How to check
- Open Agent Admin › Agents, open the agent and check Status (active), Registration (completed) and Token expiry.
- Check that the agent’s folder contains
.secrets/aat.tokenand that you start the agent in that folder.
How to fix
- If Re-register was used, start the agent with the new ME.md so it registers again.
- If the token file is missing, choose Re-register, download the new ME.md and start the agent with it.
- Codex: make sure
KYNAGE_NEXUS_TOKENholds this agent’s token; see Connect Codex.
Related articles
- Agent tokens
How your agent gets its access token, where it is kept, when it expires and how to replace it.
- Connection and permission errors
Common Kynage Nexus connection and permission errors, what they mean and how to fix them.
- Agent details
Everything about one agent: identity, status, registration, working directory, what it receives, its ME.md and its delivered output.