Skip to content
MyDSHMy DSH Field Notes
中文
Independently maintained; not affiliated with DeepSeek. No association with mydsh.dev or other MyDSH sites.

Home/Getting started/CLI and Web UI

Startup flags and defaults: --host, --port, --no-open, --trusted-host

You want another device on the LAN to reach it, want a different port, or are tired of a browser window opening every time.

VerifiedVersion and environmentChecked 2026-11-14
Host version
0.1.2-alpha.5
Flag source
verbatim dsh web --help output
Checked
2026-11-14

Copyable command

dsh web --help

There are two layers of flags and they are easy to confuse: the launcher picks a profile, the app serves it.

Launcher (dsh itself)

FlagWhat it does
--profile <name>Boot a profile under $DSH_HOME/profiles
--patch <path>Add a patch overlay on top of the profile, repeatable
--dump-configPrint the composed config tree and exit
--dump-default-configPrint the tree without the user layer and exit
-V, --versionPrint the version

Flags of the web app

Usage: dsh --profile web [options]

  --host <host>                  bind host
  --no-open                      do not open the Web UI in the default browser
  --port <port>                  listen port; pass 0 to let the OS pick a free one
  --trusted-host <authority...>  extra authority the /api browser-trust fence accepts
  -h, --help                     show this help

Defaults worth remembering:

  • --port 0 asks the OS for a free port and prints the one it got. The cheapest fix for a port clash you cannot kill.
  • --no-open only suppresses the browser window. The URL is still printed and the token still generated. Autostart scripts use it.
  • --trusted-host does not disable auth; it appends allowlist entries to the /api fence. Reaching it from another machine needs more than a host change.
  • --host 0.0.0.0 means LAN-reachable. Think first: anyone on that network with the token gets your quota and your file permissions.
For LAN use, keeping the 127.0.0.1 bind plus an SSH tunnel or a reverse proxy with your own auth is safer. Exposing 0.0.0.0 puts filesystem reach behind a 43-character string.

Read the flags for your own version

dsh --help
dsh web --help

Flags change between versions. 0.2.x and 0.1.x already differ; do not test an old flag table against a new build.

What counts as working

Check every line. All of them pass or the job is not done.

  • dsh web --help lists the four flags
  • --port 0 prints the actual port chosen
  • --no-open suppresses the window but still prints the URL

Where it fails

Symptom, cause, what to do — written in the order it actually happens.

SymptomCauseWhat to do
Still unreachable from another device after --host 0.0.0.0Binding changed, trust fence untouchedAdd the authority with --trusted-host, or use an SSH tunnel
Unknown option errorThis version does not have that flagCheck dsh web --help for the current set

Sources

Verified means measured here. Compiled means every line carries a source.