AutoSprite

Sprite Sheet Generator for Codex

Add one block to ~/.codex/config.toml. Codex can then create and animate characters and assets, saving engine-ready spritesheet PNGs directly to your project.

Free to try today

Jump to the two-minute setup

Codex — autosprite-demo

Lets create a small robot with idle, run and jump animations.

AutoSprite generated small robot idle animation loop
idle
AutoSprite generated small robot run animation loop
run
AutoSprite generated small robot jump animation loop
jump
Exported transparent PNG sprite sheet with aligned small robot jump frames

robot_jump.json — 2 of 25 frames

{
  "frames": { "0": { "x": 0, "y": 0, "w": 256, "h": 256 }, "1": { "x": 256, "y": 0 } },
  "meta": { "frame_size": [256, 256] }
}

idle, run and jump are ready in your project.

Two-minute setup

How to generate spritesheets in Codex

Connect AutoSprite to Codex with a simple MCP setup. Add one configuration block and start creating game sprites directly from Codex.

02

Paste the recommended config

Add the TOML block below to ~/.codex/config.toml. The same config powers the CLI and IDE extension.

03

Verify the connection

Restart Codex, run codex mcp list, and confirm autosprite is listed as connected.

~/.codex/config.toml
[mcp_servers.autosprite]
url = "https://www.autosprite.io/api/mcp"
http_headers = { "Authorization" = "Bearer YOUR_API_KEY" }

Replace YOUR_API_KEY with a key from the API Keys page. Keys start with vspk_.

New to MCP? It lets Codex use AutoSprite directly. Once connected, Codex automatically chooses from 30 tools to create and animate your game assets. Learn how AutoSprite MCP works.

Prompts

Ready-to-use prompts

Use these prompts with your coding agent. It's as simple as that!

>Make me a repair robot and rig it in 3D with idle, walk and roll

>Create a neon ninja with a fast run animation

>Animate a young witch casting a magic spell with her cat

>Create a red pixel-art dragon with a fast run animation

>Animate a forest druid walking with a glowing staff

>Make my rpg character dance

Pro tip

Put the art pipeline in AGENTS.md

AGENTS.md is Codex's standing instruction file for a repo. Add a short art-pipeline section and every future task reaches for AutoSprite instead of inventing programmer art.

  • Applies to every task in the repo, and every teammate running Codex.
  • Keeps exports in a consistent folder with consistent frame sizes.
  • Stops Codex from committing placeholder rectangles or inline SVGs.
AGENTS.md
# AGENTS.md

## Art pipeline
When this game needs 2D character sprites or
animations, use the AutoSprite MCP tools
(create_character, generate_spritesheet).
Do not draw programmer art or embed SVGs.
Save exports under assets/sprites/ and read
the JSON atlas before writing animation code.

FAQ

Codex sprite generation questions

What is MCP, and what does AutoSprite add to Codex?

MCP (Model Context Protocol) is an open standard that lets a coding agent call external tools. AutoSprite runs as a hosted MCP server over HTTP, so once it is connected Codex can create a character, animate it, and export a transparent PNG spritesheet plus a JSON atlas — then write the code that loads them into Unity, Godot, Phaser, or another engine.

Why isn't Codex seeing the AutoSprite tools?

The usual culprit is TOML syntax: the section must be [mcp_servers.autosprite] with url and http_headers exactly as shown, in ~/.codex/config.toml. Restart the CLI after editing — it reads the config at startup. If the server is listed but every call fails, the bearer token is usually still the YOUR_API_KEY placeholder.

Does this work in the Codex CLI, the IDE extension, and the Codex app?

The CLI and IDE extension both read ~/.codex/config.toml, so they get AutoSprite from the same block. For cloud tasks, check your workspace's MCP settings — remote HTTP servers like AutoSprite work anywhere Codex allows MCP connections.

What data leaves my machine?

Only what Codex puts in a tool call — your prompt, and any image you explicitly ask it to upload. AutoSprite is a hosted HTTP MCP server: it does not read, index, or receive your codebase, and it has no access to your filesystem. Codex writes the returned files into your working tree itself.

Your next game asset starts with a prompt.

Try AutoSprite free in your browser, then add one line to connect the AutoSprite MCP to your coding agent. From there, the next character, animation, or game asset you need can be created directly from your task description.

Free in the browser — 15 credits a month, no card. MCP and API access are included with Pro at $29/mo. See pricing