This page covers running all of Claude Science on a remote machine. To keep Claude Science on your own computer and have it run jobs on a machine you reach over SSH, see Remote compute clusters.
Install dependencies
Claude runs code inside a sandbox, and the sandbox needs two system packages: bubblewrap and socat. Installing them takes administrator (sudo) access. Without it, see Run Claude Science without administrator access.
On Fedora, RHEL, or Arch, use the command for your distribution from the Linux tab of Install. On Ubuntu or Debian, run:
The sandbox requires bubblewrap 0.8.0 or later; check with
bwrap --version. Ubuntu 24.04 ships a new enough version, and Ubuntu 22.04 doesn’t. If Claude Science can’t set up the sandbox, it refuses to start rather than run code unsandboxed.Run Claude Science without administrator access
If you don’t have administrator (root orsudo) access to a shared server or cluster, choose one of these:
- Ask the server’s administrator to set up what the sandbox needs: bubblewrap 0.8.0 or later, socat, and a kernel that allows unprivileged user namespaces.
- Use the server as an SSH host. Install Claude Science on your own computer and add the server as an SSH host (see Remote compute clusters), if your organization allows SSH hosts. Claude runs jobs on the server under your own account, with your approval. Jobs run outside the sandbox, so the server doesn’t need bubblewrap, socat, or the kernel setting, and you don’t need administrator access there.
sudo. The installer puts the claude-science command in ~/.local/bin, or in another folder you own if you export CLAUDE_SCIENCE_INSTALL_DIR with that folder’s path before you run it.
If you run Claude Science on a cluster’s login node, these points differ from a server you have to yourself:
- Check your site’s rules first. Claude runs its analysis code on the machine where Claude Science runs, and many sites limit long-running or heavy work on login nodes.
- Choose your own port, because someone else may already be using the default port, 8000. Start Claude Science shows how to pass a port. After you start it,
claude-science urlprints both ports. Forward each one with that number on both sides. - If the cluster’s address sends you to one of several login nodes, connect the tunnel to the node where Claude Science is running. Running
hostnameon that node prints its name. - Claude Science needs about 5 GB in your home folder for its environments, even if you keep your projects elsewhere.
Install Claude Science
claude-science command in ~/.local/bin. If it prints a PATH line at the end, add that line to your shell profile. Then confirm the command works:
Forward the ports from your computer
Set up the tunnel before you start Claude Science: the sign-in link it prints is only valid for about three minutes. By default, the web app listens only on the server’s localhost, so it isn’t exposed to the network. An SSH tunnel makes it reachable from your computer. Claude Science uses two ports: one for the web app (8000) and a separate one for previews of generated HTML, served from its own origin so a previewed page can’t read your session. The preview port defaults to the web app port plus one, so 8001. Forward both. In a terminal on your computer:claude-science url prints both ports. Add a forward for the preview port it prints, with that number on both sides (-L <port>:localhost:<port>).
Start Claude Science
On the server:http://localhost:8000/?nonce=..., right away, and continues setting up its starter Python and R environments; the setup can take a few minutes and about 5 GB of disk. If port 8000 or 8001 is taken on either machine, pass a different port to serve (for example --port 8765) and change the ssh -L forwards to match. Previews then use the next port up, 8766, if it is free.
To run it in the background instead, use claude-science serve --no-browser --detached. claude-science status reports whether it’s running, and claude-science stop stops it.
Sign in
Open the printed link in your computer’s browser. The link is single-use and expires about three minutes after it’s printed; runclaude-science url on the server to print a fresh one at any time. Restarting with claude-science stop then claude-science serve --no-browser also prints a fresh link.
Sign in with your Claude account. If the sign-in redirect can’t find its way back through the tunnel, choose Paste code instead on the sign-in screen. Then complete the setup wizard as described in Get started.
Keep it up to date
claude-science update checks for and installs updates. See Command line settings for the command reference, including logs and the serve flags.