Design Studio
Your own server can run the Design Studio: describe a wearable, emote or building, let the AI agent make it, check it, and download the finished package. On a self-hosted server it’s free. There are no payments: finalizing a piece is granted at once, and its package downloads as usual.
You bring the AI. The agents run on your own Anthropic, OpenAI or xAI account, so you pay those providers directly for what they use. Set a spending limit with your provider.
What you need
- A machine with Docker that can give each active design about 4 CPUs and 8 GB of memory. Each design you’re working on runs its own worker container, which stops by itself after 10 minutes without work.
- Your own agent keys: at least one of
ANTHROPIC_API_KEY(Claude),OPENAI_API_KEY(Codex) orXAI_API_KEY(Grok). - About 5 GB of disk for the worker image (it includes Blender).
The worker locks down its own network: it can reach only the AI providers, the package registries it needs, and your Virvi server. It needs Docker’s NET_ADMIN capability to set that up, which Virvi gives it.
Set it up
-
Build the worker image from the Virvi source. It downloads Blender and Decentraland’s official base avatars from their own sites, checking each file:
Terminal window docker build -t virvi-studio-worker:local apps/studio-worker -
Add your agent keys to
.env:Terminal window ANTHROPIC_API_KEY=sk-ant-... -
Start Virvi with the Studio add-on:
Terminal window docker compose -f docker-compose.single.yml -f docker-compose.studio.yml up -dThe add-on lets the server start worker containers through Docker, keeps Studio files in a volume, and puts the workers on a network where they can reach the server.
-
Open Studio in the dashboard and start a design.
Settings
| Variable | Default | What it does |
|---|---|---|
STUDIO_MACHINES | fly | docker runs workers as containers on this machine. external means you start each worker yourself. |
STUDIO_WORKER_IMAGE | The worker image to run, such as virvi-studio-worker:local. | |
STUDIO_S3_URI | Where Studio files are kept: file:///app/studio, or an S3 bucket. | |
STUDIO_WORKER_API_URL | PUBLIC_URL | The address workers use to reach the server, such as http://virvi:3010. |
STUDIO_DOCKER_NETWORK | The Docker network workers join, so they can reach the server by name. | |
STUDIO_DOCKER_MAX | 2 | How many designs can have a worker running at once. A design past the limit waits, and its page says so. |
STUDIO_DOCKER_SOCKET | /var/run/docker.sock | The Docker socket. |
STUDIO_PROMPTS_PER_DAY | 50 | Prompts each account may send per UTC day. A prompt that fails is given back. 0 stops prompts. |
STUDIO_DAILY_COST_USD | none | An optional cap, in US dollars, on what each account’s prompts may cost your agent keys per UTC day. Unset: no cap. |
These limits are how you control what accounts on your server spend on your agent keys; set a spending limit with your provider too.
Updating the worker
Build the image again after updating Virvi. Designs that are stopped move to the new image the next time they start; a running one finishes its job first.