The Studio
The pixel editor and AI workbench that runs in your browser, on the same project files as the CLI and your agents.
The Studio is Mode 8's pixel editor. It runs in your browser, works on a project folder on your disk, and edits the same files as the command line and any agent connected over MCP. Paint with palette-locked tools, build animation frames from your art and play them on the canvas, generate candidates with the local AI, check the art and export it, all without leaving the page. Everything except generation works with no GPU and no network.

Start the Studio#
The Studio needs the studio extra (pip install -e ".[all]" installs it). Point it at a project folder:
$ mode8 init my-game --template platformer
✓ Created the platformer starter in my-game/
26 assets · palette nes_master_gothic · lint 26/26 passed
hero, slime, ground, wall, window, pillar, ledge_left, ledge, ledge_right, stairs, +6 more + 10 UI pieces
UI kit → my-game/godot/art/ui/ · font → my-game/godot/art/font/
Godot project → my-game/godot/ (runs main.tscn)
Next:
cd my-game
godot -e --path godot
mode8 studio .
mode8 export hero
$ cd my-game
$ mode8 --json studio .
{
"ok": true,
"url": "http://127.0.0.1:8420/?token=dd8AEDXr5T4_FPOrpv9yP2qdDlC_AXMW",
"lan_url": null,
"allowed_hosts": ["127.0.0.1", "::1", "localhost"],
"host": "127.0.0.1",
"port": 8420,
"token": "dd8AEDXr5T4_FPOrpv9yP2qdDlC_AXMW",
"project_root": "/home/you/work/my-game",
"project_initialized": false,
"comfy_url": "http://127.0.0.1:8188",
"mode8_version": "1.0.0",
"license": "AGPL-3.0-only",
"source_url": "https://github.com/danexpo/mode8"
}It prints one line when it is ready, with the address it serves, and opens that address in your browser. The address carries a session token: the Studio only answers requests that present it, so another page or program on your machine cannot edit your project behind your back. Keep the terminal open while you work; Ctrl+C stops the Studio.
A folder that is not a project yet becomes one ("project_initialized": true in the ready line):
$ mode8 --json studio ~/work/new-game --port 8500 --no-browser
{
"ok": true,
"url": "http://127.0.0.1:8500/?token=QqcZp3fg8VX9Bdjs9TWQedGjEfoKG-sF",
"lan_url": null,
"allowed_hosts": ["127.0.0.1", "::1", "localhost"],
"host": "127.0.0.1",
"port": 8500,
"token": "QqcZp3fg8VX9Bdjs9TWQedGjEfoKG-sF",
"project_root": "/home/you/work/new-game",
"project_initialized": true,
"comfy_url": "http://127.0.0.1:8188",
"mode8_version": "1.0.0",
"license": "AGPL-3.0-only",
"source_url": "https://github.com/danexpo/mode8"
}--portpicks another port than 8420, for a second Studio or when 8420 is taken.--no-browseronly prints the address, for a remote machine or a browser you choose.--comfy-urlpoints the Generate tab at a ComfyUI other than the project's (see Set up local AI).
On a tablet or another computer#
By default the Studio listens on 127.0.0.1 only. To paint from a tablet on your network, bind every interface with mode8 studio . --host 0.0.0.0: the ready line then also has a lan_url with this machine's address, and the Studio warns that anyone who can reach it and holds the token can edit the project. If you reach it by a name it does not know, such as studio.local, allow that name with --allow-host studio.local.
Find your way around#
| Area | What it is for |
|---|---|
| Assets | every asset in the project, with search; New asset makes a canvas sized for an art type (sprite 64x72, top-down, portrait, isometric, scene, icon, tile), optionally with its draft, or a UI kit piece. The asset menu renames, duplicates, resizes the canvas or deletes |
| Tool rail | the drawing tools (below) |
| Canvas | the asset, drawn at an integer zoom over a checker backdrop. The tabs above it choose what you edit: Master (the art), Draft, Parts, Pins, Frame (one animation frame) and Boxes (the gameplay boxes of each frame) |
| Timeline | the animation frames: pick a frame, Play it on the canvas, set the playback speed, rebuild the frames from the art |
| Palette | the asset's palette, the primary and secondary colors, editing and importing palettes, palette swaps |
| Layers | the asset's layer stack |
| Generate, Export, Checks, History | the AI pane, the engine exports, the checks and the journal of every edit |
The status bar shows the canvas size, the pixel under the pointer, whether ComfyUI is reachable, and the save state. Theme switches between dark and light and sets the interface size.
Paint#
Every tool paints only palette colors, so nothing off-palette can creep in. A stroke is saved to disk as soon as you finish it; there is no Save button. Pixels you paint on the master are pinned, so AI regeneration keeps them (the Pins tab shows and edits the pin mask).
Press ? in the Studio for the full list of shortcuts. The ones you will use most:
| Tool or action | Key |
|---|---|
| Pencil, eraser, fill | B, E, G |
| Shade (right-drag lightens) | U |
| Line, rectangle, ellipse | L, R, C |
| Filled or outline shapes | F |
| Move the layer | W, then drag or use the arrows |
| Select | Q |
| Eyedropper | I, or hold Alt |
| Mask a region to repaint with AI | M |
| Pin pixels | P |
| Brush size | [ and ] |
| Dither, mirror | D, X |
| Swap primary and secondary color | S |
| Undo, redo | Ctrl+Z, Ctrl+Y |
| Pan, zoom | wheel or Space+drag; Ctrl+wheel, + and - |
| Fit the art to the view | 0 |
| Grid, backdrop | H, K |
| Tiled 3x3 view, to paint across the edges of a seamless tile | T |
| Draft ghost, onion skin | V, O |
| Play or pause the animation | Enter |
| Previous or next frame | , and . |
| Master, Draft, Parts, Pins, Frame tab | 1 to 5 |
A selection (Q, or Ctrl+A for everything) can be moved, nudged with the arrows, copied, cut, pasted and flipped (Shift+H, Shift+V).
Palettes#
The palette panel holds the asset's colors. Click a swatch for the primary color, right-click for the secondary. Edit opens the palette editor: recolor, reorder, add or remove colors, or add a four-step shading ramp around a color. An edited palette is saved to the project's palettes/ folder as a .gpl file, where the CLI finds it too. Import reads a .gpl or .hex file, or drop one on the panel.
To move the art onto another palette, pick it and press Swap: the canvas previews the result first, and the swap itself is one undoable edit. Palettes explains how colors are matched.
Layers#
Add layer puts a blank layer above the active one; the layer menu duplicates, deletes, moves, merges down and flattens. Click a layer's row to paint on it, double-click its name to rename it. The master is always the visible layers flattened, so every other tool, and every engine export, sees one image. Co-editing explains layer stacks and how the CLI and agents edit them.
Animate#
The timeline holds the asset's frames. Pick a rig and press Rebuild frames to make the walk, attack and idle frames from the art: the rig moves the art's pixels instead of repainting them, so nothing flickers between frames. Paint on any frame in the Frame tab to fix it by hand; your frame edits are kept and re-applied when you rebuild. Play (Enter) animates the canvas itself at the speed you set, and onion skin (O) shows the previous frame in blue and the next in green.
When the art changes after the frames were made, the timeline marks them as stale until you rebuild. Parts paints the part map that lets the rig move each limb on its own, and Boxes draws the hitbox, hurtbox and body of each frame for the Godot scene export. Animation covers rigs, part maps and timing.
Generate with AI#
The Generate tab needs a running ComfyUI (the status bar says whether it is reachable; Set up local AI sets it up). It has two modes:
- Create renders new candidates from the draft (Follow the draft) or from the prompt alone. Pick an art type, the number of candidates (1 to 4) and whether to add an outline and keep your pinned pixels.
- Repaint region regenerates only the pixels you masked with the mask tool (M), and leaves everything else, including pins, as it is.
A job shows its stage, the candidate it is drawing and the time it has taken while it runs. The finished candidates appear under the canvas, beside the current art; drag the divider to compare one with the art, then accept the one you want. Accepting is one edit like any other, so you can undo it. Sprites explains drafts, prompts, candidates and the checks that rank them.

Check and export#
Checks runs the same checks as mode8 lint on the asset: transparency, palette, size, and the craft checks (stray pixels, uneven lines, muddy ramps). Check marks (N) marks the problem pixels on the canvas, and Auto-fix repairs what can be repaired automatically, as one undoable edit. The craft checks are advice and never block an export.
Export writes the asset's frames to exports/<asset>/ in the formats you tick: the atlas, Godot SpriteFrames and scenes, a preview GIF, PixiJS, Phaser, LÖVE, CSS, an indexed PNG and lighting maps. The result lists every file it wrote, with buttons to open the folder or download everything as one zip. It runs the same exporter as mode8 export; see Exporting.

Undo, history and live sync#
Every edit, from a stroke to a palette swap, goes into the project's journal, the same one the CLI and agents write to. Undo and Redo walk back through it, and History lists each edit with who made it: you, an agent or the CLI. Undo never deletes an asset.
The Studio watches the project folder. When the CLI or an agent changes an asset you have open, the canvas updates by itself. If it changes the very pixels you are painting, the Studio stops and shows a banner instead of overwriting either side: your pixels stay on screen until you choose which version to keep. Co-editing explains the journal and how humans and agents share a project safely.
Next#
- Sprites: drafts, generation and candidates.
- Animation: rigs, part maps and timing.
- Co-editing: working on the same project as an agent.