Skip to main content
Rotates credentials on a running agent and its children. Use this after updating your profile, for example after rotating an API key or GitHub token, to propagate fresh credentials without restarting the agents. The new credentials take effect at the agent’s next turn.
This command runs from your laptop only. It is not available on agent VMs.

Synopsis

Arguments

Examples

Rekey a running agent

Switch an agent to another Claude subscription

Rekey with an explicit workspace

Errors