claude-science serve starts Claude Science and opens the web app in your browser at a single-use login link. On Linux, everyday use is that one command. The others manage the running program: they mint login links, report status, follow logs, install updates, and merge data directories. On Windows, the installer adds the command to your PATH for new terminals. There the app window you open from the Start menu is the everyday way in, and the commands below manage the same running program.
Commands
import has no preview and no undo. Back up the data directory before you run it; running the same import a second time is safe.Roll back to an earlier build
claude-science update --to <build> installs one specific build. <build> is an 8-character build ID such as 3f9a01bc, not a version number. claude-science update --check prints the ID of the installed build as Current.
Claude Science checks for updates in the background and shows Update available when one is ready. Note the Current ID before you choose Restart to update, so you know which build to go back to.
If a newer build has already changed how your data directory stores sessions, the command refuses an older build and installs nothing, because an older build can permanently lose part of every session it writes to. The refusal names a flag that overrides it, --accept-layout-downgrade, and says when that is safe. If you cannot tell from the message whether it is safe for you, do not add the flag.
An older build that does install can still refuse to start if a newer build has already updated the database in your data directory. When it does, it stops at startup and changes nothing in your data. At a terminal, it says the data was
written by a NEWER version. To start the app again, run claude-science update, which installs the latest build.Global flags
These two work on every command. On Windows,~ in the defaults below is your user profile folder, %USERPROFILE%.
The login link
When serve starts, it prints a line of the formWeb UI → http://localhost:<port>/?nonce=.... The nonce is a one-time password: it signs one browser tab in and then expires, about three minutes after it is printed. The signed-in tab stays signed in until you restart the program.You never need to keep a link. claude-science open mints a fresh one and opens it in your browser whenever you want to sign in again. The app listens on 127.0.0.1 unless you change
--host, so it is reachable only from the machine it runs on. For a machine you reach over SSH, first forward two ports from your computer, the web app port and the preview port (by default the web app port plus one), as Run on a remote Linux server shows. Then run claude-science url on that machine and open the link it prints in your own browser.
Flags for serve
Dangerous flags
claude-science serve accepts two flags that each turn off a protection.
If your organization manages the network allowlist, the app ignores --dangerously-no-sandbox and keeps the sandbox on. If the app learns of that setting only after it has started without the sandbox, it pauses new sessions and messages until you restart it.
Environment variables
DO_NOT_TRACK, set to any value other than 0 or false, turns usage analytics and error reports off. It is the same switch as disable_telemetry = true in the configuration file. GITHUB_TOKEN (or GH_TOKEN) is optional and is used only against api.github.com, to lift the rate limit when you install a skill from a GitHub repository. Claude Science also reads the standard proxy variables (HTTPS_PROXY, HTTP_PROXY, NO_PROXY, and ALL_PROXY); see Use Claude Science on a corporate network. The proxy address variables are the one case where the environment overrides the configuration file, and NO_PROXY is merged with the no_proxy key rather than replacing it. Every other setting belongs in the configuration file.
An app started from the macOS Dock or Finder, or from the Windows Start menu, does not see variables exported in a terminal. The macOS app reads the env file in the data directory (by default ~/.claude-science/env) when it starts, so put the variable there as a KEY=VALUE line, then quit and reopen the app. On Windows, set it as a user environment variable, then quit and reopen the app. See How the environment variables reach the app.
See also
Run on a remote Linux server
Install Claude Science on a server and use it from your own browser through an SSH tunnel.
Configuration file reference
Find the
config.toml file and set its network-related keys.Remote compute clusters
Connect an SSH host and run jobs on it.