Game assets from a coding agent on a local Ollama model
Ollama runs language models on your own machine; it is not an agent and does not host MCP servers. What it does offer is ollama launch opencode, which starts the OpenCode agent on a model you pick, and OpenCode takes asset gen’s server. So the agent’s thinking runs locally, while each picture, sheet or model it asks for is made on Tyrbo’s service with your account’s credits, the same as from any other agent. The sprite stacks on this page are a good first job for that setup: cheap, quick and easy to check.
Set it up in Ollama
Install the CLI
Install the asset command (Node 20.11 or later).
npm install -g @tyrbo/assetAdd the MCP server to Ollama
Run its own command, which writes the server into opencode.json, after ollama launch opencode starts OpenCode on a local model.
opencode 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
Ollama’s own docs, read November 25, 2026:
The commands
asset look yard "chunky pixel art farmyard seen from above, warm greens and browns, bold outlines" --view top-down --mock
asset look yard "chunky pixel art farmyard seen from above, warm greens and browns, bold outlines" --view top-down
asset stack well "a round stone well with a little wooden roof and a bucket" --view top-down
asset stack tree "a round leafy oak tree on a short trunk" --smooth --view top-down
asset stack racecar "a red open-wheel race car with white racing stripes, a big number 7 on its nose, four fat black tyres, a driver in a yellow helmet in the cockpit and a rear wing" --view top-down
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 stack well "a round stone well with a little wooden roof and a bucket" --view top-down
See prompt
asset stack tree "a round leafy oak tree on a short trunk" --smooth --view top-down
See prompt
asset stack racecar "a red open-wheel race car with white racing stripes, a big number 7 on its nose, four fat black tyres, a driver in a yellow helmet in the cockpit and a rear wing" --view top-downWhere each part runs
It helps to be clear about the split:
- On your machine: Ollama and the model, OpenCode, and the asset server OpenCode starts.
- On Tyrbo’s service: the image, video and 3D models each paid call uses, billed to your credits.
A local model keeps your code and your chat at home, and it costs you nothing per token. It does not make the art free. --mock calls are free, as are verbs such as asset synth, asset clips and asset convert, and a call you made before comes from your account’s cache.
Small models and tool calls
Be honest with yourself about the model. Ollama’s OpenCode page asks for a context window of 64k or more, and the model has to support tool calling at all. Smaller local models call tools less reliably than large hosted ones: a list of words split in the wrong place, a flag invented, a call repeated.
Asset gen copes with most of that. A flag a verb does not take is refused with the reason, which the agent can read and fix. A repeat is answered from the cache. A paid call your credits cannot cover is refused before anything is spent. Still, keep the first session on --mock until the model calls the tool cleanly, and watch asset spend when you switch to real calls.
Why sprite stacks suit a first run
asset stack asks a cheap model for a recipe, about a tenth of a cent, then builds the thing as slices a 2D game draws one layer at a time so it turns in place and looks solid. It writes the sheet, its atlas and <name>.anim.json, plus a .glb and a turntable to look at. The recipe is kept as stack/<name>-recipe.json: edit it and pass it back with --of, free.
That makes for short, forgiving asks. The agent says what the thing is, and you check well-slices.png with your own eyes. If the agent gets the words wrong, the cost of trying again is tiny.
Questions people ask
Does `ollama launch opencode` change my OpenCode config?
No. Ollama’s docs say it passes the model inline and leaves your own config alone. The asset server is added with OpenCode’s own command, shown above, and stays there.
Can another agent use my Ollama model instead?
Ollama lists other agents it can launch, and several editors point at a local Ollama endpoint. Any of them that hosts MCP servers or runs shell commands can use asset gen the same way.
Do I need credits if my model is local?
For real art, yes: pictures and models are made on Tyrbo’s service. You can wire the whole game first with --mock, which needs no key. See pricing for what credits cost.
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.