Install Mode 8
Install Mode 8 with the Studio and the MCP server, check that it works, and keep it up to date.
Mode 8 is a Python package. Its core needs only Pillow and NumPy, so it installs in seconds on a laptop, a build server or a CI runner. The Studio (the browser editor) and the MCP server (for coding agents) are optional extras. A GPU is needed only for AI generation, and you can add that later: see Set up local AI.
What you need#
- Python 3.11 or newer, on Linux, macOS or Windows.
- git, to get the source.
Install#
One-line install (recommended)#
With uv or pipx, one command installs Mode 8 into an isolated environment and puts mode8 on your PATH across Linux, macOS, and Windows — no virtual-environment activation needed:
uv tool install "mode8[all] @ git+https://github.com/danexpo/mode8.git"Or with plain pip inside an existing environment:
pip install "mode8[all] @ git+https://github.com/danexpo/mode8.git"From a local clone#
Clone the repository if you want to read the source, hack on Mode 8, or keep SKILL.md on disk:
git clone https://github.com/danexpo/mode8.git
cd mode8
python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[all]"On Windows, activate the environment with .venv\Scripts\activate (or skip activation entirely by using uv tool install above).
The extras are:
| Extra | Adds | You need it for |
|---|---|---|
studio | Starlette, Uvicorn, watchfiles, websockets | mode8 studio, the browser editor |
mcp | The MCP Python SDK | mode8 mcp, the server for coding agents |
all | Both | Everything |
For a CI job that only exports art, pip install -e . installs the core alone. If you later run mode8 studio or mode8 mcp without its extra, Mode 8 stops with an error that names the exact pip install command to run.
Note
This manual writes commands as mode8 .... That works while the virtual environment is active. In another shell, activate it again, or call Mode 8 by its full path, such as ~/mode8/.venv/bin/mode8.
Check that it works#
$ mode8 --version
mode8 1.0.0Run mode8 on its own for the list of commands, grouped by task:
$ mode8
Mode 8 1.0.0 · pixel art for games: draft, generate, animate, export. Offline.
Usage: mode8 <command> [options] · mode8 help <command> · mode8 --version
Start init Create a project, or a ready-to-run starter (--template)
list List palettes, archetypes, tiles, rigs, templates, ...
doctor Check ComfyUI, models, extras; says how to fix
setup Download the AI models into a ComfyUI install
Create draft Pose blockout: side, top-down, portrait or isometric
tile Tiles, props, weapons and HUD portraits
autotile Blob terrain sets + Godot TileSet / Tiled TSXShow 32 more lines
ui 9-slice UI kit (dialogs, buttons, bars) + Godot theme
font Bitmap font: BMFont .fnt + PNG atlas
fx Palette-locked effect frames (hits, sparkles, smoke)
pixelize Snap any image onto a pixel grid and palette
recolor Palette swaps and a Godot palette shader
Animate parts Part map (head, torso, limbs) for a sprite
anim Zero-boil animation frames from a master sprite
Check lint Check a sprite (alpha, size, palette, shape); --fix repairs
verify Check exported assets and animation stability
Export export Atlas, Godot, GIF, Pixi, Phaser, Unity ... from frames
maps Normal + emission maps for 2D lighting
aseprite Import or export .aseprite files
AI gen Draft-guided pixel art from a prompt (local ComfyUI)
icons A matching set of inventory icons (local ComfyUI)
inpaint Regenerate a masked region, keep pinned pixels
cast Batch-generate a style-locked cast from a manifest
Project import Bring a sheet, PNG folder or .aseprite into a project
layers Edit an asset's layer stack (journaled, undoable)
schema Machine-readable contract (JSON)
Servers studio Pixel-art editor and AI workbench in your browser
mcp MCP server for coding agents (stdio)
Output: --human | --json human on a terminal, JSON when piped; MODE8_FORMAT
-q, --quiet nothing on success; errors and failed checks print
Begin: mode8 init my-game --template platformer
Manual: https://mode8.dev/manual/Then make something. A pose draft needs no project, no GPU and no network:
$ mode8 draft knight_right --out hero.png
✓ Drafted knight_right (64x72) → hero.png
Next:
mode8 gen 'armored knight with plumed helm, side view, facing right' --draft hero.png --out sprites/hero.png # needs ComfyUI
mode8 anim hero.png --rig humanoid --out-dir frames/hero
mode8 studio .Every command answers like this on a terminal: what it did, where the file went, and the next commands worth running. When a program reads the output instead (a pipe, a script, an agent), the same command prints one JSON report:
$ mode8 draft knight_right --out hero.png --json
{"ok": true, "out": "hero.png", "archetype": "knight_right", "size": [64, 72]}--human and --json force one or the other, and MODE8_FORMAT=json makes JSON the default. Skill and scripts explains the report and the exit codes.
Check the AI setup#
mode8 doctor checks everything AI generation needs: ComfyUI, its custom nodes and the model files. You can skip it until you want to generate; Set up local AI walks through it.
Update#
Pull and reinstall:
cd mode8
git pull
pip install -e ".[all]"A project remembers the format version that wrote it. A Mode 8 older than the project refuses to open it rather than damage it, with a ProjectVersionError: update Mode 8 when you see one. Stability and versioning lists what a release may change.
Next#
- Quickstart: a starter game, the Studio and your first export, with no GPU.
- Set up local AI: ComfyUI and the models, for
mode8 gen. - The agent skill: teach Claude Code or another agent to drive Mode 8.