skills$openclaw/claude-connect
tunaissacoding5.1k

by tunaissacoding

claude-connect – OpenClaw Skill

claude-connect is an OpenClaw Skills integration for coding workflows. Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.

5.1k stars6.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameclaude-connect
descriptionConnect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever. OpenClaw Skills integration.
ownertunaissacoding
repositorytunaissacoding/claude-connect
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @tunaissacoding/claude-connect
last updatedFeb 7, 2026

Maintainer

tunaissacoding

tunaissacoding

Maintains claude-connect in the OpenClaw Skills directory.

View GitHub profile
File Explorer
20 files
.
_meta.json
1.1 KB
AUTO-DETECTION-FLOW.md
6.9 KB
CHANGELOG.md
876 B
CHANGES.md
10.8 KB
claude-oauth-refresh-config.example.json
910 B
COMPLETION-REPORT.md
9.3 KB
DELIVERABLES.txt
12.4 KB
detect-notification-config.sh
3.5 KB
DETECTION-EXAMPLES.md
3.0 KB
install.sh
9.9 KB
QUICKSTART.md
3.3 KB
README.md
1.6 KB
refresh-token.sh
13.3 KB
SKILL.md
6.0 KB
SUMMARY.md
8.7 KB
test-detection.sh
2.7 KB
uninstall.sh
3.8 KB
UPGRADE.md
8.1 KB
validate-update.sh
5.5 KB
verify-setup.sh
8.7 KB
SKILL.md

name: claude-connect description: "Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever."

claude-connect

Connect your Claude subscription to Clawdbot in one step.

Automatically:

  • ✅ Reads Claude OAuth tokens from Keychain
  • ✅ Writes them to Clawdbot in proper OAuth format
  • ✅ Auto-refreshes every 2 hours (before expiry)
  • ✅ Notifies you on success/failure
  • ✅ Works with clawdbot onboard (fixes OAuth auth-profiles bug)

Quick Start

1. Install the skill:

clawdhub install claude-connect
cd ~/clawd/skills/claude-connect

2. Ensure Claude CLI is logged in:

claude auth
# Follow the browser login flow

3. Run installer:

./install.sh

That's it! Tokens will refresh automatically every 2 hours.


What It Does

Fixes clawdbot onboard OAuth Bug

When you run clawdbot onboard --auth-choice claude-cli, it sometimes doesn't properly write OAuth tokens to auth-profiles.json.

This skill:

  1. Reads OAuth tokens from macOS Keychain (where Claude CLI stores them)
  2. Writes them to ~/.clawdbot/agents/main/agent/auth-profiles.json in proper OAuth format:
    {
      "profiles": {
        "anthropic:claude-cli": {
          "type": "oauth",
          "provider": "anthropic",
          "access": "sk-ant-...",
          "refresh": "sk-ant-ort...",
          "expires": 1234567890
        }
      }
    }
    
  3. Sets up auto-refresh (runs every 2 hours via launchd)
  4. Keeps your connection alive 24/7

Automatic (Recommended)

cd ~/clawd/skills/claude-connect
./install.sh

The installer will:

  • ✅ Verify Claude CLI is set up
  • ✅ Create config file
  • ✅ Set up auto-refresh job (launchd)
  • ✅ Run first refresh to test

Manual

  1. Copy example config:

    cp claude-oauth-refresh-config.example.json claude-oauth-refresh-config.json
    
  2. Edit config (optional):

    nano claude-oauth-refresh-config.json
    
  3. Test refresh:

    ./refresh-token.sh --force
    
  4. Install launchd job (optional - for auto-refresh):

    cp com.clawdbot.claude-oauth-refresher.plist ~/Library/LaunchAgents/
    launchctl load ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist
    

Configuration

Edit claude-oauth-refresh-config.json:

{
  "refresh_buffer_minutes": 30,
  "log_file": "~/clawd/logs/claude-oauth-refresh.log",
  "notifications": {
    "on_success": true,
    "on_failure": true
  },
  "notification_target": "YOUR_CHAT_ID"
}

Options:

  • refresh_buffer_minutes: Refresh when token has this many minutes left (default: 30)
  • log_file: Where to log refresh activity
  • notifications.on_success: Notify on successful refresh (default: true)
  • notifications.on_failure: Notify on failure (default: true)
  • notification_target: Your Telegram chat ID (or leave empty to disable)

Usage

Manual Refresh

# Refresh now (even if not expired)
./refresh-token.sh --force

# Refresh only if needed
./refresh-token.sh

Check Status

# View recent logs
tail ~/clawd/logs/claude-oauth-refresh.log

# Check auth profile
cat ~/.clawdbot/agents/main/agent/auth-profiles.json | jq '.profiles."anthropic:claude-cli"'

# Check Clawdbot status
clawdbot models status

Disable Notifications

Ask Clawdbot:

Disable Claude refresh success notifications

Or edit config:

{
  "notifications": {
    "on_success": false,
    "on_failure": true
  }
}

How It Works

Refresh Process

  1. Read from Keychain: Gets OAuth tokens from Claude Code-credentials
  2. Check Expiry: Only refreshes if < 30 minutes left (or --force)
  3. Call OAuth API: Gets new access + refresh tokens
  4. Update auth-profiles.json: Writes proper OAuth format
  5. Update Keychain: Syncs new tokens back
  6. Restart Gateway: Picks up new tokens
  7. Notify: Sends success/failure message (optional)

Auto-Refresh (launchd)

Runs every 2 hours via ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist

Controls:

# Stop auto-refresh
launchctl unload ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist

# Start auto-refresh
launchctl load ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist

# Check if running
launchctl list | grep claude

Troubleshooting

OAuth not working after onboard

Symptom: clawdbot onboard --auth-choice claude-cli completes but Clawdbot can't use tokens

Fix:

cd ~/clawd/skills/claude-connect
./refresh-token.sh --force

This will write tokens in proper OAuth format.

Tokens keep expiring

Symptom: Auth keeps failing after 8 hours

Fix: Ensure launchd job is running:

launchctl load ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist
launchctl list | grep claude

No tokens in Keychain

Symptom: No 'Claude Code-credentials' entries found

Fix: Log in with Claude CLI:

claude auth
# Follow browser flow

Then run refresh again:

./refresh-token.sh --force

Uninstall

cd ~/clawd/skills/claude-connect
./uninstall.sh

Or manually:

# Stop auto-refresh
launchctl unload ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist
rm ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresher.plist

# Remove skill
rm -rf ~/clawd/skills/claude-connect

Upgrade

If you previously installed an older version:

cd ~/clawd/skills/claude-connect
./validate-update.sh  # Check what changed
clawdhub update claude-connect  # Update to latest
./install.sh  # Re-run installer if needed

See Also


Version: 1.1.0
Author: TunaIssaCoding
License: MIT
Repo: https://github.com/TunaIssaCoding/claude-connect

README.md

⚠️ DEPRECATED — Clawdbot Handles This Natively

This skill is no longer needed.

As of January 2026, Clawdbot has built-in OAuth support that:

  • Connects to Claude via the setup wizard (clawdbot onboard --auth-choice claude-cli)
  • Automatically refreshes tokens before expiry
  • Updates auth profiles without any user intervention

You don't need to install this skill. Just run clawdbot onboard and select Claude CLI auth — it pulls tokens from Keychain automatically.


What This Skill Was For

This skill was created to solve two issues before native support existed:

  1. Getting Clawdbot to recognize Claude tokens from Keychain
  2. Keeping tokens refreshed automatically

Clawdbot now does both of these automatically.


If You Have This Installed

You can safely:

  1. Remove the launchd job: launchctl unload ~/Library/LaunchAgents/com.clawdbot.claude-oauth-refresh.plist
  2. Delete the skill folder: rm -rf ~/clawd/skills/claude-connect
  3. Remove any related cron jobs

Your tokens will continue to work via Clawdbot's native support.


Still Having Issues?

If clawdbot onboard doesn't find your Claude tokens:

  1. Make sure Claude CLI is installed and logged in:

    claude
    # Then run: /login
    
  2. Re-run the Clawdbot wizard:

    clawdbot onboard --auth-choice claude-cli
    

Historical Reference

This repo is kept for historical reference only. The code is no longer maintained.

Original purpose: Connect Claude subscription to Clawdbot and keep tokens refreshed.


MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

Edit `claude-oauth-refresh-config.json`: ```json { "refresh_buffer_minutes": 30, "log_file": "~/clawd/logs/claude-oauth-refresh.log", "notifications": { "on_success": true, "on_failure": true }, "notification_target": "YOUR_CHAT_ID" } ``` **Options:** - `refresh_buffer_minutes`: Refresh when token has this many minutes left (default: 30) - `log_file`: Where to log refresh activity - `notifications.on_success`: Notify on successful refresh (default: true) - `notifications.on_failure`: Notify on failure (default: true) - `notification_target`: Your Telegram chat ID (or leave empty to disable) ---

FAQ

How do I install claude-connect?

Run openclaw add @tunaissacoding/claude-connect in your terminal. This installs claude-connect into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/tunaissacoding/claude-connect. Review commits and README documentation before installing.