微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔌

零中间件直连你的全部工作工具

Tool Connector · v1.0.1
效率 安全 B 级 作者 zhixiangluo 公开目录收录
1k 下载 1 安装 3.1k 收藏 19 浏览

简介

让 OpenClaw 代理以你的身份直连 Slack、GitHub、Jira 等工具,无需 OAuth 或中间服务器,凭据本地加密存储

原始描述

Connect OpenClaw to any external tool or service — Slack, GitHub, Jira, Confluence, Grafana, Datadog, PagerDuty, Outlook, Google Drive, and more. Also teache...

通过你的 Agent 添加

安装目录:tool-connector/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/tool-connector/
Codex CLI~/.codex/skills/tool-connector/
DeepSeek Harness~/.agents/skills/tool-connector/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

tool-connector 赋予 OpenClaw 代理直连企业工具的能力,支持 API Token(GitHub、Jira、Datadog 等)与 SSO 会话捕获(Slack、Outlook、Google Drive、Teams)两种认证模式。SSO 场景通过 Playwright 启动本地 Chromium 窗口完成登录,抓取短期会话令牌(Slack 约 8h、M365 约 1h),全程无云端中转、无 OAuth App 创建。

典型工作流

  1. 已有工具:读取 references/setup.md → 进入对应 tool_connections/<tool>/ 目录 → 按 setup.md 配置 API Token 或执行 SSO 脚本
  2. 全新工具:遵循 10xProductivity 方法论,通过 add-new-tool.md 完成:研究认证方式 → 识别 Base URL → 捕获凭据 → 验证连接 → 编写可复用配方
  3. 凭据同步:运行 openclaw_sync.py --refresh-all 刷新 SSO 会话,自动注入 ~/.openclaw/openclaw.json

显著优点

  • 零摩擦接入:无需 IT 审批、不创建 OAuth App、不经过第三方服务器
  • 代理即用户:代理使用你的身份操作,审计轨迹与人工操作一致
  • 本地安全闭环:API Token 与 SSO 会话均存储于本地 ~/.openclaw/openclaw.json,技能目录内零残留
  • 方法论可复制:10xProductivity 框架使任何新工具可在 10 分钟内完成接入

潜在局限与风险

维度 说明
会话时效 SSO 令牌寿命短(1-24h),需定期刷新或自动化同步
浏览器依赖 SSO 需本地 Chromium,无图形界面环境(如纯 SSH)无法执行
凭据管理 用户需自行保管 openclaw.json,丢失即需重新授权
企业合规 部分公司禁止个人 API Token 或浏览器自动化,需提前确认政策

适合人群

  • 高级个人用户:希望代理代替自己操作工具,拒绝 SaaS 中间商
  • 小团队技术负责人:需快速搭建内部工具链,无精力维护 OAuth 集成
  • 隐私敏感型开发者:要求凭据不出本地、不留第三方日志

常规风险

  • 脚本审查:playwright_sso.py 与 openclaw_sync.py 涉及浏览器自动化与文件系统写入,使用前务必人工审阅
  • 令牌泄露:openclaw.json 包含高权限 Token,建议设置文件权限 600 并排除备份同步
  • 误操作放大:代理获得与用户等同的权限,删除/修改类操作需额外确认机制

技能正文


name: tool-connector description: Connect OpenClaw to tools like Slack, GitHub, Jira, Confluence, Grafana, Datadog, PagerDuty, Outlook, and Google Drive — using your own personal credentials or API tokens. Also teaches how to add brand-new tool connections from scratch (10xProductivity methodology). Use when the user wants to connect to a tool, set up credentials, access a service API, add a new integration, or ask "how do I give my agent access to X". CAUTION: SSO tools use Playwright browser automation to capture session tokens; all credentials are stored in your local ~/.openclaw/openclaw.json. Review scripts/playwright_sso.py and scripts/openclaw_sync.py before use. metadata: { "openclaw": { "emoji": "🔌", "requires": { "bins": ["python3"] }, "install": [ { "id": "node", "kind": "node", "package": "playwright", "bins": ["playwright"], "label": "Install Playwright (required for SSO tools: Slack, Outlook, Teams, Google Drive)" } ] } }

Tool Connector

Use with caution. This skill uses your own personal credentials and API tokens — it never handles them on your behalf or sends them anywhere except the tool you are connecting to. SSO connections use Playwright browser automation (a headed Chromium window) to capture short-lived session tokens. All credentials are stored locally in ~/.openclaw/openclaw.json under skills.entries.tool-connector only. Review {baseDir}/scripts/playwright_sso.py and {baseDir}/scripts/openclaw_sync.py before running any SSO flow.

Gives your OpenClaw agent the ability to connect to tools and services using the 10xProductivity methodology: your agent authenticates as you, using the same surfaces you use as a human — no OAuth apps, no cloud middleware, no IT tickets.

Bundled tool recipes

Verified connection recipes are in {baseDir}/references/tool_connections/:

Tool Auth method Reference
Artifactory API token tool_connections/artifactory/
Backstage API token tool_connections/backstage/
Bitbucket Server API token tool_connections/bitbucket-server/
Confluence API token tool_connections/confluence/
Datadog API token tool_connections/datadog/
GitHub API token tool_connections/github/
Google Drive SSO (Playwright) tool_connections/google-drive/
Grafana API token / SSO tool_connections/grafana/
Jenkins API token tool_connections/jenkins/
Jira API token tool_connections/jira/
Microsoft Teams SSO (Playwright) tool_connections/microsoft-teams/
Outlook SSO (Playwright) tool_connections/outlook/
PagerDuty API token tool_connections/pagerduty/
Slack SSO (Playwright) tool_connections/slack/

For more tools, clone https://github.com/ZhixiangLuo/10xProductivity and run through setup.md.

Which reference to read

Setting up a connection to a tool already in the list above: Read {baseDir}/references/setup.md for UX principles, then read the matching {baseDir}/references/tool_connections/<tool>/setup.md and connection-*.md.

Adding a brand-new tool not in the list: Read {baseDir}/references/add-new-tool.md — it walks through the full methodology: research auth, identify base URL, capture credentials, validate against a live instance, and write a reusable recipe.

SSO-based tools (Slack, Outlook, Google Drive, Teams): These use Playwright to capture a session token in one headless browser pass. The script is at {baseDir}/scripts/shared_utils/playwright_sso.py. Requires playwright installed (pip install playwright && playwright install chromium). Run once; session is cached for days/weeks.

Credential storage (OpenClaw standard)

All credentials — both API tokens and SSO session tokens — are stored in ~/.openclaw/openclaw.json under skills.entries.tool-connector.env. OpenClaw injects them automatically as environment variables at the start of each agent run. No manual source .env needed.

API tokens (long-lived) — add directly to ~/.openclaw/openclaw.json:

// ~/.openclaw/openclaw.json
{
  skills: {
    entries: {
      "tool-connector": {
        env: {
          GITHUB_TOKEN: "ghp_...",
          JIRA_API_TOKEN: "...",
          JIRA_EMAIL: "you@example.com",
        }
      }
    }
  }
}

SSO session tokens (short-lived: Slack ~8h, M365 ~1h, Teams ~24h) — captured by Playwright and synced automatically into ~/.openclaw/openclaw.json via the sync script:

# Refresh Slack SSO and sync into openclaw.json
python3 {baseDir}/scripts/openclaw_sync.py --refresh-slack

# Refresh Outlook/M365 SSO and sync
python3 {baseDir}/scripts/openclaw_sync.py --refresh-outlook

# Refresh all SSO sessions and sync
python3 {baseDir}/scripts/openclaw_sync.py --refresh-all

# Sync already-captured tokens (no browser) — useful after manual SSO run
python3 {baseDir}/scripts/openclaw_sync.py

SSO tokens are cached in ~/.openclaw/tool-connector.env (never in git). The sync script reads that file and patches ~/.openclaw/openclaw.json so OpenClaw picks them up on the next session.

Never store credentials in the skill directory itself.

Core principles (from 10xProductivity)

  • Ask for a URL first — any link from the tool reveals the base URL, variant, and proves access
  • Infer auth from the URL — do not ask the user to explain their auth setup
  • Run before you write — every snippet must be code you actually executed against a live instance
  • Zero friction — no OAuth app creation, no IT tickets, no new cloud services
  • Agent acts as you — your identity, your audit trail, your credentials

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

ssoapi-tokenplaywrightcredential-managementslackgithubjiragoogle-driveoutlookdevops-toolslocal-first

同类 Skill