Get an AutoSprite API key
Sign in to AutoSprite and create an API key.
Open the API Keys pageAdd 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
Lets create a small robot with idle, run and jump animations.




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
Connect AutoSprite to Codex with a simple MCP setup. Add one configuration block and start creating game sprites directly from Codex.
Sign in to AutoSprite and create an API key.
Open the API Keys pageAdd the TOML block below to ~/.codex/config.toml. The same config powers the CLI and IDE extension.
Restart Codex, run codex mcp list, and confirm autosprite is listed as connected.
[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
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
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.
# 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
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.
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.
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.
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.
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