From agi-super-team
Unified login session management using OpenClaw's built-in browser. Checks session validity, handles new platform authorization, and shares credentials across agents.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agi-super-team:auth-managerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **统一使用 OpenClaw 内置 browser (profile=openclaw)**,所有平台共享同一个 Chrome profile。
统一使用 OpenClaw 内置 browser (profile=openclaw),所有平台共享同一个 Chrome profile。 ⚠️ 禁止使用 fbu / fast-browser-use,已废弃。
~/.openclaw/browser/openclaw/user-data/ ← 唯一的 Chrome profile(内置 browser)
~/.openclaw/auth-platforms.json ← 平台配置
~/.openclaw/auth-session-state.json ← 检查结果状态
为什么统一?
优先级:curl/CLI > 内置 browser
# GitHub — 最可靠
gh auth status 2>&1
# AIXN — curl API
TOKEN=$(python3 -c "import json; print(json.load(open('/home/aa/.openclaw/chrome-profiles/provider-session.json')).get('token',''))" 2>/dev/null)
curl -s --max-time 10 'https://ai.9w7.cn/api/user/info' -H "Authorization: Bearer $TOKEN"
# Provider-A — curl
COOKIE=$(python3 -c "import json; print(json.load(open('/home/aa/.openclaw/chrome-profiles/your-provider-session.json')).get('cookie',''))" 2>/dev/null)
curl -s --max-time 10 'https://your-provider.example.com/api/user/info' -H "Cookie: $COOKIE"
# 导航到目标页面
browser(action='navigate', targetUrl='<check_url>', profile='openclaw')
# 等待加载后截取快照
browser(action='snapshot', compact=true, maxChars=2000, profile='openclaw')
适用平台:Polymarket、LinuxDo、X、抖音、小红书
判定逻辑:
logged_in_indicators 关键词 → ✅ activelogin_page_indicators 关键词 → ❌ expirederror(不是 expired!区分清楚)当需要为新平台登录时:
# 1. 用内置 browser 打开登录页
browser(action='navigate', targetUrl='https://platform.com/login', profile='openclaw')
# 2. 截图给用户确认页面
browser(action='screenshot', profile='openclaw')
# 3. 如果需要用户操作(扫码等),等待用户确认后再 snapshot 验证
browser(action='snapshot', compact=true, profile='openclaw')
登录成功后,cookie/localStorage/IndexedDB 自动保存在 ~/.openclaw/browser/openclaw/user-data/。
所有 agent 调用内置 browser 时自动继承登录态:
# quant agent 访问 polymarket — 自动已登录
browser(action='navigate', targetUrl='https://polymarket.com', profile='openclaw')
# ops agent 检查 github — 自动已登录
browser(action='navigate', targetUrl='https://github.com', profile='openclaw')
无需任何额外配置。profile=openclaw 是共享的。
~/.openclaw/auth-platforms.json:
{
"platforms": {
"platform_id": {
"name": "显示名称",
"check_url": "https://example.com/dashboard",
"login_url": "https://example.com/login",
"check_method": "browser|curl|cli",
"logged_in_indicators": ["关键词1", "关键词2"],
"login_page_indicators": ["登录", "Sign in"],
"enabled": true
}
}
}
| 平台 | 检查方式 | 登录方式 | 账号 | 备注 |
|---|---|---|---|---|
| GitHub | gh auth status (CLI) | 账密/OAuth | aAAaqwq | 最可靠 |
| AIXN | curl API | 账密 | REDACTED_EMAIL | session.json token |
| Provider-A | curl API | GitHub OAuth | github_210817 | 依赖 GitHub 登录态 |
| Polymarket | 内置 browser | 钱包/OAuth | Portfolio $41.62 | 检查"portfolio"关键词 |
| LinuxDo | 内置 browser | 账密/OAuth | aaqwqaa68 | Cloudflare 站点 |
| X (Twitter) | 内置 browser | 账密 | @Daniel_Li666 | 可能有验证码 |
| 小红书 | 内置 browser | App扫码/手机号 | 69464fc5... | check: xiaohongshu.com/user/profile/me |
| 内置 browser | 账密/OAuth | Jealous-Carrot-9574 | reCAPTCHA 需人工通过 | |
| 抖音创作者 | 内置 browser | App扫码 | aa (61747337251) | check: creator.douyin.com/creator-micro/home |
~/.openclaw/auth-session-state.json:
{
"checkedAt": "2026-03-07T09:00:00+08:00",
"platforms": {
"github": { "status": "active", "account": "aAAaqwq", "method": "cli" },
"polymarket": { "status": "active", "detail": "Portfolio $41.56", "method": "browser" }
}
}
status 值: active | expired | error
1f2eb5a5 — 每天 09:00/21:00 执行profile='openclaw' — 所有 browser 操作~/.openclaw/chrome-profiles/<platform>/ 已废弃,仅保留 session.json 供 curl 读取 token/cookie~/.openclaw/chrome-profiles/<platform>/)~/.openclaw/browser/openclaw/user-data/)chrome-profiles/ 目录已于 2026-03-07 彻底删除(释放 ~1.7GB)<platform>-session.json 文件也已删除(token 已过期)npx claudepluginhub aaaaqwq/agi-super-team --plugin agi-super-teamAuthorizes Claude to act on the user's behalf on C2C resale platforms (Xianyu, Zhuanzhuan, eBay, Depop). Opens a browser for one-time login; persists cookies for reuse until 30-day expiry.
Uses Chrome DevTools Protocol to access websites requiring login, bypass IP blocks, and scrape data from 36 platforms including Twitter, Reddit, GitHub, Xueqiu, and Bilibili.
Drive Alien Browser with an anonymous L0 profile created automatically for public pages, or a logged-in profile sealed in the agent vault. Inspect forms compactly and fill/verify up to 50 fields, checks, selects, and file uploads in one call; use fine-grained refs, screenshots, tabs, dialogs, and downloads for the rest. By default all sites share ONE session; pass --name only for a separate isolated session. Credentials and 2FA use the secure vault injection path and are never seen by the agent. Sessions may be sealed READ-ONLY, where writes are blocked at the network layer.