Codex CLI, asking for your game’s pixel art
Codex CLI reads your repository, edits files and runs commands from the terminal, so asset gen fits it two ways. Registered as an MCP server, it gives Codex one tool named asset that takes the words after the command and the game’s folder. Left out of the config, Codex can still type the same asset lines into its shell. Either way the answer is identical, and the crystal cave on this page shows what a side view platformer’s first few calls return.
Set it up in Codex CLI
Install the CLI
Install the asset command (Node 20.11 or later).
npm install -g @tyrbo/assetAdd the MCP server to Codex CLI
Run its own command, which writes the server into ~/.codex/config.toml, or .codex/config.toml in a trusted project.
codex mcp add tyrbo-asset -- npx -y @tyrbo/asset mcpTry it free
In an empty scratch folder, a mock call checks the setup with no key: it writes stand-in files and spends nothing.
asset look grove "hand-painted fantasy forest, soft dappled light" --view top-down --mockLog in in your own terminal
Make an asset key in the Tyrbo app (Settings, Asset gen) and paste it into asset login yourself. The agent never asks for the key and never runs the login.
asset login
Codex CLI’s own docs, read November 25, 2026:
The commands
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side --mock
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side
asset character miner "a small miner with a headlamp and a pickaxe" --view side --clips idle,walk
asset synth gem pickup
asset spendMade by the CLI, not drawn for this page
Real files the asset CLI wrote, each under the command that made it.

See prompt
asset character miner "a small miner with a headlamp and a pickaxe" --view side --clips idle,walk
See prompt
asset look caverns "chunky 16-bit pixel art platformer, crisp pixels, limited palette, glowing crystal caves" --view side
Server or shell: which one Codex uses
With the server added, Codex sees a tool and fills in its arguments, so it never has to quote a long description inside a shell line. Without it, Codex runs asset like any other program it finds on your PATH. Pick the server when you want art requests listed apart from ordinary commands in the session; pick the shell when you would rather keep config untouched. codex mcp list shows whether the server is registered.
One thing goes through neither: asset login. The server refuses to run it, and the key is pasted into your own terminal, so Codex never sees it.
Tell it in AGENTS.md
Codex reads AGENTS.md for how a project likes to work. Paste the agent lines from the docs there: the look comes first, everything else is asked in it, the title screen comes last, and asset --help (or asset <verb> --help) is where the flags live. Because Codex checks the help before guessing, its calls match the version you installed, even after an update adds a verb.
Approvals and the sandbox
Codex runs commands under a sandbox and an approval setting, and /permissions is where you change both. A --mock call stays on your machine, so it works under the tightest setting. A real call talks to the asset service, so it needs the network; if Codex reports it could not connect, that setting is the first place to look.
A sensible order for a new game: let Codex wire the cave level with --mock on every line, run it, then approve the real look. Once that scene is right, the miner and his sounds follow in the same palette. asset synth makes simple sound effects like a gem pickup offline and free, so the level has audio before you spend anything on it.
What lands, and what it costs
The look writes caverns.png and look.json; the miner writes his front picture, a sheet with its atlas, and miner.anim.json for the clips. Codex gets one JSON line naming those paths and can open them straight away. A refused call prints its reason on stderr and exits 1, and Codex reads that like any failed command. Each paid ask is quoted first and stopped when your credits are short, a repeat of an earlier ask comes back from the cache at no charge, and asset spend prints the running total.
Questions people ask
Does Codex need the MCP server to make assets?
No. Its shell can run asset directly. The server just hands Codex a tool with typed arguments, which some people find tidier in a long session.
Why does a real call fail when the mock one worked?
The mock never leaves your machine; a real call reaches the asset service. Check the sandbox and network setting under /permissions, and that you ran asset login yourself.
Can Codex log in for me?
No, on purpose. The server refuses asset login, and the key belongs in your own terminal. Make it in the Tyrbo app under Settings, Asset gen, and paste it once.
Install it, then ask for the look.
Get an asset keyMake a key in the Tyrbo app, then run asset login. Add --mock to try any command free first.