Configuration

The installer writes /opt/studio/shared/.env, which every release links. The keys that are Studio's own:

VariableMeaning
STUDIO_DOMAINThe domain every host hangs under
STUDIO_WORKSPACE_DRIVERnative on a server, local while developing Studio
STUDIO_GIT_PROVIDER, STUDIO_GIT_URLOnly the installer's: the host of the first administrator's token (github, gitlab, bitbucket or azure, with the address of a self-managed GitLab or https://dev.azure.com/<organization>) and the CLI it preinstalls. Every host works whatever they say
STUDIO_PHP_VERSIONSThe PHP versions a project can pick, kept by the installer, the updater and Administration → System → PHP in step with what is installed (8.6, or 8.5,8.6 once 8.5 is added)
STUDIO_UPDATE_STATE, STUDIO_UPDATE_REPOSITORYWhere the updater leaves its state (/var/lib/studio-update/state.json); the repository the release links point at
STUDIO_HELPER, STUDIO_HELPER_SUDO, STUDIO_HELPER_TIMEOUTPath of studio-admin, whether to go through sudo, seconds a command may take (1200)
STUDIO_BRIDGE_PORT_BASEBridges listen on 127.0.0.1 at base + workspace id (42000)
STUDIO_CALLBACK_URL, STUDIO_BRIDGE_TIMEOUTWhere bridges post events: http://127.0.0.1:8081/api/bridge/events on a server; seconds Studio waits for a bridge (15)
STUDIO_LOCAL_BRIDGE_URL, STUDIO_LOCAL_BRIDGE_TOKEN, STUDIO_LOCAL_APP_URLThe one bridge and preview of the local driver
REVERB_*, VITE_REVERB_*Websockets for the live chat; Caddy proxies /app and /apps on the Studio host to Reverb
BRIDGE_FILE_MAXBridge: largest file the Files tab opens or saves, in bytes (512 KB)
BRIDGE_RUN_TIMEOUT, BRIDGE_RUN_OUTPUT, BRIDGE_RUN_HISTORYBridge: seconds a terminal command may run (600), bytes of output kept (200 KB), runs remembered (20)

config/studio.php holds the permission preset and the allowed modes per role, the model and effort fallbacks (live lists come from the bridge for the chat agent), and the terminal shortcuts. What changes per project (services, access rules, MCP servers) lives in the project settings, not in files. /etc/studio/studio.env holds what the helper and the updater need: the domain, the paths, the PHP that runs Studio, the repository releases come from (STUDIO_REPO), AUTO_UPDATE, UPDATE_CHANNEL (stable or beta), SYSTEM_UPDATE (the nightly server update, on by default) and SYSTEM_REBOOT (off by default).

Local development#

Terminal
composer setup && php artisan studio:make-admin
composer run dev # server, queue, logs, vite · add: php artisan reverb:start
cd ~/code/some-laravel-app && BRIDGE_TOKEN=local-bridge-token WORKSPACE_DIR=$PWD node ~/code/studio/bridge/bin/bridge.js

The bridge drives the claude on your machine with your login. Create a project in Administration, add yourself, open it: with the local driver the workspace is running at once and the chat talks to that bridge, no git or Claude account needed. php artisan db:seed --class=DemoSeeder gives the agency of the screenshots, password password for everyone.

Checks
composer test # pint, phpstan, pest
cd bridge && npm test # node:test with a stand-in Claude CLI
bash tests/installer/studio-update.test.sh # the updater in a sandbox