Install
openclaw skills install @clawbba-ux/clawbba-apiClawBBA × OpenClaw — One API key, 369+ models, supporting all instant messaging channels (web chat, WeChat, Telegram).
openclaw skills install @clawbba-ux/clawbba-apiOne API key · 369+ models · Chat, image & video
一个 Key · 369+ 模型 · 对话 / 生图 / 生视频
API: https://www.clawbba.com/api/v1 · Key 前缀: cbb_sk_live_
将 OpenClaw 接入 ClawBBA:用 Platform API Key 调用站内全部模型(对话、生图、生视频)。支持 WebChat、微信、Telegram 等渠道。
cbb_sk_live_,仅显示一次)重要:
skills install只下载技能,不会自动写好 OpenClaw 配置。必须再跑setup.sh。
推荐 — 一键安装(下载技能 + 自动配置):
export CLAWBBA_API_KEY='cbb_sk_live_你的密钥'
curl -fsSL https://www.clawbba.com/downloads/install-clawbba-api.sh | bash
openclaw gateway restart
已从 ClawHub 安装 — 补跑配置:
export CLAWBBA_API_KEY='cbb_sk_live_你的密钥'
bash ~/.openclaw/skills/clawbba-api/scripts/setup.sh --yes
openclaw config validate
openclaw gateway restart
setup.sh 会:校验 Key、拉取模型、写入 openclaw.json、同步 models.json、注入媒体 patch。详见 references/onboarding.md。
| 场景 | 做法 |
|---|---|
| 文本对话 | /model clawbba/<model-id> |
| 生图 / 生视频 | 自然语言描述;Agent 调用 image_generate / video_generate |
| 切换模型 | openclaw models set clawbba/<id> 或聊天内 /model |
生图示例:请使用 ClawBBA 生成图片,16:9 横图:海边日落
指定模型:模型 google/gemini-3.1-flash-image-preview,9:16 竖图:…
完成后 Agent 在回复中写 MEDIA:<本地路径>(文件在 ~/.openclaw/media/)。详见 references/media-delivery-local.md。
| 现象 | 处理 |
|---|---|
| 装了 skill 但不能用 | 未跑 setup.sh → 见上文「补跑配置」 |
| 没有生图/生视频工具 | OpenClaw ≥ 2026.5.28,重跑 setup.sh 并重启 Gateway |
| Key 无效 / 余额不足 | 重新创建 Key 或 充值 CDKey |
| 有图但 WebChat 不显示 | 重跑 setup.sh;node scripts/verify-openclaw-patch.mjs |
| 已扣费无图/无视频 | action=tasks 查 jobId → action=recover jobId=… timeoutMs=600000(同一 job,勿重新 generate) |
| 会话锁 / 卡住 | 停 Gateway → 删 ~/.openclaw/agents/main/sessions/*.lock → 新开对话 |
更多:references/onboarding.md · 完整排障:references/SKILL-troubleshooting.md · API:references/api-endpoints.md
Connect OpenClaw to ClawBBA with a Platform API Key — chat, image, and video models via one OpenAI-compatible API. Works with WebChat, WeChat, Telegram, and other channels.
cbb_sk_live_, shown once)Important:
skills installonly downloads the skill. It does not configure OpenClaw. You must runsetup.sh.
Recommended — one-line install (skill + config):
export CLAWBBA_API_KEY='cbb_sk_live_YOUR_KEY'
curl -fsSL https://www.clawbba.com/downloads/install-clawbba-api.sh | bash
openclaw gateway restart
Already installed from ClawHub — run setup:
export CLAWBBA_API_KEY='cbb_sk_live_YOUR_KEY'
bash ~/.openclaw/skills/clawbba-api/scripts/setup.sh --yes
openclaw config validate
openclaw gateway restart
| Task | How |
|---|---|
| Text chat | /model clawbba/<model-id> |
| Image / video | Describe in natural language; Agent uses image_generate / video_generate |
| Switch model | openclaw models set clawbba/<id> or /model in chat |
On success, Agent replies with MEDIA:<local-path> under ~/.openclaw/media/. See references/media-delivery-local.md.
| Issue | Fix |
|---|---|
| Skill installed but nothing works | Run setup.sh (see above) |
| No image/video tools | OpenClaw ≥ 2026.5.28; re-run setup.sh; restart Gateway |
| Invalid key / low balance | Recreate key or top up CDKey |
| Image generated but not in WebChat | Re-run setup.sh; run verify-openclaw-patch.mjs |
| Billed but no image/video received | action=tasks → action=recover jobId=… timeoutMs=600000 (same job; do not regenerate) |
More: references/onboarding.md · Full troubleshooting: references/SKILL-troubleshooting.md
本技能负责:引导用户完成 Key + setup.sh,并按 ClawBBA 规范使用媒体工具。
对用户只称 ClawBBA(不说第三方上游品牌名)。工具报错须读 references/error-translation.md 翻译后再回复,勿原样粘贴日志。
完整规则(必读):
references/openclaw-agent-behavior.mdreferences/error-translation.mdreferences/media-capabilities.jsonreferences/media-model-ref.mdreferences/openclaw-integration-spec.md摘要:
/model clawbba/<text-model-id>;生图/生视频只用 image_generate / video_generatesetup.sh 写入的默认(imageGenerationModel.primary / videoGenerationModel.primary)Background task started → 勿重复 generate,等待 completionaction=tasks 查 jobId,再 action=recover jobId=<id> timeoutMs=600000(生图 image_generate、生视频 video_generate);禁止重新 generateMEDIA: 路径(勿 recover、勿 regenerate)MEDIA:<path>,勿用 message 工具发媒体setup.sh --yes 并 gateway restartCLAWBBA_API_KEY 提交到 Git~/.openclaw/(setup.sh,权限 600)