Code Studio — build the estate from a browser, on your own models¶
Status: 🟡 Partly built. Built and shipped as the usable first version: ./securax studio starts VS Code + the Cline AI coding agent in the browser (codercom/code-server, digest-pinned) as an opt-in add-on that is never part of the core start, reached by name at hub.
/studio/ through the edge, with a generated password and Cline pointed at your own gateway (OpenAI-compatible) so building the estate needs no Claude and no terminal. A sandbox journey (studio_starts) now starts it on the real estate on every change and proves it serves with its data dir writable for any uid (no EACCES), and the data-dir fix is finished so it works whatever uid owns the checkout, not only uid 1000. Amber until the rest of the queued hardening lands (non-root, a code. subdomain option, gateway-identity sign-in, the journey extended to the edge route + Cline reaching the gateway, and a digest-pin watch). A standalone docker-run fallback is documented for the first run. What the lights mean
The friction this removes: until now, changing SecuRAX meant a terminal and a paid Claude Code subscription — a single point of failure over the estate's whole purpose, sovereignty. Code Studio puts a familiar GUI (VS Code) with an AI coding agent (Cline) in your browser, pointed at your own gateway and the open models you already run. You edit files, run commands, use git and MCP connectors, and the agent writes code — with no Claude and no terminal.
One command¶
./securax studio # start it, print the address + a generated password
./securax studio open # open it in your browser
./securax studio status # is it running?
./securax studio down # stop it (your estate is untouched)
It is an opt-in add-on: it has its own profile and is never part of ./securax up, so it can
never affect your running estate. It is reached by name at https://hub.<domain>/studio/ (no raw
port), through the same HTTPS edge as the rest of the estate.
First run (one time, ~2 minutes)¶
./securax studio— the first start pulls the image and installs the Cline extension (a minute or two). It prints the address and a generated password (saved asSTUDIO_PASSWORDinlocal/compose/.env). Open the address, sign in with that password.- In the Cline sidebar (the robot icon) → Settings → API Provider: “OpenAI Compatible”:
- Base URL:
http://gateway:8080/v1(the gateway, reached by name from inside Studio — note the/v1, a missing or extra/v1is the usual reason a model “hangs”) - API key: your gateway key (leave blank if gateway auth is off, the laptop default)
- Model: a coding-capable model from your ladder — see
./securax opencode --check - Ask Cline to do something small to confirm the handshake (“list the files in this repo”). From then on, drive it like Claude Code: describe the change, review its plan, let it edit and run.
Your projects are just folders; MCP connectors are configured in Cline’s MCP settings the same way.
Security¶
- Studio can run code, so it is never left open: a strong password is generated on first start.
Set your own by putting
STUDIO_PASSWORD=…inlocal/compose/.envbefore starting. - It binds to loopback by default (set
BIND_HOSTto reach it from other devices, like the other add-ons) and is reached by name through the edge. - The repository is mounted so the agent can change it — that is the point; keep the password private.
If hub.<domain>/studio/ shows the Life OS instead of the editor¶
Your running guiding-map container predates the /studio/ route, so nginx fell through to the Life
OS single-page app. Pull the change and recreate it:
./securax update && ./securax up # recreates guiding-map so nginx loads the /studio/ route
./securax studio # starts the editor
Then reload https://hub.<domain>/studio/. If it loads but the editor renders oddly (a sub-path
through two proxies is the fragile bit), use the standalone version below — it serves at a root path
and is reliable.
If the in-browser editor misbehaves (fallback)¶
Serving a full IDE under a sub-path through two proxies is the one part that only your first real run can confirm. If the editor loads oddly or a panel won’t connect, you are not stuck — run the standalone version, which talks to the same gateway and models:
# the data dir must be WRITABLE by code-server's coder user (uid 1000), or it hits EACCES and fails to come up.
# chmod 0777 makes it work whatever uid you are (owning it only helps if your own uid is 1000); it is a local cache dir.
mkdir -p ~/.securax-studio-data && chmod 0777 ~/.securax-studio-data
docker run -d --name securax-studio \
--add-host=host.docker.internal:host-gateway \
-p 127.0.0.1:8443:8080 \
-v "$HOME/ai-cloud-cyber-range:/home/coder/project" \
-v "$HOME/.securax-studio-data:/home/coder/.local/share/code-server" \
-e PASSWORD='choose-a-strong-one' \
codercom/code-server:4.143.1
# then install Cline (serve and install are separate — one command each):
docker exec securax-studio code-server --install-extension saoudrizwan.claude-dev
# open http://localhost:8443 — Cline base URL: http://host.docker.internal:8080/v1
Note: run
code-serverplain to serve;--install-extensionis a one-shot that installs and exits, so never combine it with the serve command. Install it withdocker exec(above) or from the Extensions panel. If you ever seeEACCES ... coder-logs, the data dir isn't writable by the container's uid — thechmod 0777 ~/.securax-studio-dataabove fixes it for any uid (orsudo chown -R 1000:1000 ~/.securax-studio-data).
What is still queued (hardening)¶
This is the usable first version (shipped per build usable today, harden after). Tracked follow-ups
(governance/queue.json, studio-harden):
- Run the container as a non-root user with a scoped mount (not the whole home).
- Offer Studio as its own subdomain (
code.<domain>) as well as the/studio/path, for editors that prefer a root path. - Sign-in through the gateway’s identity (OIDC) instead of a shared password.
- A sandbox journey that starts Studio over the edge and proves Cline reaches the gateway. (Partly
done: the
studio_startsjourney now starts Studio on every change and proves it serves with a writable data dir and noEACCES; still to add — the/studio/edge route and the Cline→gateway hop.) - Pin the image in
digest-pins.jsonand let the weekly supply-chain watch track it.
Why this matters¶
With Studio, the estate builds itself: the models you own do the work, the GUI is one you already know, and no outside service or paid plan gates your day-to-day changes. That is the sovereignty the whole project is for — and the companion to doc 118, which drives the same open models from the command line.