Mode 8 — Pixel art
that ships.

Offline pixel-art studio, CLI, and MCP server for 2D games. Block out a pose, paint it on your own GPU, animate it without frame flicker, and export to Godot, PixiJS, Phaser, LÖVE, or CSS.

Runs on your GPU. No cloud, no credits. No “Upgrade to Pro to unlock transparent PNGs.” · AGPL-3.0

A castle hall at dusk, captured in Godot 4: a knight in mid-stride on a grassy floor, a wolf beside him, a slime and a chest on a raised ledge reached by a stone stair, two wall torches, two arched windows showing the evening sky, and a HUD with a health bar and two item slots.
A real Godot 4 scene built only from Mode 8 exports. Re-render it: site/tools/hero_scene.

00 Genres

Eight art types, one pipeline

Pick an art type — from side-view sprites and isometric props to 16-color Bayer-dithered pc98 cutscenes and transparent vn_bust characters — and Mode 8 sets the canvas, keying, outline, and palette handling to match. Every default yields to a flag.

A wide pixel-art harbor town at dusk with moored fishing boats, warm lit windows, and a lighthouse on the headland.
--art-type scene254×145
A dialogue portrait of a young airship pilot with brass goggles on her forehead and a green scarf.
--art-type portrait96×96
A side-view armored knight with a crimson cloak and a raised sword. A side-view grey wolf. An amber slime.
--art-type sprite64×72
A small isometric stone cottage with a terracotta roof and a lit window.
--art-type isometric96×96
A top-down RPG ranger in a green hooded tunic.
--art-type topdown48×48
--art-type icon32×32

Generated on a local GPU through ComfyUI by mode8 gen, shown at their own pixels, enlarged by whole numbers. Each image is one run of the default command, and every candidate of that run is one click away. The prompts and seeds are in media_manifest.json.

Complete scenes across genres

A 1990s PC-98 cyberpunk noir visual novel cutscene: a rainy midnight Tokyo noodle alley backdrop, a trench-coated anime detective bust on the right, and a double-bordered indigo dialogue box reading REIKO: Rain washes out every trail here. Good thing I remember faces.
PC-98 Visual Novel Cutscene --art-type pc98 + vn_bust + ui --style pc98 + font · 256×160 · 15/16 colors (pc98_16)
A stepped three-tier isometric tactics battlefield diorama in warm Mediterranean terracotta: a teal armored knight, a black mage in front of a stone house, and a hooded archer on a tiled courtyard with teal move-range and crimson attack-range diamonds plus beveled corner HUD panels.
Isometric Tactics Battlefield --art-type isometric units + tile iso_* + ui --style bevel + font · 320×180 · 24/24 colors (isometric_terracotta)

01 Blockouts

Pose blockouts

A text prompt cannot hold a pose, a facing, or a size. Start from a shaded CPU blockout and let your GPU repaint it while keeping the pose, proportions, and canvas locked.

The knight's pose blockout
Blockoutmode8 draft knight_right
The generated knight sprite
Spritemode8 gen --draft

Hold Compare, or press and hold the sprite, to see the blockout in its place.

mode8 lint pass

    Prompt
    Recipe
    64×72 · nes_master_gothic · seed 0

    Read from the reports of mode8 gen and mode8 lint for these exact files.

    Every candidate of that run

      One run renders a few candidates and ranks them. You make the final call; the one that is shown is marked. Blockouts come from mode8 draft: 20 archetypes, side-view, top-down, flying, isometric and sci-fi, or your own concept art with --source.

      02 Animation

      Flicker-free animation

      Diffuse every frame separately and faces, armor, and colors shimmer from frame to frame. Mode 8 generates one master sprite and articulates its pixels deterministically on the grid.

      wolf · idle
      slime · idle

      Playing knight_atlas.png with the frame rects, timing and boxes from knight_atlas.json, exactly as mode8 export wrote them.

      • 7 built-in rigs: humanoid, quadruped, boss quadruped, flyer, top-down, mech and vehicle, or your own --rig-file.
      • Hand edits survive: per-frame overrides are sparse and non-destructive, so re-rigging keeps them.
      • Honest checks: airborne frames like jump leave the foot line on purpose, and --check-anim will say so. The manual explains.

      03 Palettes

      Palette-locked, instant swaps

      Every sprite ends up on a fixed palette with clean, binary alpha. That is why mode8 recolor can map every color onto another palette, dark to dark and light to light, and hand back the same pixels in new colors. Nothing is regenerated.

      Each variant is a separate real run of mode8 recolor. Same silhouette, pixel for pixel; no off-palette pixel on any of them. Need the swap at runtime? --shader also writes a lookup texture, a Godot 4 .gdshader and a ready ShaderMaterial: set variant_index and the sprite changes clothes.

      16 bundled palettes, and yours

      Hover or focus a palette to try it on the logo. Import .gpl or .hex files, edit ramps live in the Studio, or pass --colors N for an auto-palette.

      04 Worlds

      Tiles, autotiles, and VFX

      Diffusion is bad at 16-pixel bricks, so Mode 8 does not ask it. Terrain, edge sets and effect frames are drawn deterministically on the CPU, locked to your palette, identical on every run.

      A small top-down map: grass crossed by a dirt path, a pond with shore tiles, a cobbled plaza and a few props, all in one palette.
      One map, laid out from the pieces beside it: twenty by twelve tiles, one palette.

      Each terrain comes with interchangeable variants, so a field does not repeat as a lattice, and a 47-tile edge set for every way it can meet its neighbours. The samples are painted from those edge sets.

      Paint with them

      Paint here. Click or drag to add and remove terrain. The page looks up each cell's 8 neighbours in the mask_to_tile table from the exported JSON and draws one of the 47 real tiles. The sheet comes from mode8 autotile grass --layout blob47, which also writes a Godot TileSet with collision and a Tiled .tsx.

      VFX from mode8 fx

      Six are derived from your sprite and reuse only its colors. The rest are drawn from scratch on a palette you name.

      05 UI & Lighting

      UI kits, pixel fonts, and 2D lighting

      The parts of a game that are not sprites: HUD and menu pieces that stretch cleanly, a bitmap font to put words on them, and normal maps so a 2D light can find the edges.

      9-slice UI kits and a bitmap font

      Four kit styles from mode8 ui, each in any palette, and a font from mode8 font. The frame stretches with CSS border-image, sliced at the margins from ui_ui.json; the words are drawn glyph by glyph from the exported BMFont atlas. Godot gets a ready Theme.

      06 Engines

      Six engine exports

      One export packs the atlas once and writes what each engine wants to read, all sharing one feet pivot so nothing slides between animations. PixiJS and Phaser exports are tested against the real, pinned engines.

      stable godot, godot_scene, normal, emission

      SpriteFrames, or a playable CharacterBody2D scene with a collision shape and a hitbox that is live only on attack frames. Plus CanvasTexture lighting and an emission shader.

      gdscript
      $AnimatedSprite2D.sprite_frames = load("res://assets/knight.tres")
      $AnimatedSprite2D.play("walk")
      # or instance the playable scene from --formats godot_scene:
      add_child(load("res://assets/knight.tscn").instantiate())

        One command, all of it

        Already have art? Bring it.

        Sprite sheets, strips, frame folders and .aseprite files import as project assets. Tags become animations, a palette is extracted if you do not name one, and Aseprite layers can stay layers.

        bash
        mode8 import art/knight_frames \
          --project-root my-game --name squire

        Going the other way, mode8 aseprite export writes real .aseprite files with its own pure-Python writer, layers included.

        07 Studio & MCP

        Studio, CLI, and MCP on the same files

        A Mode 8 project is plain files on disk: PNGs, JSON sidecars and one journal. Project edits from the Studio, the CLI and the MCP server all go through that journal, so each one is attributed, conflict-checked and undoable, whoever made it.

        Mode 8 Studio with the knight open: tools on the left, the sprite on a checkered canvas, the palette, two layers and the Checks panel on the right, and the animation frames in a timeline along the bottom
        Mode 8 Studio with the knight from this page open. A real screenshot at 1280×800, retaken by make_showcase.py --studio-shot.

        A pixel editor in your browser

        Mode 8 Studio is local and needs no build step. It locks your strokes to the palette, keeps layers and an animation timeline, lints as you draw, and holds AI repaints in a tray until you accept one. It works with no GPU at all.

        bash
        mode8 studio my-game

        Any asset can become a stack of up to 32 layers. The master is always the flattened stack, so every export, lint and animation step keeps working.

        Tour the Studio · Layers and history

        Agent-first, not agent-only

        mode8 mcp is a stdio MCP server with 28 tools. Results are structured JSON plus inline PNG previews, so a vision-capable agent can look at its own drafts, contact sheets and atlases.

        json · typical stdio client config
        {
          "mcpServers": {
            "mode8": {
              "command": "mode8",
              "args": ["mcp"]
            }
          }
        }

        A drop-in SKILL.md teaches Claude Code, Codex and other agents the pipeline and how to react to each exit code. Wire it up.

        One journal, three kinds of hands

        The last entries of a real project's .mode8/history.jsonl:

          Written by this site's build script, which passes --actor to play each part.

          Every entry can be undone, from the Studio, the CLI or an MCP tool. Writes carry an expected_sha256: if a human changed the file since the agent read it, the agent gets a ConflictError instead of a silent overwrite. How co-editing works.

          100% local. Open weights. No account.

          Generation runs through your own ComfyUI with Apache-2.0 models and no custom nodes: FLUX.2 Klein 4B repaints blockouts and masked regions, Z-Image-Turbo paints scenes, portraits, PC-98 cutscenes and icons from text. mode8 setup fetches the weights; mode8 doctor says what is missing.

          No GPU? Everything except gen, inpaint, cast and setup runs on the CPU with Pillow and NumPy, the whole Studio included.

          Offline quickstart · Set up ComfyUI

          Same brief, 6 models — no sugar-coating

          We gave Claude Opus 5.5, Gemini 4 Neon, Qwen 3.8 FN, DeepSeek V4.1 Flash, Inkling 2 Mini, and a 6.6 GB Qwen3.5-9B consumer-GPU quant the exact same three briefs. Unedited pixel art, raw lint scores, and real failures.

          Compare all 6 models
          Claude Opus 5.5 PC-98 cutscene output
          Claude Opus 5.5Frontier · PASS
          Gemini 4 Neon PC-98 cutscene output
          Gemini 4 NeonFrontier · PASS
          Qwen 3.8 Flash Next PC-98 cutscene output
          Qwen 3.8 Flash NextLocal · PASS

          08 Contract & Quickstart

          Scriptable by default

          On a terminal every command answers in a few plain lines. Piped, or with --json, the same command reports in one JSON shape, fails in one error envelope and exits with one of four codes. Scripts, agents and build pipelines can lean on that.

          What is stable and what is experimental · CONTRACT.md

          Exit codes
          0OK. Done; every check passed.
          1A check failed. The command ran and the report says "pass": false. Fix the art, not the command.
          2Bad input. UsageError, InputError or NotFoundError. Nothing was written.
          3Runtime. IO, ComfyUI, an edit conflict. Report it; retry only what is transient.

          mode8 schema prints the whole surface as one JSON document: 27 commands with every flag, 28 MCP tools, the Studio routes, the export formats and every limit. It is the source of truth for scripts and agents, and the tests hold it still.

          Quickstart

          Three blocks. Paste each one as it is.

          1. 1 Install

            One command puts mode8 on your PATH with Pillow, NumPy, Studio, and MCP. No uv? Use pip install with the same URL, or clone the repo.

            bash · Python 3.11+
            uv tool install "mode8[all] @ git+https://github.com/danexpo/mode8.git"
          2. 2 Make a starter game, no GPU

            A project with a hero, a slime, tiles, props, a UI kit, a font and a Godot 4 project that already runs: godot -e --path my-game/godot. Open the art in the pixel editor with mode8 studio my-game.

            bash
            mode8 init my-game --template platformer
            # Re-pack the hero after an edit, with a preview GIF per animation
            mode8 export my-game/assets/hero/frames \
              --out-dir my-game/exports/hero --name hero \
              --formats atlas,godot,gif \
              --animations my-game/assets/hero/master.m8.json
          3. 3 Paint a sprite on your GPU

            Block out the pose, then let the model paint it. No ComfyUI yet? Set it up, or let mode8 setup fetch the open weights.

            bash · needs ComfyUI
            # Is ComfyUI up, and which models are missing?
            mode8 doctor
            mode8 draft knight_right --out drafts/knight.png
            mode8 gen "an armored knight with a crimson cloak" \
              --draft drafts/knight.png \
              --out assets/knight.png --sheet knight_sheet.png

          Go make something small and square.

          The manual walks from install to a playable Godot scene, with every example run for real.

          License

          • The toolkit (mode8/, SKILL.md) is AGPL-3.0-only. Distribute a modified version or offer it as a network service, and you share your source under the same license.
          • Your art is yours. Mode 8 claims no copyright on anything you make. We don’t want it, we don’t train on it, and we don’t even have a cloud to put it on.
          • The templates and palettes (mode8/templates/, mode8/palettes/) are MIT, so the HUD scripts and color files drop into commercial games without copyleft.

          The whole run