Skip to content

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) or XAI_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

  1. 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
  2. Add your agent keys to .env:

    Terminal window
    ANTHROPIC_API_KEY=sk-ant-...
  3. Start Virvi with the Studio add-on:

    Terminal window
    docker compose -f docker-compose.single.yml -f docker-compose.studio.yml up -d

    The 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.

  4. Open Studio in the dashboard and start a design.

Settings

VariableDefaultWhat it does
STUDIO_MACHINESflydocker runs workers as containers on this machine. external means you start each worker yourself.
STUDIO_WORKER_IMAGEThe worker image to run, such as virvi-studio-worker:local.
STUDIO_S3_URIWhere Studio files are kept: file:///app/studio, or an S3 bucket.
STUDIO_WORKER_API_URLPUBLIC_URLThe address workers use to reach the server, such as http://virvi:3010.
STUDIO_DOCKER_NETWORKThe Docker network workers join, so they can reach the server by name.
STUDIO_DOCKER_MAX2How 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.sockThe Docker socket.
STUDIO_PROMPTS_PER_DAY50Prompts each account may send per UTC day. A prompt that fails is given back. 0 stops prompts.
STUDIO_DAILY_COST_USDnoneAn 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.