--email mails a one-time code and creates the account and a workspace on first use.
Methods
In an agent or sandbox shell with no terminal to prompt at, the first
--email call sends the code and exits. Re-run it with --code.
Calling the API
OAuth
Authorization-server metadata (RFC 8414): https://auth.getcargo.io/.well-known/oauth-authorization-server. Device code, authorization code with PKCE (S256), registration, and revocation. The product MCP server athttps://mcp.getcargo.io challenges with OAuth. See MCP servers.
Machine-readable walkthrough
The WorkOSauth.md walkthrough — Discover, Pick a method, Register, Claim, Use, Revocation — is https://www.getcargo.ai/auth.md.
