Commit Graph

5 Commits (9a88c94b308d94de05fd7af81d7dcf75c0da7c72)

Author SHA1 Message Date
Radek Paclt a39951d463 fix(auth): enable OAuth refresh for Claude CLI credentials
When Claude CLI credentials (anthropic:claude-cli) expire, automatically
refresh using the stored refresh token instead of failing with
"No credentials found" error.

Changes:
- Read refreshToken from Claude CLI and store as OAuth credential type
- Implement bidirectional sync: after refresh, write new tokens back to
  Claude Code storage (file on Linux/Windows, Keychain on macOS)
- Prefer OAuth over Token credentials (enables auto-refresh capability)
- Maintain backward compatibility for credentials without refreshToken

This enables long-running agents to operate autonomously without manual
re-authentication when OAuth tokens expire.

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
Peter Steinberger 948ce5eb5f feat(models): add oauth auth health 11 months ago
Peter Steinberger b01d7e39d5 fix(onboarding): preflight claude cli keychain 11 months ago
Peter Steinberger a6c309824e docs: refresh and simplify docs 11 months ago
Peter Steinberger 0b611fc354 docs: add OAuth deep dive 11 months ago