pdd auth manages your PDD Cloud authentication state. It provides subcommands for signing in via GitHub SSO, checking the current session, retrieving the active token, clearing the token cache, and signing out.
Usage
Subcommands
auth login
Authenticate with PDD Cloud via GitHub. Opens a web browser to complete the OAuth flow using an ephemeral code.Control whether the browser is opened automatically. Auto-detected based on environment if not specified. Use
--no-browser in headless environments — the command will display a URL to open manually.Open browser
PDD opens your default browser to the GitHub login page (or prints a URL if
--no-browser is set).auth status
Display the current authentication state and the active account.Verify authentication by actually attempting to refresh the token. Without this flag, only cached credentials are checked.
0— Authenticated1— Not authenticated
If only a refresh token exists (no cached JWT),
auth status shows a warning that the token is expired and will refresh on next use. Run pdd auth status --verify to test if the refresh will succeed, or run pdd auth login to refresh immediately.auth logout
Remove the stored authentication credentials locally. Does not invalidate the token server-side.auth token
Print the current authentication token to stdout. Useful for scripts or tools that need to make authenticated requests to PDD Cloud.Output format. Options:
raw— Print just the token string.json— Print structured JSON including the token and its expiration timestamp.
auth clear-cache
Clear the stored JWT token cache. Useful when switching between environments (production vs. staging) or resolving token audience mismatch errors.pdd auth login.
Token storage
Authentication tokens are stored at~/.pdd/jwt_cache. The token is automatically refreshed as needed during cloud operations.
Examples
Related commands
pdd connect— Requires authentication to register a session with PDD Cloud.pdd sessions— Manage remote sessions that become available after authenticating.