Skip to content

Create a credentials file

Verify the account first, then generate ~/.claude/.credentials.json from your Claude session.

  1. 1Paste
  2. 2Verify
  3. 3Generate
Claude Code

Encrypted in your browser before it is sent

Need this from a script? The same convert is available as a public JSON API. API documentation

claude credentials
# after convert: ~/.claude/.credentials.json
✔ session verified — you@example.com · Claude Max
wrote claudeAiOauth { accessToken, refreshToken, expiresAt }
❯ claude
✔ Logged in as you@example.com — Claude Max

More tools