nano-banana

nano-banana is a skill for Claude Code, Codex from nexu-io/nexu. It costs 44 tokens per session (824 once invoked), scanned A, original, MIT.

An image-generation tool that creates new pictures from text instructions or edits existing images. It can also combine multiple input images into one composition.

In plain words
What is it for?
Use it for illustrations, image variations, edits such as changing a sky, and collages made from several images.
Why use it?
It lets you create or change image files from the command line without manually editing them in a graphics program.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/alche/.openclaw/media/outbound/my-bot/nano-banana/cat-on-mars.png.

Good fit Use it for illustrations, image variations, edits such as changing a sky, and collages made from several images.

Compare 6 skills from other repositories ↓
About the project

nexu is an open-source desktop client that connects an OpenClaw AI agent to messaging services such as WeChat, Feishu, Slack, and Discord. It is for people who want to chat with their agent from those channels using their own model credentials while keeping data on their computer, and the catalogue entries support its agent workflows.

nexu-io/nexu · 3,268 stars · on GitHub · nexu.io

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nano-banana

README.md
[![agentmods](https://agentmods.dev/badge/skills/nexu-io/nexu/nano-banana/github.svg)](https://agentmods.dev/skills/nexu-io/nexu/nano-banana)
Your own site
<a href="https://agentmods.dev/skills/nexu-io/nexu/nano-banana"><img src="https://agentmods.dev/badge/skills/nexu-io/nexu/nano-banana/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nano-banana

Your own site · 80×15
<a href="https://agentmods.dev/skills/nexu-io/nexu/nano-banana"><img src="https://agentmods.dev/badge/skills/nexu-io/nexu/nano-banana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 824 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00824
Opus 5 $0.00022 $0.00412
Sonnet 5 $0.00009 $0.00165
Haiku 4.5 $0.00004 $0.00082

Measured 13d ago against content hash 63f51ca819d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

nano-banana scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate-image.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nexubot/nano-banana/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nano Banana — Image Generation

Image generation script supporting three models. Requires sharp for input image compression (auto-installed on first run).

Models

Flag Notes
--model nano-banana Default. Fast, good quality.
--model nano-banana-pro Highest quality, slower.
--model nano-banana-2 Legacy model.

Generate an image

node {baseDir}/scripts/generate-image.js --prompt "a cat sitting on mars" --filename "cat-on-mars.png"

Edit a single image

node {baseDir}/scripts/generate-image.js \
  --prompt "make the sky purple" \
  --filename "edited.png" \
  -i "/path/to/input.png" \
  --model nano-banana-pro

Multi-image composition (up to 14 images)

node {baseDir}/scripts/generate-image.js \
  --prompt "combine these into a collage" \
  --filename "collage.png" \
  -i img1.png -i img2.png -i img3.png

Options

Flag Short Default Description
--prompt -p required Image description or editing instruction
--filename -f required Output filename
--input-image -i Input image(s), repeatable, max 14
--model nano-banana nano-banana, nano-banana-pro, or nano-banana-2
--resolution -r 1K 1K, 2K, or 4K
--aspect-ratio e.g. 1:1, 16:9, 4:3, 3:4, 9:16

API key

The API key is pre-configured on this machine. No flags or environment variables needed.

Input image handling

All input images are sent as inline base64. Images over 500 KB are automatically compressed to JPEG and resized to fit under the limit. This keeps requests fast and avoids File API auth issues with the enterprise endpoint.

Output

Relative filenames are saved to $OPENCLAW_STATE_DIR/media/outbound/{slugid}/nano-banana/{filename}. Absolute paths are used as-is. Absolute paths are used as-is. Use timestamps in filenames to avoid overwrites: cat-on-mars-20260304-165000.png.

Read the full file on GitHub · 90 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 90 lines · 44 tokens per session scan A 63f51ca819d2

Subscribe to this mod's changes

nano-banana is a skill published in the GitHub repository nexu-io/nexu (3,268 stars, last pushed 4mo ago), licensed MIT. It adds 44 tokens to every session and 824 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.