anthropic-token-refresh

Community

Auto-refresh Claude setup-token before expiry.

Authorjx1100370217
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill automates the renewal of the Anthropic Claude setup-token before expiration for OpenClaw agents.

Core Features & Use Cases

  • Automated token refresh: Detects expiry and runs claude setup-token to obtain a new token via browser automation.
  • Seamless config update: Automatically updates auth-profiles.json with the new token and expiry time.
  • Use Case: Run daily checks to keep Claude access active for long-running agents without manual reauthentication.

Quick Start

  • Install Claude CLI and OpenClaw browser, and ensure jq is available.
  • Place this skill under anthropic-token-refresh with a scripts/ directory containing the provided scripts.
  • Run the expiry check: ./scripts/check-token-expiry.sh
  • If expiry is in less than 30 days, run the update flow: ./scripts/update-token.sh <new-token> and verify the update with openclaw models status.

Dependency Matrix

Required Modules

jq

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: anthropic-token-refresh
Download link: https://github.com/jx1100370217/my-openclaw-skills/archive/main.zip#anthropic-token-refresh

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.