Skip to content
Back to skills

Image Bed Uploader Direct

ASecurity

通过 openclaw-tu 图床 API 直连上传本地图片并返回外链。适用于“上传图片到图床”“拿图片外链”“不用 SSH 上传图床”“给博客准备 coverUrl 或 imageUrls”等场景。

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add tangchunwu/skill-hub --skill image-bed-uploader-direct --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Bed Uploader Direct?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Bed Uploader Direct
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tangchunwu-image-bed-uploader-direct/badge)](https://www.skillsdirectory.com/skills/tangchunwu-image-bed-uploader-direct)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: image-bed-uploader-direct
description: 通过 openclaw-tu 图床 API 直连上传本地图片并返回外链。适用于“上传图片到图床”“拿图片外链”“不用 SSH 上传图床”“给博客准备 coverUrl 或 imageUrls”等场景。
---

# Image Bed Uploader Direct

用于直连 `openclaw-tu` 图床接口,不经过 `openclaw-main` 或 SSH。

## 适用场景

- 上传本地图片到图床
- 获取公网图片 URL
- 给博客 JSON 的 `coverUrl`、`imageUrls` 准备图片链接

## 强约束

- 不把 token 写入 `SKILL.md` 或输出内容。
- 只做图片上传和 URL 返回,不默认发布博客。
- 成功后优先返回可直接访问的完整 URL。

## 环境变量

必需:

```bash
IMGBED_TOKEN="你的图床 Bearer Token"
```

可选:

```bash
IMGBED_BASE_URL="https://openclaw-tu.us.ci"
IMGBED_UPLOAD_URL="https://openclaw-tu.us.ci/upload"
IMGBED_FIELD_NAME="file"
```

说明:已验证 `Authorization: Bearer $IMGBED_TOKEN` 加 `file=@图片路径` 可以上传成功。上传密码如果只用于网页登录,不需要写入本 skill。

## 使用入口

健康检查:

```bash
python ~/.codex/skills/image-bed-uploader-direct/scripts/upload_image_direct.py healthcheck
```

上传图片:

```bash
python ~/.codex/skills/image-bed-uploader-direct/scripts/upload_image_direct.py upload --file /path/to/image.jpg
```

脚本会解析接口返回里的 `src`、`url` 或 `href` 字段;如果返回相对路径,会自动拼接 `IMGBED_BASE_URL`。

Files in this skill

  • SKILL.md1.5 KB
  • scripts/upload_image_direct.py4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.