Documentation
Quick start, providers, the routes data may take, compute, the cockpit, the MCP connector, and how spending is gated.
Quick start (Linux)
You need an Ubuntu 24.04 environment with GCC 14 and about 13 GB of disk per build environment (the script refuses to start with less than 100 GB free). The reference clean build (Dev, CUDA off) measured 41 minutes on 5 of 16 cores; an unchanged re-run took about a minute.
git clone --recursive https://github.com/Keigyoku/lampway.git
cd lampway
scripts/lampway/build_linux.sh --check-deps
MIXAR_ENV=Prod scripts/lampway/build_linux.sh
python3 -m venv server/.venv
server/.venv/bin/pip install -r server/requirements-lock.txt
server/.venv/bin/pip install -e server/
scripts/lampway/lampway --env Prod --copy --provider mock path/to/scene.blend
--provider mock needs no model, no key and no route; it is the smoke test. --plan prints every resolved setting without starting anything. The launcher starts the server on 127.0.0.1:8787, opens a copy of your file, and stops the server it started when the app exits. The build variables keep their upstream MIXAR_* names for now.
macOS and Windows: the build scripts are inherited from upstream and have not been run by this project.
Providers
# OpenRouter, hard session ceiling (default $3). The key is never an argument and never printed.
scripts/lampway/lampway --env Prod --copy --provider openrouter \
--openrouter-key-file ~/.config/lampway/openrouter.env --budget 3 --image-backend openrouter scene.blend
# ChatGPT plan: open http://127.0.0.1:8787/app/chatgpt once, choose Continue with ChatGPT,
# approve in the browser, then LAMPWAY_PROVIDER=chatgpt_plan
# Anthropic API key
LAMPWAY_PROVIDER=anthropic ANTHROPIC_API_KEY=...
# Local or compatible server (on this machine: no route needed)
LAMPWAY_PROVIDER=openai OPENAI_BASE_URL=http://127.0.0.1:11434/v1 LAMPWAY_OPENAI_MODEL=<model>
# Your Codex login through Codex's app-server (needs the local CLI switch)
LAMPWAY_LOCAL_CLI=1 LAMPWAY_PROVIDER=codex_app_server
Swarm models, image models per purpose, spend policy per provider and the Higgsfield sign-in are in the Providers dialog. Local CLI adapters stay off unless you set LAMPWAY_LOCAL_CLI=1.
Switch on a route
Every route off your machine starts switched off, so a remote provider refuses until you switch its route on: “openrouter is off: switch it on in Privacy to let data leave”. Open the Lampway tab in the 3D viewport’s sidebar, find Privacy (what leaves this machine), and switch on the routes you want. Each shows what that provider keeps; the panel shows the last log rows and exports the whole log.
- Anthropic API key and Claude CLI: the
claude_planroute. ChatGPT plan and the Codex CLI:chatgpt_plan. A custom endpoint that is not on this machine:custom_llm. - Studios, Higgsfield, HeyGen, fal, compute boxes and model-weight downloads each have their own route. The full table.
- A private asset is refused on a route that may keep it. You can allow one asset on one route; that allowance is logged.
Compute
The compute tool rents a box from the provider you pick (Boat, Modal, RunPod or fal) and can run headless Blender on it. Run it with the same LAMPWAY_STATE_DIR as the server so both read the same route switches.
server/.venv/bin/python -m lampway_server.compute # what is set up, and what to do next
server/.venv/bin/python -m lampway_server.compute backends # providers, which are enabled, their routes
server/.venv/bin/python -m lampway_server.compute egress compute:boat on
server/.venv/bin/python -m lampway_server.compute plan probe --backend boat
server/.venv/bin/python -m lampway_server.compute reconcile # re-adopt, finish, tear down; report orphans
Defaults: $1 a job, $5 a day, and your approval for anything above $0.25. No provider is enabled until you choose one. The agent can plan and read status; only you submit and approve.
Cockpit
The cockpit runs your agent CLIs as panes of Lampway’s own herdr server. Install herdr and run it once yourself (or set LAMPWAY_HERDR_BIN); Claude Code, Codex and OpenCode sessions also need the local CLI switch. Start the server and new sessions from the cockpit panel in the Lampway sidebar. Stopping the server or closing a session asks you to confirm.
Connect AI apps (MCP)
- Open Lampway and sign in to your Lampway server.
- Open the profile menu, choose Connect AI Apps (MCP), and enable MCP.
- Pick your app. Claude Code:
claude mcp add --scope user lampway -- ~/.lampway/connector/lampway-mcp, or click Add. Codex: a[mcp_servers.lampway]table in~/.codex/config.toml, or click Add. Others: merge the shown JSON into the app’smcpServers.
The server is named lampway. An older mixar entry from a pre-Lampway build is replaced; the old launcher path forwards to the new one for one release. Only a loopback credential is written to disk, private to your user. Your own mouse or keyboard always takes control back, and spends on paid providers still wait for your click.
Spend safety
- Studio and Higgsfield jobs read the price first, then wait pending. Only a confirm from you starts them; the price must equal the one shown; the approval is one-shot and expires after ten minutes.
- No agent tool confirms. The client refuses the confirm while any script is running (the agent executor, a headless worker, the bridge).
- OpenRouter: a generation job priced above $0.25 waits for your click; every request carries a token cap, and a spend ledger refuses the next call past the session ceiling, before anything is sent.
- Every paid job gets a receipt on disk before it is sent; a job whose submission is unknown after a crash is never resent.
- Per-provider spend policy (a click: never, above a price, always; per-job and per-session caps) is set in the Providers dialog. Defaults: OpenRouter asks above $0.25 and keeps its $3 session ceiling; Higgsfield and the studios always wait; compute asks above $0.25 under $1 a job and $5 a day.
Configuration
| Variable | Default | Meaning |
|---|---|---|
LAMPWAY_HOST / LAMPWAY_PORT | 127.0.0.1 / 8787 | bind address |
LAMPWAY_PROVIDER | mock | mock, anthropic, openai, openrouter, chatgpt_plan, codex_app_server, codex_cli, claude_cli |
LAMPWAY_USER_PASSWORD | empty | password for the single local account; empty means the loopback sign-in page approves without asking |
LAMPWAY_STATE_DIR | $XDG_STATE_HOME/lampway-server | secrets (0600), saved settings and the route switches |
LAMPWAY_HOME | ~/.local/share/lampway | the launcher’s isolated profile |
LAMPWAY_BACKEND_URL | http://127.0.0.1:8787 | points the client at a server for one run |
LAMPWAY_LOCAL_CLI | off | 1 lets Lampway start the codex or claude you are logged into |
LAMPWAY_HERDR_BIN | herdr on your PATH | the herdr binary the cockpit uses |
Guides
The longer guides live with the source.