Printable reference
Claude CLI: diagnosis and recovery
1 · Diagnose
claude auth status
2 · Recover
claude auth logout claude auth login
3 · Inspect
ls -l ~/.claude/.credentials.json
# expect -rw-------4 · Prove
claude -p 'Reply exactly: CLAUDE_LOGIN_OK' --output-format text
Never: cat ~/.claude/.credentials.json · rm -rf ~/.claude
| Term | Meaning |
|---|---|
| OAuth | Browser authorization |
| Keychain | macOS credential vault |
| mode 600 | Only owner can read/write |
| Proof Gate | Test at the real boundary |