studio start
Start Studio runtime in background mode
studio start
Start Studio runtime in background mode.
Startup initializes the Studio runtime registry and process state.
If no local token exists yet, startup automatically creates a console-bootstrap token and prints the plain token once in startup output.
Startup also tries to discover the machine's public IP and saves it to Console Env as DOWNCITY_PUBLIC_HOST. Later, agent contact link generation prefers this address so link codes do not fall back to 127.0.0.1.
If you also want to start Console in one step, use studio start --console, studio start -a, or studio start -p.
If you pass -p/--public or -h/--host, the CLI also starts Console automatically.
If you previously enabled persisted public mode with studio public, plain studio start also reuses that saved Console binding unless you override it explicitly.
Usage
studio startstudio start --consolestudio start -pCommon options
-a, --all: start Console together--console: start Console together-p, --public [enabled]: start Console in public mode and bind it to0.0.0.0-h, --host <host>: Console host; when provided, Console is started automatically
External access
- Plain
studio startonly starts the runtime and does not expose the Web Console. studio start --consolestill binds Console to127.0.0.1:5315by default.studio start -pstarts Console automatically and switches the bind address to0.0.0.0:5315, which is suitable for server access from outside.studio public onmakes that public Console behavior persist for future plainstudio startruns.- When Console is bound to
0.0.0.0, use the server IP or domain to connect, not127.0.0.1. - In public mode, startup output also prints
Public URL. - If the machine cannot determine a real public IP by itself (for example behind NAT / reverse proxy / load balancer), start city behind a reachable server, domain, or tunnel.
studio startsaves the auto-detected public IP as globalDOWNCITY_PUBLIC_HOST; if the deployment environment already injectsDOWNCITY_PUBLIC_URLorDOWNCITY_PUBLIC_HOST, it does not overwrite the existing value.
Port meanings
5314: Studio runtime API port forhealth, managed plugin, plugin, and related endpoints.5315: Console Web UI port for browser access.
Related commands
Example Output (Based on Current Implementation)
The examples below are aligned with current command implementations in cli/studio/src (including default output mode and field structure). Placeholder values are used for environment-specific fields.
$ studio start --console
studio v1.0.0
✅ Studio runtime started
pid: <runtimePid>
log: <studioRuntimeLogPath>
port: 5314
usage: Runtime API / managed-plugin endpoints (health, plugin, task, chat)
✅ Console started
pid: <consolePid>
url: http://127.0.0.1:5315
public_url: http://203.0.113.10:5315
log: <consoleLogPath>
port: 5315
usage: Console Web UI / control plane
✅ Console token initialized
subject: local-cli
name: console-bootstrap
token: dc_xxx
next: paste the Bearer Token above into Console UI / Extension$ studio start
studio v1.0.0
✅ Studio runtime started
pid: <runtimePid>
log: <studioRuntimeLogPath>
port: 5314
usage: Runtime API / managed-plugin endpoints (health, plugin, task, chat)