Skip to content

Set up long-lived Claude Code token with claude setup-token #17

@jonathanpopham

Description

@jonathanpopham

Problem

The CLAUDE_CODE_OAUTH_TOKEN secret expires every ~8 hours. It comes from the local macOS Keychain OAuth flow and has to be manually refreshed. This has caused multiple CI failures already.

Solution

Run claude setup-token to generate a dedicated long-lived API key that doesn't expire. Update the CLAUDE_CODE_OAUTH_TOKEN secret on this repo with the new token.

Repos that need this

  • supermodeltools/supermodeltools.github.io
  • supermodeltools/website
  • supermodeltools/supermodel-public-api

Steps

  1. Run claude setup-token locally
  2. Copy the generated token
  3. Update CLAUDE_CODE_OAUTH_TOKEN on all three repos
  4. Verify with a test @claude mention

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions