wget -qO- https://raw.githubusercontent.com/andreapollastri/studio/refs/heads/main/installer/install.sh | sudo bash- The domain. You type it, for example
dev.example.com. The script shows the one DNS record to create:*.dev.example.com → A → your server's IP. - The check. It resolves a random name under the wildcard and
studio.<domain>through a public resolver and waits until both point at the server. You can skip and fix DNS later; certificates are issued on demand when hosts resolve. - The first administrator. Name and email. The password is generated: the summary shows it, with the dashboard's address and the email, in a yellow box before anything is installed, and again at the end. Save it then; nothing shows it later. Studio has no public sign-up and no social login: accounts are created here and in the dashboard, and people sign in with a password.
- Your git host. GitHub, GitLab (gitlab.com or your own), Bitbucket Cloud or Azure DevOps (with its organization): the host of your first token. It does not tie Studio to it: all four, the same forges Larapilot integrates with, are there for everyone, and a project may live on any of them. See The git hosts.
- Your token there. With the instructions on screen you create it; the script verifies it with the host and stores it as your first git account. It can create repositories and deploy project sites. Every other person adds their own later; the team's service accounts are added in the dashboard.
Then it installs the newest release of Studio, the latest published vX.Y.Z tag (the head of the main
branch only while no release is published; the first release then replaces it), with what it needs:
Caddy, PHP 8.6 (8.5, 8.4 and 8.3 on request), Composer, Node, Claude Code, the CLI of your git
host (gh, glab or the Azure CLI), MariaDB, PostgreSQL and redis. Ten minutes later:
https://studio.<domain>Sign in, turn on two-factor authentication, add your Claude account in Settings → Accounts. Add the team's service account in Administration → Connectors → Git hosting if you have one, create the first project in Administration → Projects, invite the team in Administration → People and give each person a role on it. From then on Studio updates itself every night to the newest release; see Updates.
Requires: Ubuntu 24.04 or 26.04 LTS (with sudo or Ubuntu
26.04's sudo-rs), amd64 or arm64, 4 GB of
memory or more · a domain with a wildcard record · a git account per person on the host of their projects · a Claude subscription or an
Anthropic API key per person who chats, each person's own · Laravel projects with Larapilot (Studio installs it, with Laravel Boost, in
the repositories it creates). Running Claude Code for a team on your server is covered by Anthropic's Commercial
Terms, which the operator of the installation accepts: see Anthropic's terms.
Watch it run#
The five questions and the installation, as the installer prints them. Pick a step, or let them follow one another.
Click the terminal to skip to the end of a step. These are the installer’s own questions; the full walkthrough is in the Quickstart.
root@vps:~# wget -qO- https://raw.githubusercontent.com/andreapollastri/studio/refs/heads/main/installer/install.sh | sudo bash Studio — one server for a team of Laravel workspaces Ubuntu 26.04 · amd64==> 1/5 · The domain Every host of Studio hangs under one domain: studio.<domain> the dashboard <project>.<domain> the deploy branch of a project <user>-<project>.<domain> one person’s workspace previewDomain (for example dev.example.com): dev.agency.com
What it installs#
installer/install.sh turns a bare Ubuntu into the whole thing, and the same steps (in
installer/lib/system.sh) run again at every update, so a release can bring what it needs. What apt prints
goes to /var/log/studio-install.log; when a package fails, the installer shows the end of it. Run on a
server where Studio is installed, the script starts the updater instead of asking questions; after an installation that
stopped halfway it starts again from the questions. Beta testers install the head of the main branch instead of the
newest release, and keep following it (see Updates):
wget -qO- https://raw.githubusercontent.com/andreapollastri/studio/refs/heads/main/installer/install.sh | sudo STUDIO_CHANNEL=beta bash| Piece | Role |
|---|---|
| Caddy | HTTPS for every host under the domain, with certificates issued on demand: before issuing one, Caddy asks Studio whether the host is known. No DNS API token, no per-host certbot runs. |
| PHP 8.6 | From packages.sury.org, on Ubuntu 24.04 and 26.04 alike, with the usual extensions and PHP-FPM. It runs Studio, and new projects start on it; 8.5, 8.4 and 8.3 are added from Administration → System (see PHP versions). Each project picks among those installed; a pool per site and per workspace runs as its own user. The versions come from the release's installer/requirements.env (PHP_VERSIONS for every server, PHP_OPTIONAL on request), so a later release can add one. sury.org is Ondřej Surý's repository, the same maintainer and packages as ppa:ondrej/php, but it publishes first: on the security release of 21 October 2026 it had the fixed builds while the PPA was still building them, and it served Ubuntu 26.04 before the PPA did. A server that had the PPA or Ubuntu's own PHP moves to sury.org on its next update, and its PHP packages with it. Only where neither sury.org nor the PPA serves the Ubuntu release does PHP come from Ubuntu's archive, which carries one PHP alone. The same file names the first patch of each branch with the security fixes Studio asks for (PHP_FIXED): an update brings an older PHP to its newest package and restarts what runs on it. |
| Composer, Node 22, Claude Code | What a Laravel project and the agent need. Claude Code is installed once, system-wide; each workspace runs it with its own login, and every update of Studio brings the newest one. |
| The git hosts' CLIs | gh for GitHub, glab for GitLab, the Azure CLI with the azure-devops extension for Azure DevOps; nothing for Bitbucket, whose REST API Larapilot calls directly. The installer puts in the one of the first token's host; another is installed the first time a workspace on its host needs it. The agents open pull requests with it. |
| Playwright MCP, Chromium | The agent's browser: Playwright MCP at the version pinned in installer/requirements.env, its headless Chromium in /usr/local/lib/studio/browsers, and an AppArmor profile so Chromium keeps its own sandbox on Ubuntu 24.04 and later. |
| MariaDB, PostgreSQL, redis | Each project picks an engine; every site and every workspace gets a database and a user of its own. Redis is shared with a prefix per site. |
| Studio | The newest release tag (or, for beta testers, the head of main) in /opt/studio/releases/<build>, with /opt/studio/current pointing at it and the .env and storage shared in /opt/studio/shared; built, migrated, served at studio.<domain>; a queue worker, a scheduler and Reverb as systemd services. |
studio-admin | The privileged helper in /usr/local/sbin: the only thing the studio user may run as root, through sudo, for a fixed list of commands. Everything on the server is done through it. |
studio-update | The updater in /usr/local/sbin, run by root: nightly by a systemd timer, on demand from Administration → System. See Updates. |
studio-recover | Root's tool in /usr/local/sbin, mode 0700: resets the main administrator from an SSH session when every account is locked out, and edits and reloads Studio's .env (outgoing email). Nothing in Studio calls it. See Locked out. |
studio-domain | Root's tool in /usr/local/sbin, mode 0700: the domain's DNS, its move to another domain, and the certificates. See Domain & visibility. |
| ufw, fail2ban | Ports 22, 80 and 443 open; brute force on SSH banned. |
Where things land#
/opt/studio/
current → releases/<build> the live build of Studio
releases/<build>/ the last three: v2.0.0, or main-1a2b3c4 on the beta channel; owned by the studio user
shared/.env, shared/storage/ what every release shares
/etc/studio/
studio.env the domain, paths, Studio's PHP, the repository, AUTO_UPDATE, UPDATE_CHANNEL, SYSTEM_UPDATE, SYSTEM_REBOOT; root only
update-signers optional: SSH keys allowed to sign release tags
projects/<key>.env the deploy token and database password of a site
workspaces/<user>--<key>.env one person's tokens for one workspace, readable by their Linux user only
templates/ Caddy, PHP-FPM and systemd templates the helper renders
/srv/studio/projects/<key>/app a project site: user prj-<key>
/srv/studio/workspaces/<user>/<key> a workspace: user ws-<user>, home /home/ws-<user>
/srv/studio/workspaces/<user>/.sandboxes/<key>/c<id> a conversation's sandbox: a worktree of that workspace
/usr/local/lib/studio/browsers the Chromium of the agent's browser
/etc/caddy/sites/*.caddy one host matcher per site and per workspace
/etc/php/<ver>/fpm/pool.d/studio-*.conf
/etc/systemd/system/studio-*.service Studio's queue, Reverb and scheduler; a bridge per workspace; queue workers per site and preview (Horizon, Reverb, Pulse when on)
/etc/cron.d/studio-* schedule:run every minute, per site and per preview
/var/lib/studio-update/state.json the updater's state and last log, read by the System page
/var/lib/studio-update/repo.git a blob-less mirror of the repository: tags, main and which commit contains which
/var/backups/studio/ the database dump taken before each update (the last five)
/var/log/studio-install.log what apt printed during the installation and the updates
/var/log/studio-update.log every update, in fullDNS and certificates#
One wildcard record is enough: *.<domain> → the server. When a browser asks for
maria-shop.<domain> for the first time, Caddy calls
http://127.0.0.1:8081/api/tls/ask?domain=…; Studio answers 200 for its own host, a project key or a
workspace preview it knows, and Caddy issues the certificate. Any other name under the domain shows Studio's
welcome page; it gets a certificate too, but only for a few new names a day
(STUDIO_WELCOME_CERTIFICATES_PER_DAY, default 3), so that strangers typing random names cannot use up
the Let's Encrypt limits the real hosts need. Past that, an unknown name gets no certificate at all.
Trying it on your Mac first?
Studio runs without the server pieces: the local driver points every workspace at one bridge on
your machine, driving the claude you already use. composer setup, an admin,
composer run dev, then the bridge inside any Laravel project with Larapilot. The demo seeder gives
you an agency with five projects (two of them called "API"), four people with a role on each, and a live
conversation. See Local development.