← 返回 Skills 市场
yb98k999

tokenrouter-image-generator

作者 PaleBlueDot AI · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
120
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install tokenrouter-images
功能描述
Generate or edit images through Palebluedot Ai(PBD)-TokenRouter's multimodal image generation endpoint (`/v1/chat/completions`) using TokenRouter-compatible...
安全使用建议
This skill appears to implement TokenRouter image generation as described, but note three issues before installing: (1) the package metadata fails to declare that it requires a TokenRouter API key — the script will look for PBD_TOKENROUTER_API_KEY or a --api-key and will also try to read ~/.openclaw/openclaw.json to auto-detect a key; (2) avoid pasting your API key into the chat as suggested in the README — that exposes the secret in chat logs and to the agent; prefer setting PBD_TOKENROUTER_API_KEY in your shell or configuring it in a secure place; (3) the script will write images to ~/.openclaw/media/outbound and will send image bytes and your API key to https://api.tokenrouter.com — only proceed if you trust TokenRouter and are comfortable with network access. If you want higher assurance, ask the author to: (a) update the skill metadata to declare required env vars, (b) remove or warn clearly against pasting keys into chat, and (c) document exactly what fields are read from ~/.openclaw/openclaw.json. If you accept those caveats this skill is functionally coherent; otherwise treat it as potentially risky.
功能分析
Type: OpenClaw Skill Name: tokenrouter-images Version: 1.0.2 The skill bundle provides a legitimate tool for generating and editing images using the TokenRouter API. The script `scripts/generate_image.py` correctly implements image-to-image and text-to-image workflows, including a documented mechanism to retrieve API keys from environment variables or the local OpenClaw configuration file (~/.openclaw/openclaw.json). No evidence of malicious intent, unauthorized data exfiltration, or prompt injection attacks was found; the behavior is transparently described in SKILL.md and aligned with the tool's stated purpose.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The code and SKILL.md implement TokenRouter image generation and editing and call https://api.tokenrouter.com/v1/chat/completions as described — this matches the stated purpose. However the skill metadata declares no required environment variables or primary credential even though both SKILL.md and the script require a TokenRouter API key (PBD_TOKENROUTER_API_KEY) or a --api-key. The omission in the declared requirements is an incoherence.
Instruction Scope
Runtime instructions and the script read ~/.openclaw/openclaw.json to auto-detect an API key, create and write files under ~/.openclaw/media/outbound, and send image data (base64) to the external TokenRouter endpoint. The SKILL.md also explicitly advises users they can paste their API key into the chat for the agent to pass to the script — this encourages disclosing a secret to the agent and may result in the key being logged/stored in chat history. While reading openclaw.json and using ~/.openclaw paths is coherent with an OpenClaw skill, the SKILL.md grants the agent broad discretion to obtain the key from multiple locations (arg/env/config) which increases exposure.
Install Mechanism
This is an instruction-only skill with a small helper script; there is no install spec and nothing is downloaded or installed. Risk from install mechanism is low.
Credentials
The script reasonably needs a TokenRouter API key to call the service, but the skill metadata does not declare this required environment variable. The script also reads ~/.openclaw/openclaw.json to find apiKey values, which could expose stored provider credentials if present. Additionally, SKILL.md recommends pasting the API key into chat — that practice is disproportionate from a secrecy standpoint because it encourages exposing a secret to the agent and chat logs rather than setting a local env var or secure secret storage.
Persistence & Privilege
always: false and there is no install-time modification of other skills or system-wide settings. The skill writes output images to the OpenClaw media folder (expected behavior) and runs as-invoked. No elevated persistence or cross-skill config changes are present.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tokenrouter-images
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tokenrouter-images 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added a list of additional supported image models (OpenAI and Google) in the Model + Image Config section, including explicit model IDs. - Marked `google/gemini-2.5-flash-image` as the default/recommended model. - Clarified that users may request a model switch using the listed TokenRouter-supported models. - No changes to script functionality or interface—documentation only.
v1.0.1
- Adds auto-detection of TokenRouter API key from current agent's provider config in `~/.openclaw/openclaw.json` as a fallback after command-line and environment variable. - Updates documentation to reflect new API key lookup priority and preflight logic. - Improves error guidance when no API key is found, referencing the additional possible source. - No changes to usage or command-line interface; existing integrations remain compatible.
v1.0.0
tokenrouter-images 1.0.0 - Initial release introduces the TokenRouter image generator skill for OpenClaw. - Generate or edit images using TokenRouter-compatible models via the multimodal `/v1/chat/completions` endpoint. - Requires a TokenRouter API key (set via argument or environment variable). - Provides clear usage instructions for both text-to-image and image-to-image tasks. - Supports custom model selection and provider-specific image configuration options (aspect ratio, image size). - Includes extensive guidance for troubleshooting, preflight checks, and handling missing API keys.
元数据
Slug tokenrouter-images
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

tokenrouter-image-generator 是什么?

Generate or edit images through Palebluedot Ai(PBD)-TokenRouter's multimodal image generation endpoint (`/v1/chat/completions`) using TokenRouter-compatible... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 120 次。

如何安装 tokenrouter-image-generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tokenrouter-images」即可一键安装,无需额外配置。

tokenrouter-image-generator 是免费的吗?

是的,tokenrouter-image-generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

tokenrouter-image-generator 支持哪些平台?

tokenrouter-image-generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 tokenrouter-image-generator?

由 PaleBlueDot AI(@yb98k999)开发并维护,当前版本 v1.0.2。

💬 留言讨论