据 AlphaMoat 统计,截至 2026-10,Claude Connect 累计下载 9,787 次、获 13 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 2,800 位,在「AI 智能体」分类(1,632 个)中排名第 369 位。
列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。
| 平台 | 累计下载 | 星标 | 评论 |
|---|---|---|---|
| ClawHub ↗ | 7,354 | 13 | - |
| SkillHub ↗ | 9,787 | 13 | — |
各平台的计数口径不同,统计时间不一致。
功能:从 macOS Keychain 读取 Claude CLI 存储的 OAuth 令牌,以正确的 OAuth 格式写入 ~/.clawdbot/agents/main/agent/auth-profiles.json(修复 clawdbot onboard 的 auth-profiles 问题),并经 launchd 每 2 小时自动刷新(令牌剩余不足 30 分钟时刷新,可 --force 强制)。配置项包括 refresh_buffer_minutes、log_file、成功/失败通知与 Telegram 通知目标。刷新流程共七步:读 Keychain → 检查过期 → 调 OAuth API → 更新 auth-profiles.json → 回写 Keychain → 重启网关 → 通知。注意:这是面向旧版 Clawdbot 设置的维护技能,若原生 onboarding 已够用可优先用原生路径,卸载用 ./uninstall.sh。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-10 | 9,787 | — | 13 |
| 2026-09 | 7,154 | — | 13 |
| 2026-08 | 6,989 | +3.2% | 13 |
| 2026-07 | 6,772 | +6.0% | 13 |
| 2026-06 | 6,387 | +3.8% | 13 |
| 2026-05 | 6,153 | — | 12 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
--- 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:**
```bash
clawdhub install claude-connect
cd ~/clawd/skills/claude-connect
```
**2. Ensure Claude CLI is logged in:**
```bash
claude auth
# Follow the browser login flow
```
**3. Run installer:**
```bash
./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**:
```json
{
"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
---
## Installation
### Automatic (Recommended)
```bash
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:
```bash
cp claude-oauth-refresh-config.example.json claude-oauth-refresh-config.json
```
2. Edit config (optional):
```bash
nano claude-oauth-refresh-config.json
```
3. Test refresh:
```bash
./refresh-token.sh --force
```
4. Install launchd job (optional - for auto-refresh):
```bash
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`:
```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
```bash
# Refresh now (even if not expired)
./refresh-token.sh --force
# Refresh only if needed
./refresh-token.sh
```
### Check Status
```bash
# 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:
```json
{
"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:**
```bash
# 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:**
```bash
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:
```bash
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:
```bash
claude auth
# Follow browser flow
```
Then run refresh again:
```bash
./refresh-token.sh --force
```
---
## Uninstall
```bash
cd ~/clawd/skills/claude-connect
./uninstall.sh
```
Or manually:
```bash
# 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:
```bash
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
- [QUICKSTART.md](QUICKSTART.md) - 60-second setup guide
- [UPGRADE.md](UPGRADE.md) - Upgrading from older versions
- [Clawdbot docs](https://docs.clawd.bot) - Model authentication
---
**Version:** 1.1.0
**Author:** TunaIssaCoding
**License:** MIT
**Repo:** https://github.com/TunaIssaCoding/claude-connect
把开发过程中的经验、错误与纠正记录为 Markdown 文件,供后续复用并晋升为工作区记忆。
用自然语言描述需求,在本地与远程技能市场里找技能并给出推荐的技能。
给 AI agent 用的浏览器自动化命令行技能。
把用户纠正与自我复盘沉淀成分层记忆、并按使用情况升降级的技能。
一份为 AI 代理规划主动跟进、工作记忆与复盘流程的工作区配置指南。
指导如何创建与更新有效 Claude 技能的写作指南。
在安装第三方技能之前,按清单审查来源、权限与危险模式的技能。
把盛唐诗人李白的诗学观、意象系统与口吻,蒸馏成 AI 可调用的角色包。
数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。