Tool Connector
Everything stays local — no data leaves your machine. Credentials are written only to ~/.openclaw/openclaw.json on your own filesystem. Nothing is uploaded, proxied, or shared with any cloud service, including OpenClaw's servers. The agent connects directly from your machine to the target tool using your own identity.
Minimal input by design. Just paste a URL from the tool — the skill infers the base URL, auth method, and API shape from it. No IT tickets, no OAuth app registration, no config files to hand-edit.
SSO tools (Slack, Outlook, Teams, Google Drive, Grafana) use Python Playwright (pip install playwright && playwright install chromium) to open a headed Chromium window you can see, completing SSO the same way you would manually. The script captures session cookies/tokens from localStorage and network headers. Review {baseDir}/scripts/shared_utils/playwright_sso.py before running any SSO flow.
Credential storage scope: All credentials are written into ~/.openclaw/openclaw.json under skills.entries.tool-connector.env only — the sync script does not read or modify any other key in that file. SSO tokens are also cached in ~/.openclaw/tool-connector.env (plain-text, never committed to git). OpenClaw injects them as env vars at the start of each agent session; only store tokens for tools you actively use.
Full list of credentials this skill may store (see metadata.env.provided above for tool, kind, and lifetime):
API tokens (long-lived): GITHUB_TOKEN, JIRA_API_TOKEN, CONFLUENCE_TOKEN, DATADOG_API_KEY, PAGERDUTY_TOKEN, JENKINS_API_TOKEN, ARTIFACTORY_TOKEN, BACKSTAGE_TOKEN, BITBUCKET_TOKEN
SSO tokens (short-lived, refreshed by Playwright): GRAFANA_SESSION (~8h), SLACK_XOXC/SLACK_D_COOKIE (~8h), GDRIVE_COOKIES/GDRIVE_SAPISID (days–weeks), TEAMS_SKYPETOKEN/TEAMS_SESSION_ID (~24h), GRAPH_ACCESS_TOKEN/OWA_ACCESS_TOKEN (~1h)
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 | INLINECODE27 |
| 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, Grafana):
These use Python Playwright to open a headed Chromium window, capture a session token, and write it to ~/.openclaw/tool-connector.env. The script is at {baseDir}/scripts/shared_utils/playwright_sso.py. Install once with pip install playwright && playwright install chromium; run when a token expires. Session lifetimes vary by tool (see the caution block above).
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:
CODEBLOCK0
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:
CODEBLOCK1
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
工具连接器
一切数据保留在本地——没有任何数据离开你的机器。 凭据仅写入你自己文件系统中的 ~/.openclaw/openclaw.json。不会向任何云服务(包括 OpenClaw 的服务器)上传、代理或共享任何内容。代理直接从你的机器使用你自己的身份连接到目标工具。
设计上要求最小化输入。 只需粘贴工具中的 URL——该技能会自动从中推断出基础 URL、认证方法和 API 结构。无需 IT 工单,无需 OAuth 应用注册,无需手动编辑配置文件。
SSO 工具(Slack、Outlook、Teams、Google Drive、Grafana)使用 Python Playwright(pip install playwright && playwright install chromium)打开一个你能看到的带界面的 Chromium 窗口,以与你手动操作相同的方式完成 SSO。脚本从 localStorage 和网络请求头中捕获会话 cookie/令牌。在运行任何 SSO 流程之前,请先查看 {baseDir}/scripts/sharedutils/playwrightsso.py。
凭据存储范围: 所有凭据仅写入 ~/.openclaw/openclaw.json 中 skills.entries.tool-connector.env 下——同步脚本不会读取或修改该文件中的任何其他键。SSO 令牌也会缓存在 ~/.openclaw/tool-connector.env 中(纯文本,绝不提交到 git)。OpenClaw 在每个代理会话开始时将其作为环境变量注入;仅存储你正在使用的工具的令牌。
此技能可能存储的完整凭据列表(有关工具、类型和有效期,请参见上面的 metadata.env.provided):
API 令牌(长期有效):GITHUBTOKEN、JIRAAPITOKEN、CONFLUENCETOKEN、DATADOGAPIKEY、PAGERDUTYTOKEN、JENKINSAPITOKEN、ARTIFACTORYTOKEN、BACKSTAGETOKEN、BITBUCKETTOKEN
SSO 令牌(短期有效,由 Playwright 刷新):GRAFANASESSION(约8小时)、SLACKXOXC/SLACKDCOOKIE(约8小时)、GDRIVECOOKIES/GDRIVESAPISID(数天至数周)、TEAMSSKYPETOKEN/TEAMSSESSIONID(约24小时)、GRAPHACCESSTOKEN/OWAACCESS_TOKEN(约1小时)
为你的 OpenClaw 代理提供使用 10xProductivity 方法论连接到工具和服务的能力:你的代理以你的身份进行认证,使用与你作为人类相同的界面——无需 OAuth 应用,无需云中间件,无需 IT 工单。
内置工具配方
已验证的连接配方位于 {baseDir}/references/tool_connections/:
| 工具 | 认证方法 | 参考文档 |
|---|
| Artifactory | API 令牌 | toolconnections/artifactory/ |
| Backstage |
API 令牌 | toolconnections/backstage/ |
| Bitbucket Server | API 令牌 | tool_connections/bitbucket-server/ |
| Confluence | API 令牌 | tool_connections/confluence/ |
| Datadog | API 令牌 | tool_connections/datadog/ |
| GitHub | API 令牌 | tool_connections/github/ |
| Google Drive | SSO(Playwright) | tool_connections/google-drive/ |
| Grafana | API 令牌 / SSO | tool_connections/grafana/ |
| Jenkins | API 令牌 | tool_connections/jenkins/ |
| Jira | API 令牌 | tool_connections/jira/ |
| Microsoft Teams | SSO(Playwright) | tool_connections/microsoft-teams/ |
| Outlook | SSO(Playwright) | tool_connections/outlook/ |
| PagerDuty | API 令牌 | tool_connections/pagerduty/ |
| Slack | SSO(Playwright) | tool_connections/slack/ |
如需更多工具,请克隆 https://github.com/ZhixiangLuo/10xProductivity 并按照 setup.md 操作。
应阅读哪些参考文档
为上述列表中已有的工具设置连接:
阅读 {baseDir}/references/setup.md 了解用户体验原则,然后阅读相应的 {baseDir}/references/tool_connections//setup.md 和 connection-*.md。
添加列表中不存在的新工具:
阅读 {baseDir}/references/add-new-tool.md——它完整介绍了方法论:研究认证方式、识别基础 URL、捕获凭据、针对真实实例进行验证,并编写可复用的配方。
基于 SSO 的工具(Slack、Outlook、Google Drive、Teams、Grafana):
这些工具使用 Python Playwright 打开一个带界面的 Chromium 窗口,捕获会话令牌,并将其写入 ~/.openclaw/tool-connector.env。脚本位于 {baseDir}/scripts/sharedutils/playwrightsso.py。使用 pip install playwright && playwright install chromium 安装一次;在令牌过期时运行。会话有效期因工具而异(请参见上面的警告块)。
凭据存储(OpenClaw 标准)
所有凭据——包括 API 令牌和 SSO 会话令牌——都存储在 ~/.openclaw/openclaw.json 中 skills.entries.tool-connector.env 下。OpenClaw 在每个代理运行开始时自动将其作为环境变量注入。无需手动执行 source .env。
API 令牌(长期有效)——直接添加到 ~/.openclaw/openclaw.json:
json5
// ~/.openclaw/openclaw.json
{
skills: {
entries: {
tool-connector: {
env: {
GITHUBTOKEN: ghp...,
JIRAAPITOKEN: ...,
JIRA_EMAIL: you@example.com,
}
}
}
}
}
SSO 会话令牌(短期有效:Slack 约8小时,M365 约1小时,Teams 约24小时)——由 Playwright 捕获并通过同步脚本自动同步到 ~/.openclaw/openclaw.json:
bash
刷新 Slack SSO 并同步到 openclaw.json
python3 {baseDir}/scripts/openclaw_sync.py --refresh-slack
刷新 Outlook/M365 SSO 并同步
python3 {baseDir}/scripts/openclaw_sync.py --refresh-outlook
刷新所有 SSO 会话并同步
python3 {baseDir}/scripts/openclaw_sync.py --refresh-all
同步已捕获的令牌(不打开浏览器)——在手动运行 SSO 后使用
python3 {baseDir}/scripts/openclaw_sync.py
SSO 令牌缓存在 ~/.openclaw/tool-connector.env 中(绝不提交到 git)。同步脚本读取该文件并修补 ~/.openclaw/openclaw.json,以便 OpenClaw 在下一个会话中获取它们。
切勿将凭据存储在技能目录本身中。
核心原则(来自 10xProductivity)
- - 首先请求 URL——工具中的任何链接都能揭示基础 URL、变体,并证明可访问性
- 从 URL 推断认证方式——不要要求用户解释他们的认证设置
- 先运行再编写——每个代码片段都必须是你实际针对真实实例执行过的代码
- 零摩擦——无需创建 OAuth 应用,无需 IT 工单,无需新的云服务
- 代理以你的身份行动——你的身份,你的审计轨迹,你的凭据