Connects Claude CLI OAuth tokens to Clawdbot and auto-refreshes them every 2 hours. Fixes the clawdbot onboard OAuth auth-profiles bug.
Ships in sundial-org-awesome-openclaw-skills-4. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Connect your Claude subscription to Clawdbot in one step.
Automatically:
clawdbot onboard (fixes OAuth auth-profiles bug)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.
clawdbot onboard OAuth BugWhen you run clawdbot onboard --auth-choice claude-cli, it sometimes doesn't properly write OAuth tokens to auth-profiles.json.
This skill:
~/.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
}
}
}
cd ~/clawd/skills/claude-connect
./install.sh
The installer will:
Copy example config:
cp claude-oauth-refresh-config.example.json claude-oauth-refresh-config.json
Edit config (optional):
nano claude-oauth-refresh-config.json
Test refresh:
./refresh-token.sh --force
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
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 activitynotifications.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)# Refresh now (even if not expired)
./refresh-token.sh --force
# Refresh only if needed
./refresh-token.sh
# 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
Ask Clawdbot:
Disable Claude refresh success notifications
Or edit config:
{
"notifications": {
"on_success": false,
"on_failure": true
}
}
Claude Code-credentials--force)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
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.
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
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
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
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
Version: 1.1.0
Author: TunaIssaCoding
License: MIT
Repo: https://github.com/TunaIssaCoding/claude-connect
AUTO-DETECTION-FLOW.md (opens in a new tab)CHANGELOG.md (opens in a new tab)CHANGES.md (opens in a new tab)COMPLETION-REPORT.md (opens in a new tab)DELIVERABLES.txt (opens in a new tab)DETECTION-EXAMPLES.md (opens in a new tab)QUICKSTART.md (opens in a new tab)README.md (opens in a new tab)SUMMARY.md (opens in a new tab)UPGRADE.md (opens in a new tab)claude-oauth-refresh-config.example.json (opens in a new tab)detect-notification-config.sh (opens in a new tab)install.sh (opens in a new tab)refresh-token.sh (opens in a new tab)test-detection.sh (opens in a new tab)uninstall.sh (opens in a new tab)validate-update.sh (opens in a new tab)verify-setup.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/sundial-org-awesome-openclaw-skills-4:claude-connectfrom sundial-org-awesome-openclaw-skills-4
sundial-org-awesome-openclaw-skills-4@cascade-ai-ml-agents-misc-2 is listed by joshuarweaver/cascade-ai-ml-agents-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4908 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./a11y-checkerScan HTML and JSX for accessibility issues with AI-powered fix suggestions/abm-outboundMulti-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email sequences, LinkedIn touches, and handwritten letters via Scribeless. The secret weapon for standing out in crowded inboxes.Other plugins' skills for the same job