Agent registration fails

Symptoms

  • The Setup Assistant (step 7) still says Your agent is not registered yet after you started the agent.
  • The agent says it cannot register, or The registration token is used or expired.
  • Registration on the agent’s page in Agent Admin stays pending.

Possible causes

  • The ME.md is not in the agent’s own folder, or the agent was started in another folder.
  • The registration code in the ME.md was already used or is older than two weeks.
  • The agent was registered again, so the old ME.md is no longer valid.
  • Codex was started without network access for the first start.

How to check

  1. Open Agent Admin › Agents, open the agent and look at Status and Registration.
  2. Check that ME.md lies in the folder where you start the agent.
  3. Read the agent’s last message in its terminal.

How to fix

  1. Put the ME.md into the agent’s folder and start the agent in exactly that folder.
  2. If the code is used or expired, choose Re-register on the agent’s page, download the new ME.md and start the agent with it.
  3. For Codex, keep -c sandbox_workspace_write.network_access=true in the first start; see Connect Codex.
  4. In the Setup Assistant, choose Check again.

Related articles