Pick a command
Both commands start the same server and accept the same network options:| Command | What it does |
|---|---|
100xprompt web | Starts the server and opens the web interface in your browser. |
100xprompt serve | Starts a headless server with no interface - ideal for scripting, the SDK, or remote access. |
Network options
| Flag | server key | Default | Description |
|---|---|---|---|
--port | port | Auto (tries 4096, then any free port) | Port to listen on. |
--hostname | hostname | 127.0.0.1 | Address to bind to. Use 0.0.0.0 to accept connections from other devices. |
--mdns | mdns | false | Advertise the server over mDNS. Enabling it defaults the hostname to 0.0.0.0. |
--cors | cors | [] | Extra browser origins allowed to connect. Repeatable. |
server
configuration, then to the defaults above.
Choose a host and port
The server binds to127.0.0.1 by default, which is reachable only from your own machine.
To pin it to a specific port:
0.0.0.0, 100xprompt web prints both a local URL and the LAN URLs other
devices can use, so you can copy the right one for your phone or a second machine.
Set the same values once in your config so every web/serve run uses them:
100xprompt.json
Advertise the server with mDNS
Looking up your machine’s IP every time is tedious. With--mdns, the server advertises
itself on your local network so you can reach it by a friendly name instead:
0.0.0.0 automatically (unless you set a hostname yourself) and
publishes the service as 100xprompt.local. mDNS is skipped when the server is bound only to
loopback, since there would be nothing for other devices to find.
Allow extra browser origins with CORS
Browsers may connect fromlocalhost and 127.0.0.1 origins and from trusted 100xprompt web
origins out of the box. Suppose you serve a custom front end or a dashboard from another
origin. Add it with --cors (repeatable) or the cors array:
100xprompt.json
100xprompt.json and add one-off origins on the command line.
Expose to a network safely
Related
- Web Interface: use 100xprompt in the browser, from your desktop or another device.
- SDK: drive a headless 100xprompt server programmatically.
- Security: how 100xprompt handles access, data, and trust boundaries.
Web Interface
Use 100xprompt in the browser, from your desktop or another device.
SDK
Drive a headless 100xprompt server programmatically.
Security
How 100xprompt handles access, data, and trust boundaries.