Installation
Set Atelier up once per machine, then once per game. If you just want to try it, the quick start is shorter.
On this page: install · API keys · budgets · prepare a game · connect to Claude · the web app · optional extras · updating · troubleshooting
Install#
You need Node.js 22.13 or newer (24 LTS recommended) on Linux, macOS or Windows.
npm install -g @basementuniverse/atelier
atelier # prints help
Always include the scope: the unscoped atelier on npm is an unrelated package. If a global install needs root on your system, change npm's global prefix (npm config set prefix ~/.local, with ~/.local/bin on your PATH), or use npx @basementuniverse/atelier wherever these pages say atelier.
Windows: paths like ~/.config mean the folder of that name in your user folder. The automated tests run on Windows, but Atelier is mostly used on Linux, so please report anything odd.
From source, to work on Atelier itself:
git clone https://github.com/basementuniverse/atelier.git
cd atelier
npm install
npm run build # npm install does this too, unless ignore-scripts is set
npm link # puts this copy's `atelier` on your PATH
API keys#
Generating art needs an account with at least one provider. You don't need them all:
| You want | Get |
|---|---|
| Pixel art | PixelLab |
| Painted or 3D-looking art, animated | Ludo |
| Painted stills and props, pay as you go | OpenAI |
| To take mockups apart | Replicate, as well as one of the above |
| 3D models of your assets | fal, or Ludo |
| Only to import, process and export art you have | none |
Keys go in one file, outside every game's repo. Create it with:
atelier env # creates ~/.config/atelier/.env, readable only by you, and prints where it is
Each provider has one line. Paste each key right after the =, with no quotes and no spaces, then restart Atelier (restart Claude). atelier status shows which keys it can see (true/false). It never prints them.
Atelier uses the first of these: real environment variables; the file ATELIER_ENV_FILE names; .env in the config folder (ATELIER_CONFIG_DIR, else $XDG_CONFIG_HOME/atelier, else ~/.config/atelier); or, in a git checkout of Atelier with none of those, the checkout's own .env. Never put keys in a game's repo.
Providers change their sites and plans, so these steps may have moved a little.
PixelLab#
-
Go to https://www.pixellab.ai and sign in or create an account.
-
Check the plans. The free tier gives trial generations. PixelLab's docs say MCP/API use needs an active subscription, and the API is billed per call. Pick the lowest plan that includes API access if the free tier is refused.
-
Open your account page (also linked from https://www.pixellab.ai/mcp) and copy your API token.
-
In
.env:PIXELLAB_API_KEY=<token> -
Test it:
atelier balance pixellabYou should see your credits or generations as JSON. A
401means the token is wrong; a402means you are out of credits.
Ludo#
-
Go to https://ludo.ai, sign in, and pick the Pro or Studio plan. Only these include the API. API usage always spends credits, even for actions that are unlimited in the web app.
-
In the app, open API Keys: sidebar → Developer Tools → API Settings, or user menu → Account Settings → API.
-
Enter a name (e.g.
atelier) → Create key → copy it now. It is shown only once. -
In
.env:LUDO_API_KEY=<key> -
Test it:
atelier balance ludoYou should see your available credits and
"api_access": true. A403means the plan has no API access.
Until the key is set, painted projects fall back to OpenAI, and pixel projects use PixelLab.
OpenAI#
ChatGPT Plus doesn't include API access. The API is billed separately, pay as you go.
- Go to https://platform.openai.com and sign in.
- Verify your organisation. This is required for the GPT image models: Settings → Organization → General → Verify Organization. Image access can take 30–45 minutes to appear after verification.
- Add credit. Go to Settings → Billing, add a payment method, and buy a small amount of credit (e.g. $5–10).
- Set a spending limit. Go to Settings → Limits and set a monthly budget, with an email alert below it.
- Create a key. Go to API keys → Create new secret key → name it
atelier. Keep it in the default project, or make anatelierproject for separate usage tracking → copy it. - In
.env:OPENAI_API_KEY=sk-...
OpenAI can't report a prepaid balance to API keys. To get a balance bar anyway, add what you topped up and when to .env:
OPENAI_PREPAID_USD=10
OPENAI_PREPAID_SINCE=2026-10-20
Atelier then shows the prepaid amount minus the OpenAI spend it recorded for that game since that date (its cost ledger, from token usage), marked as an estimate. It doesn't see spend from other games or other apps. For the real figure, also create an admin key (Settings → Organization → Admin keys, read-only is enough) and add OPENAI_ADMIN_KEY=sk-admin-...: Atelier then subtracts the organisation's spend from OpenAI's Costs API instead. Top up again → update both values.
Replicate#
Replicate runs the models Atelier uses to split a mockup into layers (qwen/qwen-image-layered), to measure depth for normal maps (chenxwh/depth-anything-v2) and, when no other provider is set up for it, to remove backgrounds (bria/remove-background). It's pay as you go, billed by the run.
- Go to https://replicate.com and sign in (GitHub or email).
- Add billing. Go to Account → Billing and add a payment method or prepaid credit. A layer split costs about $0.07 (4 layers); a background removal about $0.02; depth about $0.001 a frame. Under $5 of credit, Replicate allows only 6 runs a minute. Atelier waits for it, but anything done frame by frame goes slowly, so $5 or more is worth it.
- Create a token. Go to https://replicate.com/account/api-tokens → Create token → name it
atelier→ copy it. - In
.env:REPLICATE_API_TOKEN=r8_...
Replicate has no balance endpoint, so atelier balance shows a note instead of a bar. Atelier prices each run from Replicate's list prices (marked as estimates in the ledger), so budgets.perSessionUsd still caps it. Outputs are deleted an hour after a run finishes; Atelier downloads them straight away, but a job left pending for over an hour has to be run again.
fal#
fal runs the image → 3D models generate_model uses: TRELLIS.2 (the default, about $0.30 a model, textured), Hunyuan3D v2 (about $0.48 textured) and SAM 3D Objects (about $0.02, which also returns the object's pose). Without it, generate_model falls back to Ludo's prop (4 credits) and hero (15) models. Everything after the model (fitting, rendering 32 directions, normals, the Model page) is free and needs no key.
- Go to https://fal.ai and sign in.
- Add credit. Go to Dashboard → Billing and add a payment method or prepaid credit.
- Create a key. Go to https://fal.ai/dashboard/keys → Add key → name it
atelier→ copy it (it looks like<id>:<secret>). - In
.env:FAL_KEY=<id>:<secret>
fal has no balance endpoint for keys, so atelier balance shows a note instead of a bar. Atelier prices each model from fal's list prices (marked as estimates in the ledger), so budgets.perSessionUsd still caps it. To use another fal model, map a name to its endpoint id in the style guide: providerStyle.fal.endpoints.
Anthropic#
The web app's Ask Claude panel calls the Anthropic API directly. API use is billed apart from a Claude subscription, by the token: a short exchange about a page costs a few cents; a long one with many tool calls, a dollar or more. Everything else in Atelier works without it.
- Go to https://platform.claude.com, sign in, and add credit under Billing.
- Create a key. Settings → API keys → Create key, name it
atelier, copy it (it startssk-ant-). - In
.env:ANTHROPIC_API_KEY=sk-ant-…, then restart the MCP server oratelier web.
The assistant uses Claude Opus 5.5 by default, at medium effort. Its spend goes in the ledger as anthropic, capped at $5 a day (assistant.perDayUsd) as well as by the budgets; change the model, effort and cap on the web app's Settings page. Provider calls it makes count against the budgets as usual, and each paid one waits for your Approve in the panel.
Claude Code, for unattended queue runs#
atelier work, and Run the queue now in the web app, use Claude Code instead of an Anthropic key. Install it and sign in once with claude. Runs are billed to your Claude account the way Claude Code is; Atelier caps only the provider spend.
- If
claudeisn't on the PATH, setATELIER_CLAUDE=/path/to/claudein.env. On Windows, give the path toclaude.exe: aclaude.cmdcan't be started. - A run loads your own Claude Code settings but not the game's (
.mcp.json,.claude/settings.json), and a daily run is turned on per machine, so a cloned game can't start programs or runs by itself.
Checking balances#
atelier balance # a bar per provider: what's left of the allowance, and when it renews
atelier balance --json # the same, plus each provider's raw response
The web app's dashboard shows the same bars. Balance checks are free at every provider.
Budgets#
Budgets live in each game's art/atelier.json. A new project starts with caps of $5, 100 Ludo credits and 100 PixelLab generations per session (one run of the MCP server), and twice that per day. A project whose file sets no caps has none. Change them on the web app's Settings page, ask Claude ("set Atelier's budget to $3 per session and 100 Ludo credits"), or edit the file:
"budgets": {
"perSessionUsd": 3,
"perSessionUnits": { "ludo:credits": 100, "pixellab:generations": 30 },
"perDayUsd": 5,
"perDayUnits": { "ludo:credits": 200 },
"usdPerUnit": { "ludo:credits": 0.02 }
}
A unit with no usdPerUnit rate counts as $0 against the dollar caps, which is why units have caps of their own. Work the rate out from your plan's price ÷ credits. Jobs and costs has the details.
Prepare a game#
In the game's folder, create art/ (or ask Claude, who uses project_init):
atelier init --render pixel # or painted / prerendered-3d
atelier init --render pixel --mirror generate # draw every direction instead of flipping
If the game uses the packages Atelier exports for, install them:
npm i @basementuniverse/content-manager @basementuniverse/texture-atlas @basementuniverse/sprite
Mirroring. By default the east-facing directions (e, ne, se) are flipped copies of the west-facing ones. They are never generated, which saves credits, but the flip swaps left and right: a staff in the right hand ends up in the left. If your characters are mostly one-sided (weapons in one hand, a cape over one shoulder), set defaults.mirror to "generate" in art/atelier.json (or use --mirror generate) so every direction is drawn. Either way you can choose per asset ("make the hero draw every direction"), and Claude warns when a character it just generated doesn't look symmetric. With PixelLab, switching an asset to generate afterwards reuses the east views PixelLab already drew; only animations cost more.
Canvas sizes. Pixel art can use small canvases (32–64 px). Painted and 3D styles are drawn at about 1024 px and shrunk to the canvas, so at 64×64 most of the detail is lost: use 128 or more.
Check art/ into the game's git. art/.gitignore already excludes the bulky assets/*/sources/ downloads.
Connect Atelier to Claude#
Atelier serves one game per server: the folder Claude is working in, unless --project names another.
Claude Code#
cd /path/to/my-game
claude mcp add atelier -- atelier mcp
Claude Desktop (Code tab) and other clients#
Commit a .mcp.json at the game's root, or use whatever your client reads:
{
"mcpServers": {
"atelier": { "command": "atelier", "args": ["mcp"] }
}
}
Desktop apps often don't have your shell's PATH (common with nvm). If the server fails to start, use absolute paths. which node finds the first, and npm root -g the folder the second is in:
{
"mcpServers": {
"atelier": {
"command": "/path/to/node",
"args": ["/path/to/@basementuniverse/atelier/dist/cli.js", "mcp", "--project", "/path/to/my-game"]
}
}
}
Any MCP client that starts a local (stdio) server should work, but only Claude's have been tried. Atelier has over 120 tools, so a client that puts every tool's description in the conversation will use a lot of its context.
Claude Desktop's chat, for widgets#
In Claude Desktop's chat, picking, reviewing, the queue plan and the export preview appear inside the conversation. The chat has no project folder, so add one server per game. Open Settings → Developer → Edit Config (claude_desktop_config.json) and add the absolute-path entry above, with a name for the game ("atelier-my-game").
Then quit and reopen Claude Desktop. It reads the file on start, and keeps widgets cached until it restarts.
Check it#
Show me Atelier's project status.
It should report initialised: true, your keys (pixellab: true, …) and a webApp link such as http://127.0.0.1:4903/?token=….
The companion web app#
The MCP server also serves a small web app on your own machine: what needs you, every asset by stage, the asset viewer, the task queue, budgets and history. Page 15 describes its sections. Each game has its own port (somewhere in 4870–4969), so its address stays the same.
- Open it from a link Atelier gives you (from Claude, or printed by
atelier web). The link carries a token that lets that browser in, so other users and programs on your machine, and other sites, can't use the app or spend with your keys. The browser remembers it for that game: bookmarks and open tabs keep working, across restarts too. Opened without it, the page says so. Tokens are in~/.local/state/atelier/tokens/, readable only by you; delete one to make every browser need a new link. Treat a link like a password. - Claude gives you the link and opens it in the desktop app's built-in browser when it needs you (
human_pick,human_review,human_mask). You can also open it yourself in any browser. - With several games open, the project name at the top of the page is a switcher: it lists the other running games and how many requests are waiting in each. The Work section also says when something is waiting in another game.
- With no MCP server running,
atelier web(in the game folder) serves it on its own. If the game's web app is already running,atelier webjust prints its link. - Export preview on an exported asset's page plays the export through the real packages;
/widgetsshows any of Atelier's widgets as Claude Desktop would, for trying them without it (free tools only). - To pin the port or turn the web app off, set
web.port/web.enabledinart/atelier.json.
Optional extras#
- ffmpeg on the PATH (or
ATELIER_FFMPEG): sends motion guides to Ludo as MP4 rather than GIF, and is needed to make a motion from a video. - Blender 4 or later on the PATH (or
ATELIER_BLENDER): renders models with soft light and shadows. Set"render": { "engine": "blender" }inatelier.json, or pick it per render on the Model page. Everything works without it. ATELIER_LIBRARY_DIR: where the motion library every game shares lives (default~/.local/share/atelier/library). Use an absolute path, or one starting with~/.ATELIER_STATE_DIR: the list of running web apps and their tokens (default~/.local/state/atelier).ATELIER_GAME_COMPONENTS: a local checkout of the@basementuniversepackages, for previews in a game that hasn't installed them.
Settings go in .env or the environment. The programs Atelier runs (Blender, ffmpeg, Claude Code) are only ever chosen there, never by a game's files.
Updating#
npm install -g @basementuniverse/atelier@latest
Then restart Claude, or the server in Claude Desktop. From source: git pull, then npm install && npm run build.
Found a mistake? Edit this page on GitHub.