amondnet/Refresh Claude OAuth Token
Greet someone
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jun 25, 2025
- License
- None
Pinned Snippet
uses: amondnet/claude-code-oauth@a9714707615bb9d231c75b06c582da52706b970e # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| mode | The mode to use for updating the secrets. Can be "repo" or "org". | yes | repo |
| target | The target repository or organization to update the secrets for. Required if mode is "org". | yes | "" |
| force | Force refresh the token even if it is still valid | no | false |
| token | GitHub token with permissions to update secrets | yes | ${{ github.server_url == 'https://github.com' && github.token || '' }} |
| token_url | The URL to refresh the OAuth token | yes | https://console.anthropic.com/v1/oauth/token |
| client_id | The client ID for the OAuth application | yes | 9d1c250a-e61b-44d9-88ed-5944d1962f5e |
| access_token | The current access token | yes | — |
| refresh_token | The current refresh token to use for refreshing the access token | yes | — |
| expires_at | The expiration time of the current access token in milliseconds since epoch | yes | — |
| access_token_secret | The name of the GitHub secret where the access token is stored | no | CLAUDE_ACCESS_TOKEN |
| refresh_token_secret | The name of the GitHub secret where the access token is stored | no | CLAUDE_REFRESH_TOKEN |
| expires_at_secret | The name of the GitHub secret where the access token is stored | no | CLAUDE_EXPIRES_AT |
Outputs
no outputs