← 返回
未分类 Key 中文

Imgur CLI

Imgur API CLI for agents. Upload images by file path or URL, fetch image metadata, delete uploads via delete-hash, create and manage albums. Anonymous upload...
用于代理的 Imgur API 命令行工具,支持通过文件路径或 URL 上传图片、获取图片元数据、通过 delete‑hash 删除上传、创建并管理相册,支持匿名上传。
chloepark85 chloepark85 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 335
下载
💾 0
安装
1
版本
#latest

概述

Imgur CLI

Wraps the official Imgur v3 API for AI agents. Upload images by file or URL, fetch metadata, delete by delete-hash, and manage albums — all as subcommands that print JSON.

When to use

Trigger this skill when:

  • An agent just produced an image (from nano-banana-pro, generate-image, ffmpeg, matplotlib, etc.) and another step needs a public URL.
  • A user asks to "host this image", "get a shareable link for this file", or "upload to Imgur".
  • You need to persist screenshots or render artifacts as shareable links.
  • Archiving URLs into Imgur albums for later retrieval.

Pairs well with: instagram-api (needs hosted URLs), nano-banana-pro, generate-image, Discord/Telegram posting skills.

Install

pip install -e .

Then set either:

  • IMGUR_CLIENT_ID — anonymous uploads (get one at https://api.imgur.com/oauth2/addclient)
  • IMGUR_ACCESS_TOKEN — OAuth2 bearer token (takes precedence if both are set)

Commands

imgur-cli upload <file-or-url> [--title T] [--description D] [--album HASH]
imgur-cli get <image-hash>
imgur-cli delete <delete-hash-or-id>
imgur-cli album-create [--title T] [--description D] [--privacy public|hidden|secret] [--image ID ...]
imgur-cli album-add <album-hash> --image ID [--image ID ...]

All commands print the Imgur API data object as indented JSON. Errors exit non-zero with the Imgur error payload on stderr.

Examples

# Anonymous upload, grab the shareable link
export IMGUR_CLIENT_ID="<client id>"
imgur-cli upload ./photo.jpg --title "cat pic" | jq -r '.link'

# Upload to user account
export IMGUR_ACCESS_TOKEN="<oauth token>"
imgur-cli upload https://example.com/pic.png --description "from pipeline"

# Save the delete-hash for later cleanup
imgur-cli upload ./tmp.png | jq -r '.deletehash' > .imgur-delete

# Create a private album of existing images
imgur-cli album-create --title "run-042" --privacy hidden --image aBc12 --image xYz34

Notes

  • Max image size: 10MB; videos are not supported by this skill (images only).
  • Anonymous deletehash is the only way to remove anonymous uploads — store it.
  • Respect Imgur rate limits (see your developer dashboard).

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 18:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,528 📥 582,757
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,175 📥 946,091
business-ops

Finance Automation

chloepark85
通过 Stripe Webhooks 和实时 Telegram 通知,自动化支付、发票、费用和财务报告,实现财务高效管理。
★ 0 📥 2,003