Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shobcoder/shob/llms.txt
Use this file to discover all available pages before exploring further.
shob serve starts Shob as a persistent, headless HTTP server. Once running, other processes — including shob run --attach from a different terminal, a remote machine, or a CI pipeline — can connect to it and dispatch agent tasks without spinning up a new process each time. The server stays alive until you stop it.
Usage
Flags
The hostname (or IP address) the server binds to. Set to
0.0.0.0 to accept connections from all network interfaces. When --mdns is enabled and no hostname is explicitly configured, Shob automatically defaults to 0.0.0.0.The TCP port to listen on. When left at the default (
0), the operating system assigns a random available port. Set an explicit port (e.g. 4096) for stable, predictable URLs.Enable mDNS service discovery so other devices on the local network can find the server automatically. Defaults
--hostname to 0.0.0.0 when enabled.Custom domain name to advertise via mDNS. Only relevant when
--mdns is enabled.Additional origin domains to allow for Cross-Origin Resource Sharing (CORS). Can be specified multiple times. This is useful when accessing the server from a browser-based client hosted on a different origin.
Password protection
The server reads theSHOB_SERVER_PASSWORD environment variable to enforce HTTP Basic Authentication on all endpoints. If this variable is not set when shob serve starts, it prints a warning:
SHOB_SERVER_PASSWORD is configured, clients must supply the password via --password (or the SHOB_SERVER_PASSWORD env var on the client side) when connecting with shob run --attach.
Server output
After binding successfully, the server prints its address:Ctrl+C (or your process manager) to stop it.
Example
Start a server on a fixed portNetwork options (
--hostname, --port, --mdns, --mdns-domain, --cors) can also be persisted in your global Shob configuration file so you don’t need to repeat them on every invocation.