June 15th, 2026

Generate game sprites in OpenCode with the SpriteCook plugin

Add the SpriteCook MCP server and skills to OpenCode with one command, then generate sprites, animations, and tilesets straight from the agent. Setup takes a couple of minutes.

Pixel art goblin holding a gold pitchfork generated with SpriteCook, on the SpriteCook for OpenCode plugin setup guide

Generate game sprites in OpenCode with the SpriteCook plugin

OpenCode can generate game art while it writes your game. The SpriteCook setup adds the hosted SpriteCook MCP server and a set of workflow skills to OpenCode, so you can ask your agent for a sprite and the file lands in your project.

One command sets it up. If you're on a different editor, the agent setup guide covers those.

What you need

Run the install command

Toggle the terminal on.

Toggling the terminal on in OpenCode

Paste the command for your system and hit Enter.

macOS or Linux:

bash -c "$(curl -fsSL https://spritecook.ai/install-opencode.sh)"

Windows (PowerShell):

iwr -useb https://spritecook.ai/install-opencode.ps1 | iex
Pasting the SpriteCook install command into the OpenCode terminal

The installer adds a spritecook entry under mcp in your global OpenCode config and copies the SpriteCook skills into ~/.config/opencode/skills. Everything else stays as it is. If your config can't be parsed safely, the installer leaves the file alone and prints the snippet for you to paste in yourself.

Try it

Ask the agent for something.

Asking the OpenCode agent to generate a slick goblin with a gold pitchfork

The first time the agent reaches for a SpriteCook tool, OpenCode asks you to sign in. If you see that prompt, open the link it prints and approve the access. You only do this once. No API key needed. (This run was already signed in, so it went straight to work.)

The skills also teach the agent to fill in the details that make a better asset. It may ask a quick question or two, like which perspective fits your game.

OpenCode asking which perspective to use for the goblin character

Answer, and the agent generates the sprite and saves it into your project.

OpenCode confirming the generated goblin sprite with its character details The generated pixel art slick goblin holding a gold pitchfork

From here you can ask for whatever your game needs. The same options from the web app are available, so these guides apply:

Add it manually instead

If you'd rather wire it up by hand, add the SpriteCook server to the mcp section of your opencode.json and copy the skills from the GitHub repo. The repo README has the exact snippet.

That's the whole setup. Go make something.

Got questions? Building something?

Drop into the Discord. People post WIPs, share prompts that actually worked, and help each other debug weird outputs. We're in there daily too.

Join the Discord