Imgur CLI
/install imgur-cli
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 \x3Cfile-or-url> [--title T] [--description D] [--album HASH]
imgur-cli get \x3Cimage-hash>
imgur-cli delete \x3Cdelete-hash-or-id>
imgur-cli album-create [--title T] [--description D] [--privacy public|hidden|secret] [--image ID ...]
imgur-cli album-add \x3Calbum-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="\x3Cclient id>"
imgur-cli upload ./photo.jpg --title "cat pic" | jq -r '.link'
# Upload to user account
export IMGUR_ACCESS_TOKEN="\x3Coauth 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
deletehashis the only way to remove anonymous uploads — store it. - Respect Imgur rate limits (see your developer dashboard).
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install imgur-cli - After installation, invoke the skill by name or use
/imgur-cli - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 86 downloads so far.
How do I install Imgur CLI?
Run "/install imgur-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Imgur CLI free?
Yes, Imgur CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Imgur CLI support?
Imgur CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Imgur CLI?
It is built and maintained by Chloe Park (@chloepark85); the current version is v0.1.0.