Using the Locus CLI? It has its own headless sign-in. See Locus CLI sign-in.
Agent-owned headless OAuth
An account an agent created for itself through agent-native onboarding can approve its own MCP client. The client starts its normal OAuth sign-in. The agent then approves the pending request with the credential it received at signup. An agent that registered through AgentID can approve with AgentID instead.Headless device authorization (RFC 8628)
Clients without a redirect listener can register for the device-code grant. A person approves the connection from any device, and the client picks up its tokens.1
Show the verification link
The client displays the link for a person to open.
2
Wait for approval
The person approves in a browser on any device while the client waits.
3
Exchange the device code
After approval, the client exchanges its device code for tokens.
Next steps
Agent-native onboarding
Let an agent create and fund its own account.
Connect an MCP client
Sign in through the browser on your own machine.