How-to guides
Replace an agent token
Move an agent to a new credential and revoke the old credential after checking the new connection.
Use a workspace owner or admin account so you can issue and revoke tunnel tokens. Find every agent that uses the old token before switching it out.
- Open the tunnel. Under Agents, expand Agent tokens and choose Add new.
- Copy the new credential or the dashboard-generated command that contains it. Store it where the agent’s launcher obtains its token. For a container, update its secret or environment and recreate it. For a foreground run, stop the old process and start the agent with the new token.
- Check Connected agents and exercise the public URL. For multiple agents sharing one credential, verify each agent has moved before revoking that credential.
- Return to Agent tokens and revoke the old token. Refresh the connected-agent list and verify the public URL again.
Revoking a token disconnects agents still using it. If a token has been exposed, revoke it promptly and bring agents back with a replacement.