Skip to main content
Glama
aseprite-ai-artist

aseprite-ai-artist

by with-pebbly

Aseprite AI Artist

Your coding agent, painting in the Aseprite window you already have open.

Not a generated PNG. Not a file changed behind your back. The document on your screen, one pixel at a time — and every step is one Ctrl+Z.

npm CI licence

☔ 500×400 · 384 frames at 24 fps · 16 s · 24 layers — drawn by Claude Opus 5.5 through this server.

Install · How it draws · Skills · Gallery


✨ What it feels like

"Draw me a 32×32 knight in the PICO-8 palette, then give him a 4-frame idle."

You type that, and watch it happen in Aseprite: a palette, a silhouette, shading, layers, a breathing idle, a tagged cycle. The agent looks at its own work after every step, and at the end tells you what it compromised on.

You stay in charge. Don't like the helmet? Ctrl+Z, or just say so.

Works with Claude Code, omp, OpenCode, Codex CLI, Gemini CLI, Cursor, VS Code and Windsurf. Best results so far: Claude Opus 5.5.

Related MCP server: Aseprite MCP Tools

🚀 Install

You need Aseprite 1.3+ and Node 22.6+ (macOS, Linux or Windows).

1. The Aseprite extension — then quit and reopen Aseprite:

npx @pebbly/aseprite-ai-artist install-extension

2. Your agent:

/plugin marketplace add with-pebbly/aseprite-ai-artist
/plugin install aseprite@aseprite-ai-artist
omp plugin marketplace add with-pebbly/aseprite-ai-artist
omp plugin install aseprite@aseprite-ai-artist
npx @pebbly/aseprite-ai-artist install opencode
opencode plugin add github:with-pebbly/aseprite-ai-artist#main::path:opencode
npx @pebbly/aseprite-ai-artist install codex      # or gemini, cursor, --all

Your config is backed up first; --dry-run shows the change.

3. Check it — restart your agent, then:

npx @pebbly/aseprite-ai-artist doctor

All ticks means you're ready. Updating? Run step 1 again. Odd setups (Steam, custom folders, Windows paths) are in docs/INSTALL.md.

For CI or a batch of assets, the server can run Aseprite itself with no window:

npx @pebbly/aseprite-ai-artist serve --headless --aseprite /path/to/aseprite

Nothing is on disk until the agent saves, and it never touches a file your editor has open. It is never a fallback: if your window isn't attached, the agent asks instead of quietly switching.

🎨 How it draws

Ask /aseprite:studio for anything and it runs the whole job:

Stage

What happens

1

Connect

Checks Aseprite is attached and reads what's open. If it isn't, it stops — it never edits files behind your back.

2

Brief

Only for open-ended requests: size, palette, view, light — one message, one answer.

3

Concept

For anything new: writes the design down and gives you a prompt for an image model. Send back a concept sheet, or say "continue without".

4

Draw

Silhouette first, written as a text grid (below), then shading.

5

Animate

Splits limbs onto layers, plans key poses and timing, draws each frame, tags the cycles.

6

Review

A separate critic who didn't draw it judges the result cold — what does it look like to someone never told? Blockers get fixed one at a time; a fix is kept only if the critic, shown both versions blind, prefers it.

7

Export

Spritesheet + atlas, GIF or PNGs for your engine.

After every step that changed pixels, it looks at the result before moving on.

🔤 The grid loop

New in 0.5.0. The agent doesn't draw with circles and rectangles — it types the frame out, one character per pixel, and draws that text in one call. To fix something, it reads the canvas back in the same format and changes only the characters that are wrong.

It sees the whole shape while writing it, so silhouettes stay even, limbs keep their length between frames, and an edit never spills into its neighbours. Animation is the same trick: copy the last frame's rows, move the arm, draw.

Since 0.6.0 every character stands for one palette entry, the same on every read, so a big canvas can be read and edited in pieces without the letters changing meaning between them. A grid can be as large as the canvas.

Early signal, not a measurement: with the same model and prompts, the mage benchmark went 3 → 4/10 and the road 1 → 3/10; the tree stayed at 2 (compare them).

📚 The pixel-art knowledge base

The agent doesn't improvise a hand at 16 px or a horse's walk — it looks them up.

62 rules · ~400 pixel templates · 2006 palettes — browse them at pixeli.pebbly.space/knowledge 👀

🧍 Craft

🌍 World

0x Core — loop, palette, shading, outlines

5x Creatures — quadrupeds, birds, monsters

1x Technique — lines, anti-aliasing, dithering

6x Environments — skies, water, tiles, buildings

2x Colour — hue-shifted ramps, materials, light

7x Objects & 3D — perspective, isometric, props

3x Characters — anatomy, faces, hands, clothing

8x Effects & UI — fire, magic, particles, fonts

4x Animation — idle, walk, jumps, attacks

9x Style — console eras, tells of generated art

Every rule gives size budgets, a procedure, common mistakes and grid templates the agent pastes straight onto the canvas. Any MCP client reads them as rules:// resources from rules/.

🎨 Palettes: the console classics plus Lospec's 2000 most-downloaded, each credited — preset: "endesga-32", or just a word of the name.

👀 Review by fresh eyes

New in 0.8.0. The agent that drew a sprite is the worst judge of it — it knows what it meant, so it sees it. studio hands the result to pixel-critic, which first writes a cold read (what the picture shows to someone who was never told), then a scored critique. A draft ships at 7/10 with nothing blocking; below that the agent fixes the one thing named, snapshotting first. Each fix goes back to the critic as a blind A/B — old and new under neutral names — and stays only if it wins, so a round can't quietly make good art worse.

It costs time (roughly one more critique per round) and its effect on quality is not yet measured — the thirteen experiment runs behind it are in the gallery, next to the benchmark rows.

🧰 Skills

studio picks these for you. Call one directly when you know the step you want — as /aseprite:<name> in Claude Code and omp, or just ask elsewhere.

Skill

For

Try

🎬 studio

anything — it plans and runs the rest

/aseprite:studio a fox, 32×32, sleeping loop

📝 brief

a vague idea

/aseprite:brief a cosy tavern keeper

🖼️ concept

a design or storyboard before drawing

/aseprite:concept a fire mage, 4-frame walk

📄 new

a fresh document set up right

/aseprite:new 64×64, PICO-8

🎨 palette

colour: a retro look, ramps, cleanup

/aseprite:palette give this a Game Boy look

✏️ draw

making the thing, text included

/aseprite:draw a fox curled up asleep

🌗 shade

flat art that needs light

/aseprite:shade light from the upper left

🦴 rig

splitting a character for animation

/aseprite:rig split the knight

🏃 animate

walk, idle, attack cycles

/aseprite:animate 8-frame walk cycle

🧱 tileset

terrain and autotiles

/aseprite:tileset grass-to-dirt, 16px

🔍 review

an honest critique

/aseprite:review why does this look off?

🩹 fix

changing art without wrecking it

/aseprite:fix make him more menacing

📦 export

files for your engine

/aseprite:export spritesheet for Godot

🗂️ submit

sharing it in the gallery

/aseprite:submit

In Claude Code and omp, four specialists take stages off the main agent: palette-smith, rig-builder, animation-director and the read-only pixel-critic.

🏆 Which model?

Live from the benchmark: every model draws the same fixed prompts and is scored against written criteria. Your model is not on it? Send us a sprite!

Everything drawn with the plugin — with its prompts, models and .aseprite source — is at pixeli.pebbly.space. The benchmark puts every model and plugin version through the same three fixed prompts and scores them against written criteria, and the knowledge base shows the rulebook the agents draw by.

Made something? Ask your agent for /aseprite:submit — it packages the files and opens the pull request.

🔧 Under the hood

your agent  ──MCP──▶  server  ──▶  bridge  ──▶  Aseprite extension
  • 18 tools, grouped by noun (draw, look, layer, frame, export…) instead of ninety — every tool costs context on every turn. Reference.

  • A knowledge base in rules/ — 62 files from line craft to walk cycles, with pixel templates — served over MCP, so every client gets the same craft knowledge.

  • Safe by default. Every action is one undo step. With Aseprite detached, tools refuse instead of editing files on disk. Everything binds to 127.0.0.1. Details · security.

🛠️ Development

pnpm install && pnpm run build
pnpm test                 # TypeScript
pnpm run test:extension   # the Lua handlers, inside a real Aseprite
pnpm gallery:check        # gallery and benchmark data
pnpm web:dev              # the site, locally

Read AGENTS.md before changing anything — it lists the rules that aren't negotiable and the Lua gotchas that already cost someone a day.

📜 Licence

MIT — see LICENSE. Aseprite is a trademark of Igara Studio S.A.; this project isn't affiliated with them.

Available Tools

18 tools
celCelsA
Destructive

Manage cels — one layer's image on one frame. Ops: 'list', 'create', 'clear', 'delete', 'move', 'copy', 'link', 'unlink', 'set' (position/opacity), 'tween', 'oscillate'. 'move' is how you shift a whole limb between frames without redrawing it; 'link' shares one image across frames so a static part of a cycle stays in sync. 'tween' interpolates position or opacity between two frames with an easing curve; 'oscillate' adds a sinusoidal position offset over a frame range — both fill in any missing in-between cels from the start cel, in one transaction.

Inputs: op (required), x, y, dx, +16 more. Returns: cels, frames, sprite, applied

drawDrawA

Apply a batch of drawing operations to one cel, as a single undoable action. Ops: pixels, line, polyline, rect, ellipse, fill, replace, dither, gradient, clear, blit, text, grid, image. Batch aggressively — a whole sprite in one call is normal and correct, and it means the user can undo your work with one Ctrl+Z. Set paletteLock (default true) to snap every colour to the sprite's palette by perceptual distance before anything is written, so you cannot silently widen a curated palette. Ops run in array order, so paint fills before outlines and outlines before highlights. 'text' is laid out here from a bitmap font and expanded to plain pixels before it reaches Aseprite — pass measureOnly: true with only 'text' ops to get each one's ink bounds without touching the sprite, e.g. to centre a label first. 'grid' paints a picture written as text — one character per pixel, a legend mapping characters to colours, the same shape look op="ascii" returns — so you can see the whole silhouette while you write it instead of composing it from shapes. It is the easiest way to draw a small sprite or a whole animation frame, and to edit one: read a region with look op="ascii" layer=… rulers=false, change the rows, and send them back as a grid at the region's x/y. If a script of yours produced the art, don't paste it: pass the rows as grid file, or the 1× PNG as 'image' — same palette lock, same erase/skip rule.

Inputs: ops (required), frame, label, layer, +5 more. Returns: frame, layer, bounds, sprite, +5 more

exportExportA
Destructive

Write game-ready files. Ops: 'png' (single frame), 'gif' (animation), 'spritesheet' (packed sheet plus a JSON atlas with per-frame and per-tag data), 'frames' (numbered PNGs), 'aseprite' (save a copy of the source). Spritesheet is what an engine actually consumes: pass sheetType and byTag to control layout. Exporting does not save the working document — use sprite_manage op 'save' for that.

Inputs: op (required), path (required), tags, trim, +8 more. Returns: op, atlas, files, frame, +4 more

frameFramesA
Destructive

Manage animation frames. Ops: 'list', 'add', 'duplicate', 'delete', 'set_duration', 'activate', 'reorder'. Durations are milliseconds per frame and carry most of the life in a cycle — hold a contact pose longer than a pass pose. Use count to add several at once and durations to set a whole cycle's timing in one call.

Inputs: op (required), count, frame, sprite, +5 more. Returns: frames, sprite, frameCount, activeFrame, +1 more

layerLayersA
Destructive

Manage layers. Ops: 'list', 'create', 'rename', 'delete', 'reorder', 'set' (visibility/opacity/blend/lock), 'group', 'ungroup', 'merge', 'duplicate', 'activate'. Pass batch to run several in one undoable action — building a rig in one call is the normal use. 'duplicate' takes an optional toSprite to copy the layer's cels into another OPEN sprite instead of this one, by frame index; frames past the target's frame count are dropped and reported. A character that will be animated wants its parts on separate layers (head, torso, arm-far, arm-near, leg-far, leg-near) before any frames exist; splitting baked pixels apart later is far more work.

Inputs: op, name, batch, index, +9 more. Returns: layers, sprite, applied, duplicated, +1 more

lookLook at the spriteA
Read-only

See what is actually on the canvas. Ops: • 'preview' — a nearest-neighbour upscaled PNG of the active frame (~1024px long edge). Use for overall read: silhouette, colour, whether it looks like the thing. • 'ascii' — an exact text grid, one glyph per pixel with a colour legend and coordinate rulers. Use to verify precise pixel positions and values, to count cells, or on any client without vision. Reads up to the whole canvas; pass a region to crop. Glyphs are bound to palette indices, so every region and frame of a sprite agrees on what a glyph means; each read's legend lists only the colours it contains, so merge legends when rows from one piece go into another. Only colours outside the palette (listed in offPalette) get per-read glyphs. rulers=false prints the bare rows, which draw kind 'grid' takes back as-is: read a layer, edit the rows, send them at the same x/y. • 'filmstrip' — every frame composited into one image. The only reliable way to review an animation, since a vision model reads just the first frame of a GIF. • 'onion' — the target frame at full opacity over ghosted neighbouring frames, oldest-first. Use to check in-betweens and spacing while animating, without stepping through frames one at a time. Over an opaque background the target hides every ghost — pass layer to onion-skin just the part that moves. • 'diff' — a pixel-level text diff between two frames: '.' unchanged, '-' erased, glyph = the new colour. Use it to confirm exactly what an edit touched. • 'compare' — the reference layer (left, full opacity) beside the art without any reference layer (right), same frame, same scale. Use it when drawing from a concept or storyboard: name the few largest mismatches and fix only those. Draw, then look, then fix. Do not report a sprite finished without looking at it.

Inputs: op, frame, layer, scale, +9 more. Returns: op, rows, text, scale, +14 more

palettePaletteA

Read and shape the sprite's palette. Ops: • 'get' — current palette with per-colour usage counts. • 'set' — write specific indices, or replace the palette wholesale. • 'preset' — load a bundled palette by key: ~2000 of them, the classics (pico8, gameboy, cga, nes…) and the most-downloaded on Lospec (sweetie-16, endesga-32, resurrect-64, aap-64…). An unknown key or a name answers with the matching keys, so 'preset: "gameboy"' or 'preset: "endesga"' is a search. • 'load' — read a .gpl/.hex/.pal/.png palette file from disk. • 'ramp' — generate a hue-shifted ramp from a base colour and append it. Shadows rotate toward blue, highlights toward orange; a ramp that only changes brightness is the clearest tell of machine-made pixel art. • 'analyze' — report ramp structure, contrast, near-duplicate entries and colours used in the art that are not in the palette. • 'extract' — replace the palette with one quantized from the art itself (RGB sprites only). Use to derive a curated palette from a reference image imported at full colour. Decide the palette before drawing. Retro-fitting one onto finished art means repainting.

Inputs: op (required), base, path, steps, +8 more. Returns: op, path, ramp, size, +6 more

preflightPreflightA
Read-only

Check that Aseprite is connected and report what this session can do. Call this FIRST in any pixel-art task and stop if ready is false — every editing tool writes into the user's open Aseprite window ('live') or into a batch Aseprite this server owns ('headless'), and there is no useful fallback when that Aseprite is not there. Pass mode to choose which one the session works with from now on — only because the user asked (e.g. --headless) or the request plainly needs no window (files for CI, a batch of assets). Never switch to get around a live session that is not ready: ask the user instead. Switching loses nothing; each side keeps its documents.

Inputs: mode. Returns: mode, ready, features, switched, +6 more

read_pixelsRead pixelsA
Read-only

Read a rectangular region as structured data: a list of distinct colours plus a row-major index grid. Use this when you need to compute over pixels (sample a palette from art, find a silhouette edge, copy a region) rather than just look at them. For eyeballing, 'look' is cheaper.

Inputs: frame, layer, region, sprite, +1 more. Returns: x, y, grid, width, +4 more

recolorRecolorA

Change colours in a region by intent, staying palette-legal. Ops: • 'shade' — darken or lighten with proper hue shifting (shadows cool, highlights warm). Use this instead of picking a darker hex by hand. • 'snap' — pull off-palette pixels onto the nearest palette colour by perceptual (CIELAB) distance. • 'replace' — swap one exact colour for another. • 'hue_shift' — rotate hue, e.g. to make a colour variant of a finished sprite. • 'desaturate' — drop toward grey, useful for a value check. Operates on a region's distinct colours in one pass, so a 64×64 recolour is one undo step, not four thousand.

Inputs: op (required), to, from, frame, +8 more. Returns: op, sprite, mapping, pixelsChanged

referenceReference imageA

Bring an external image into the sprite as a reference layer, so you can trace proportions or sample colours from it. Ops: 'import' (place an image on a locked, semi-transparent layer above the art), 'sample_palette' (read its dominant colours without importing), 'list', 'remove'. A concept sheet or storyboard arrives as one image: region crops one panel of it, and grid cuts it into panels and puts panel i on frame i of a single reference layer, so each animation frame is drawn over its own storyboard panel. Importing at a different size uses nearest-neighbour; a reference scaled down to 32×32 is a guide for proportion and pose, never a finished sprite.

Inputs: op (required), x, y, fit, +8 more. Returns: op, layer, width, frames, +5 more

selectSelectionA
Idempotent

Read or change the active selection. Ops: 'get', 'none', 'all', 'rect', 'ellipse', 'color' (select every pixel matching a colour), 'invert', 'grow', 'shrink'. A selection scopes draw, transform and recolor, which is usually cheaper and safer than masking by hand.

Inputs: op (required), mode, rect, color, +6 more. Returns: empty, bounds, sprite, pixelCount

sprite_infoSprite infoA
Read-only

Full structured state of a sprite: dimensions, colour mode, palette, every layer (with opacity, blend mode, visibility, group nesting), every frame with its duration, animation tags, slices and the current selection. Read this before editing — guessing at layer names or frame counts is the most common way an agent corrupts someone's file.

Inputs: sprite, includeSlices, includePalette. Returns: id, name, tags, width, +13 more

sprite_manageManage spritesA
Destructive

Open, create, focus, resize, save and close sprites in the running Aseprite session. Ops: 'list' (open documents), 'new', 'open', 'activate', 'save', 'save_as', 'close', 'resize_canvas', 'set_properties', 'slice_create', 'slice_update', 'slice_delete'. Canvas resize keeps existing pixels — pass an anchor to say where they land. Slices name a rectangular region of the canvas for an engine to read back — a 9-patch panel's center, or a hotspot's pivot.

Inputs: op (required), name, path, color, +10 more. Returns: id, op, name, path, +5 more

tagAnimation tagsA
Destructive

Manage animation tags — the named frame ranges a game engine imports as 'idle', 'walk', 'attack'. Ops: 'list', 'create', 'update', 'delete'. Tag every cycle before export; an untagged spritesheet is a pile of frames the engine cannot address.

Inputs: op (required), to, from, name, +5 more. Returns: tags, sprite

tilesetTilesetsA

Work with Aseprite tilemap layers. Ops: • 'list' — tilesets in the sprite. • 'create_layer' — a new empty tilemap layer on a given grid. • 'get' — tile count and, with a path, the tiles as one packed PNG. • 'stamp' — place tiles by grid coordinate. x/y are grid cells, not pixels. • 'pack' — turn a hand-painted mockup layer into a tileset plus a tilemap that reconstructs it exactly. Deduplicates identical cells; tolerance also merges near-identical ones. The canvas must be a whole number of tiles, and the source layer is hidden rather than deleted so you can compare. • 'export' — writes the packed PNG plus the file the engine reads: 'tiled' (.tsj tileset and a .tmj map that uses it), 'godot' (Godot 4 .tres TileSet), or 'json' (tile grid plus the tilemap layout). Painting a level by hand and packing it produces better tilesets than authoring tiles in isolation, because you see the whole picture while drawing. layout: 'blob47' adds a Tiled wangset for autotiling, and assumes the tileset is authored in canonical blob47 order after the empty tile — it refuses rather than writing a wangset that would autotile wrongly. Requires an extension build advertising the 'tileset' feature — check preflight first.

Inputs: op (required), name, path, frame, +8 more. Returns: op, rows, files, layer, +13 more

transformTransformA

Move, flip, rotate or scale pixels on ONE cel — the target layer's image on the target frame. Ops: 'translate', 'flip', 'rotate', 'scale', 'outline', 'crop_to_content'. To transform part of a cel, crop the region out with draw op 'blit' first; there is no selection-scoped transform. Rotation is only clean at 90° multiples — arbitrary angles destroy pixel art, so anything else needs allowLossy. Scaling is nearest-neighbour and integer-only for the same reason.

Inputs: op (required), dx, dy, axis, +10 more. Returns: op, bounds, sprite, pixelsChanged

validateValidateA
Read-only

Lint a sprite against pixel-art rules and report concrete, located problems. Checks: off-palette colours, orphan/stray pixels, broken or doubled outlines, banding, semi-transparent (soft or resized) pixels, empty layers, untagged frames and uniform frame timing; expect adds per-layer frame ranges and layers that must not overlap. Symmetry and cross-frame volume drift are not checked — judge those with look op 'ascii' and 'filmstrip'. Run this before telling the user a sprite is finished. It answers 'is this actually done' with evidence rather than optimism.

Inputs: checks, expect, sprite, strict. Returns: score, passed, sprite, summary, +1 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 18 tools

    Disambiguation4/5

    Each tool owns a distinct resource family (layer, frame, tag, cel, palette, tileset, selection) and the descriptions explicitly route between them, so misselection is unlikely. A few genuine overlaps remain: `look` vs `read_pixels` (eyeball vs compute), `draw` op 'replace' vs `recolor` op 'replace', and `sprite_info` vs `sprite_manage` op 'list'/'set_properties' — all disambiguated in prose rather than by the surface itself.

    Naming Consistency4/5

    Everything is snake_case and readable, with no camelCase or style mixing. However the set mixes bare verbs (draw, look, validate, select, transform, recolor, export) with bare resource nouns (layer, frame, tag, cel, palette, reference, tileset) and a couple of `noun_verb` compounds (sprite_info, sprite_manage, read_pixels), so there is no single predictable pattern to infer a new tool's name from.

    Tool Count4/5

    18 is at the upper edge of comfortable, but each tool maps to a real Aseprite concept (a resource type or a lifecycle phase) and most carry their own op multiplexing, so no tool feels redundant. It would be defensible at ~15 if `sprite_info` folded into `sprite_manage` and `reference` merged with palette sample/extract.

    Completeness4/5

    The surface covers the full pixel-art lifecycle: connect (preflight), inspect, draw, select, transform, animate (frame/cel/tag), palette, recolor, reference-trace, validate, and export including tilesets and atlas JSON. The only real gaps are explicitly acknowledged dead ends — no undo/redo control and no selection-scoped transform (you must blit-crop first), plus no direct save/undo-after-batch verification flow.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to create and edit pixel art and animated sprites in Aseprite through 104 tools covering drawing, layers, animation, palettes, tilemaps, exports, visual analysis, and raw Lua scripting.
      116
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to draw live in Aseprite, creating and editing sprites, using drawing tools, managing layers and frames, and viewing results as images.
      23
      12
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables an AI agent to create and edit pixel art directly in Aseprite — building sprites, layers, frames, animation tags and palettes, painting pixels and primitives, inspecting the rendered result, and exporting GIFs or sprite sheets. All work lands on real .aseprite files that can be opened and edited by hand.
      43
      1
      MIT