hostc
Self-hosting

Use hostc.dev or your own server.

hostc can use the hosted service or a server you deploy yourself. The CLI and SDK both accept a server URL.

Server URL

Point the CLI or SDK at the base URL of your hostc server.

Hosted

Use https://hostc.dev for the hosted service.

Self-hosted

Use your own Worker origin, for example https://hostc.example.com.

CLI configuration

Use config for a persistent self-hosted server URL. Use environment variables for one-off local, staging, or temporary overrides.

Persistent config
hostc config set server-url https://hostc.example.com
hostc config get server-url
hostc config unset server-url
One-off environment
HOSTC_SERVER_URL=https://hostc.example.com npx hostc@latest 3000
HOSTC_DEBUG=1 npx hostc@latest 3000
HOSTC_DISABLE_UPDATE_CHECK=1 npx hostc@latest 3000

Hosted vs self-hosted

The protocol is the same. Only the server URL changes.

CLI

For everyday self-hosted usage, prefer hostc config set server-url. Use --server or HOSTC_SERVER_URL for temporary overrides.

SDK

Set the serverUrl option when creating aHostcClient.