@bbgasj

KPainter OpenClaw

OpenClaw plugin for KPainter explainer videos, slides, images, and interactive lessons. Latest image support includes GPT-Image-2.

当前版本
v0.1.5
code-plugin社区source-linked

KPainter OpenClaw

OpenClaw code-plugin package for KPainter.

What it does

This package adds a minimal set of KPainter API tools to OpenClaw so an agent can:

  • fetch the create catalog
  • inspect the current account and credits
  • create explainer videos, slides, images, and interactive lessons
  • list creations and poll job or knowledge status

Files

  • package.json
  • openclaw.plugin.json
  • src/index.js

Config

Configure the plugin under plugins.entries["kpainter-openclaw"].config:

{
  "apiBaseUrl": "https://kpainter.ai/kp-app-api/v1",
  "apiKey": "<your_kpainter_api_key>",
  "requestTimeoutMs": 30000
}

Notes:

  • apiBaseUrl defaults to the public production API
  • apiKey is required for account, credits, create, list, detail, and status tools
  • the catalog tool can run without an API key
  • the runtime sends both Authorization: Bearer <key> and X-KGP-Api-Key: <key> for compatibility with KPainter's public API surfaces

Exposed tools

  • kpainter_get_create_catalog
  • kpainter_get_me
  • kpainter_get_credit_balance
  • kpainter_create_knowledge
  • kpainter_list_knowledge
  • kpainter_get_knowledge
  • kpainter_get_job_status
  • kpainter_get_knowledge_status

Validation

Before publishing:

cd plugins/kpainter-openclaw
node --check src/index.js
npm pack --dry-run

Suggested publish command

  clawhub package publish ./plugins/kpainter-openclaw \
  --family code-plugin \
  --name kpainter-openclaw \
  --display-name "KPainter OpenClaw" \
  --version 0.1.5 \
  --source-repo OriginwiseAI/skills \
  --source-commit <git-sha> \
  --source-ref refs/heads/main \
  --source-path plugins/kpainter-openclaw \
  --changelog "Shorten marketplace summaries and keep GPT-Image-2 as a trailing note"

Current caveats

  • This package is now a real runtime, but it has not been runtime-tested against a fresh OpenClaw install in this repo.
  • Recent upstream OpenClaw issues have affected external plugin loading and tool registration. Re-test on the target OpenClaw version before recommending broad production use.

源码与版本

源码仓库

OriginwiseAI/skills

打开仓库

源码提交

d26ea8c1dbe0ca7f9bfb05fbb133a0f38e2572fc

查看提交

安装命令

openclaw plugins install clawhub:kpainter-openclaw

元数据

  • 包名: kpainter-openclaw
  • 创建时间: 2026/03/26
  • 更新时间: 2026/04/25
  • 执行代码:
  • 源码标签: refs/heads/main

兼容性

  • 构建于 OpenClaw: 2026.3.22
  • 插件 API 范围: ^1.2.0
  • 标签: latest
  • 文件数: 4