Claude Auth Sync

Automate Claude Code CLI installation, OAuth login, and token sync with OpenClaw.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/darblex/price-compare-israel --skill claude-auth-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Claude Auth Sync
Source: https://github.com/darblex/price-compare-israel/tree/main/workspace/skills/claude-auth-sync
Command: npx skills add https://github.com/darblex/price-compare-israel --skill claude-auth-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the complex process of setting up and maintaining authentication for Anthropic's Claude models within the OpenClaw environment, ensuring seamless integration and preventing service interruptions due to expired tokens or misconfigurations.

Core Features & Use Cases

  • Automated CLI Installation & Login: Installs the Claude Code CLI if missing and guides users through the browser-based OAuth login flow.
  • Token Synchronization: Securely reads the OAuth token and registers it with OpenClaw.
  • Model Name Correction: Ensures Anthropic model names in openclaw.json use the correct dash format and are configured as fallbacks.
  • Gateway Restart & Verification: Restarts the OpenClaw gateway and performs a quick verification to confirm successful integration.
  • Use Case: When your Claude models stop working in OpenClaw due to an expired token or a new setup, this skill will automatically refresh the authentication and configuration, restoring access with minimal user intervention.

Quick Start

Run the claude-auth-sync skill to automatically install, log in, and sync your Claude token with OpenClaw.

Frequently Asked Questions about Claude Auth Sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Claude CLI authentication with OpenClaw when my OAuth token expires?

You can automate Claude CLI authentication with OpenClaw by running a sync process that refreshes expired OAuth tokens, registers them securely, and restores model access without manual reconfiguration.

Why does Claude CLI model naming fail in OpenClaw and how to fix it?

Claude CLI model naming fails in OpenClaw due to incorrect formatting in the configuration file. The sync process corrects Anthropic model names to use the proper dash format and registers them as fallbacks.

Do I need node and npm installed to authenticate Claude Code CLI with OpenClaw?

Yes, you need node and npm installed and accessible in your system's PATH to authenticate Claude Code CLI with OpenClaw. The OpenClaw CLI must also be installed to complete the token synchronization.

What is the best way to automate Claude Code CLI installation and OpenClaw gateway configuration?

Automating Claude Code CLI installation and OpenClaw gateway configuration is best handled by a script that installs missing CLI tools, guides browser OAuth login, syncs tokens, restarts the gateway, and verifies integration.

How to restart the OpenClaw gateway and verify Anthropic model integration after a token sync?

To restart the OpenClaw gateway and verify Anthropic model integration, run the sync script which automatically restarts the gateway and performs a quick verification check to confirm successful authentication.

Why are Anthropic models not showing up as fallbacks in my OpenClaw configuration?

Anthropic models do not show up as fallbacks in OpenClaw when the configuration file uses incorrect naming conventions. The sync script updates the openclaw.json file to register the models correctly as fallbacks.