# Install Silos — a guide for AI agents

> You are an AI coding agent installing Silos for a person. This page is the whole procedure: which path to choose, the exact commands, what to ask the person and when, how to verify each step, and what usually fails. Human-facing docs: https://silosplatform.com/docs/install/

> **Not public yet.** The repository (https://github.com/cheapestinference/silos) and the npm package `silosplatform` are not published yet. This guide describes the install as it works once they are. If `git clone` answers 404, stop and tell the person so; do not look for the code elsewhere.

Silos is an open-source (MIT) web console that runs coding agents (Claude Code, OpenCode) as identities. It is one Node.js process with no database. It listens on port 3210 and answers `GET /healthz` with `{"ok":true}`.

## Rules for you, the agent

1. **Ask before you choose.** The three questions in the next section decide the path. Do not guess them.
2. **The access token is a password for the whole instance.** Never paste it into a commit, a log, an issue or a public channel. Hand the person the address with the token once, in this conversation, and nowhere else.
3. **Never expose port 3210 to the internet without TLS in front**, and never set `SILOS_HOST=0.0.0.0` on a bare machine. Transcripts contain secrets; the default bind is `127.0.0.1` on purpose.
4. **You cannot sign in to Claude for the person.** Signing in opens a URL they approve in their own browser. Stop there and ask.
5. **Do not set `ANTHROPIC_API_KEY` to "make it work".** Silos removes inherited `ANTHROPIC_*` and `CLAUDE_CODE_*` variables at start; which account an agent runs on is chosen inside Silos.
6. **Verify every step with the check given**, and report the result. Do not report success on a step you did not check.
7. **Do not install on a machine the person did not name.** If you are running inside a container or a remote shell, say where you are before you install anything.

## Checkpoint 0: ask the person

| Ask | Why |
| --- | --- |
| "Where should Silos run: on this machine, on Railway, or on a server (VPS) of yours?" | Decides the path below. |
| "Do you need to reach it from other devices or a phone? If so, do you have a domain name to point at it?" | A server install needs a domain and HTTPS, or a tunnel. A local install needs neither. |
| "Which email should be allowed to sign in?" (Railway, or a server with a public address) | It becomes `SILOS_OWNER_EMAIL`. Only needed for sign-in with Google or an email link; the token link works without it. |
| "Do you have a Claude subscription to sign in with?" | Agents on Claude Code run on it. Without one, an agent can run on OpenCode with another provider. |

## Decision tree

- The agents should work **on the person's own computer**, with the files already on it → **Path A: local**.
- The person wants it **always on, in the cloud, with the least setup** and has (or will create) a Railway account → **Path B: Railway**.
- The person has **their own server** (a VPS with Docker) and wants to self-host → **Path C: VPS with Docker Compose**.
- Unsure → Path A. It is the shortest, and the data is plain files that can be moved to a server later.

## Path A: local

### A1. Check the machine

```bash
node --version        # must be v22.13.0 or newer
claude --version      # Claude Code, for agents on Claude Code
git --version
tmux -V               # recommended: the real console needs it; without it only the chat view works
python3 --version && curl --version && jq --version   # used by the hooks and the skills
```

On Linux, the in-browser terminal (`node-pty`) compiles on install and needs a C/C++ toolchain: `sudo apt install build-essential python3` on Debian or Ubuntu. On macOS it ships prebuilt.

If something is missing, tell the person what and offer the install command. Do not upgrade Node.js or install system packages without their yes.

### A2. Install and start

First see whether the npm package is published:

```bash
npm view silosplatform version
```

**If that prints a version**, use the package. It installs the command `silos`:

```bash
npm install -g silosplatform
silos --no-open       # starts the server in the foreground and prints the address
```

(`npx silosplatform` runs it once without installing. `silos doctor` checks the machine, and `silos service install` keeps it running after a reboot.)

**If npm answers 404**, run it from source:

```bash
git clone https://github.com/cheapestinference/silos.git && cd silos
npm ci                # installs from the lockfile; compiles node-pty
npm run build         # builds the web UI and the server
npm start             # http://127.0.0.1:3210
```

The server runs in the foreground. Start it in a terminal the person keeps (a tmux session, for example), not in a shell of yours that ends with this conversation.

### A3. Verify

```bash
curl -fsS http://127.0.0.1:3210/healthz        # {"ok":true}
test -s ~/.silos/token && echo "token written"
```

On start the server prints `Silos at http://127.0.0.1:3210/?token=<token>`. The token also lives in `~/.silos/token`.

### A4. Hand over

Give the person the address `http://127.0.0.1:3210/?token=<token>` and ask them to open it. Opening it pairs that browser. Then, in the browser:

1. If the machine has never signed in to Claude, the first screen offers **Sign in to Claude ›**. The person does that.
2. Silos asks "Who do you want working for you?" The person names the first agent.
3. Optional, recommended: Settings › Engines › Claude Code › *Silos hooks* › **Install hooks**. Until then a Claude Code agent starts without the Silos briefing.

## Path B: Railway

Railway runs Silos as **one service built from the repository's `Dockerfile`, with one volume at `/data`** and no database. Canonical guide: https://github.com/cheapestinference/silos/blob/main/docs/deploy/railway-template.md

### B1. Ask

- The email the person will sign in with (`SILOS_OWNER_EMAIL`).
- That they have a Railway account. Creating the project is their click, or yours only if they gave you a Railway CLI session.

### B2. Deploy

If the README (https://github.com/cheapestinference/silos#deploying) shows a **Deploy on Railway** button, the person presses it and fills in `SILOS_OWNER_EMAIL`. The template sets everything else.

Without the template, create a service from the repository and set these **once, before the first deploy**:

| Setting | Value |
| --- | --- |
| Builder | Dockerfile (path `Dockerfile`) |
| Volume | one, mounted at `/data` |
| Healthcheck path | `/healthz` (timeout 120 s) |
| Restart policy | Always |
| Replicas | 1 |
| Serverless / sleep | off |
| `SILOS_TOKEN` | a long random value (`${{secret(32)}}` in a template) |
| `SILOS_ID_URL` | `https://auth.silosplatform.com` |
| `SILOS_OWNER_EMAIL` | the person's email |

Do not set `SILOS_HOST`, `PORT` or `ANTHROPIC_API_KEY`.

### B3. Verify

```bash
curl -fsS https://<the-railway-domain>/healthz                                   # {"ok":true}
curl -s -o /dev/null -w '%{http_code}\n' https://<the-railway-domain>/api/agents  # 401 without the token
```

### B4. Hand over

The person opens `https://<the-railway-domain>/?token=<SILOS_TOKEN>` once (the value is in the service's Variables tab), or presses **Continue with Google** with the email they gave. Then they sign in to Claude: see "Signing in to Claude on a server" below.

## Path C: a VPS with Docker Compose

Canonical sources: the README's self-host section (https://github.com/cheapestinference/silos#deploying) and the commented compose file (https://github.com/cheapestinference/silos/blob/main/deploy/docker-compose.yml). If they disagree with this page, they win.

### C1. Ask

- SSH access to the server, and confirmation that it is the right one.
- The domain name that will point at it (for HTTPS), or whether a tunnel such as cloudflared or Tailscale is preferred.
- Optional: the email allowed to sign in.

### C2. Check the server

```bash
docker --version && docker compose version    # Docker with the Compose plugin
git --version
```

### C3. Get the code and set the variables

```bash
git clone https://github.com/cheapestinference/silos && cd silos
cp deploy/.env.example .env
```

Edit `.env` and set `SILOS_TOKEN` to a long random value:

```bash
openssl rand -hex 16
```

Keep `.env` readable only by its owner (`chmod 600 .env`).

### C4. Start

```bash
docker compose -f deploy/docker-compose.yml up -d --build
```

The first build takes several minutes. The compose file publishes the port on the server's loopback only (`127.0.0.1:3210`) and keeps everything persistent on one Docker volume mounted at `/data`.

### C5. Verify

```bash
curl -fsS localhost:3210/healthz                                                          # {"ok":true}
docker compose -f deploy/docker-compose.yml ps                                             # the silos service is running (healthy)
curl -s -o /dev/null -w '%{http_code}\n' -H 'X-Forwarded-For: 1.2.3.4' localhost:3210/api/agents   # 401: a remote request needs the token
```

### C6. Put HTTPS in front

Silos speaks plain HTTP and serves the UI, `/api` and the `/ws` WebSocket from one origin. Put a reverse proxy or a tunnel on the same server, forwarding to `127.0.0.1:3210`. With Caddy and a domain whose DNS already points at the server:

```caddyfile
silos.example.com {
    reverse_proxy 127.0.0.1:3210
}
```

Two rules, and both matter: **never configure the proxy to strip the forwarding headers** (`X-Forwarded-*`), and **never make it pass `Host: 127.0.0.1` through unchanged**. Either would make internet traffic look local. Caddy and cloudflared add the headers by default.

Verify from outside the server:

```bash
curl -fsS https://silos.example.com/healthz                                    # {"ok":true}
curl -s -o /dev/null -w '%{http_code}\n' https://silos.example.com/api/agents  # 401
```

Optional sign-in with Google or an email link instead of carrying the token: add `SILOS_ID_URL=https://auth.silosplatform.com`, `SILOS_OWNER_EMAIL=<the person's email>` and `SILOS_PUBLIC_URL=https://silos.example.com` to `.env`, then run the `up -d` command again.

### C7. Hand over

The person opens `https://silos.example.com/?token=<SILOS_TOKEN>` once on each device; the browser keeps it. Then they sign in to Claude, below.

To update later: `git pull` and the same `docker compose … up -d --build`. The volume keeps the data.

## Signing in to Claude on a server (paths B and C)

The image carries the `claude` CLI with no login. The person signs in once, from Silos:

1. Open Silos and start a conversation with an agent, as the **real console**.
2. Claude Code starts in that console and, with no account yet, walks through its own login (or type `/login`). It prints a URL.
3. The person opens the URL, approves, and pastes the code back into the console.

The login is stored on the `/data` volume and survives redeploys.

## What the person should know afterwards

- **Where the data is.** Locally: `~/.silos` (Silos' state) and `~/.claude/projects` (Claude Code's transcripts). In the image: the `/data` volume (`/data/home/.silos`, `/data/home/.claude`, and `/data/projects` for the agents' working folders). Backing up means copying those.
- **In the Docker image, agents have passwordless sudo.** The container is single-tenant and its boundary is the isolation. Nothing should be put in it, or on its volume, that its agents must not read.
- **A request from the machine itself can read without the token; every change needs it.** Everything that arrives through a proxy or tunnel needs it for every request.

## Settings

Settings ride the environment.

| Variable | What it sets | Default |
| --- | --- | --- |
| `SILOS_PORT` | The port (`PORT` is read as a fallback). | `3210` |
| `SILOS_HOST` | The bind address. Keep it local outside a container; the Docker image sets `0.0.0.0`. | `127.0.0.1` |
| `SILOS_TOKEN` | A fixed access token instead of the generated one. Changing it rotates the token. | generated into `~/.silos/token` |
| `SILOS_DATA_DIR` | Silos' own state. | `~/.silos` |
| `SILOS_ROOT` | Where Claude Code transcripts are read from. | `~/.claude/projects` |
| `SILOS_ID_URL` | Turns on «Continue with Google» through the Silos ID broker (`https://auth.silosplatform.com`). Needs `SILOS_OWNER_EMAIL`. | unset (sign-in off) |
| `SILOS_OWNER_EMAIL` | Who may sign in through Silos ID: one email or a comma list. | unset |
| `SILOS_PUBLIC_URL` | The instance's public origin, used by Silos ID. | Railway's public domain when there is one |

## Common failures

| What you see | Cause | Fix |
| --- | --- | --- |
| Silos stops at start and names the Node.js version | Node.js older than 22.13 | Install Node.js 22.13 or newer, with the person's yes. |
| `npm ci` or `npm install` fails while building `node-pty` | No C/C++ toolchain on Linux | `sudo apt install build-essential python3`, then install again. |
| "could not listen on" the port, locally | Something else uses 3210 | Start with `SILOS_PORT=<another port>` and use that port in every check. |
| "could not listen on", in a container | `SILOS_HOST` was overridden to `127.0.0.1` | Remove the override; the image sets `0.0.0.0`. |
| Conversations open only as chat, no console | `tmux` is not installed | Install tmux and start a new conversation. |
| `401` on `/api/...` | No token, or the request came through a proxy | Open the `?token=` address once in that browser. For scripts, send the token in the `x-token` header. |
| The first screen says the machine is not signed in to Claude | No Claude login yet | The person signs in: **Sign in to Claude ›** locally, or the console login on a server. |
| Setting `ANTHROPIC_API_KEY` changes nothing | Silos drops inherited `ANTHROPIC_*` variables at start | Sign in to Claude from Silos, or run the agent on OpenCode with another provider. |
| Data gone after a redeploy (Railway, Docker) | The volume is not mounted at `/data` | Mount it at `/data` and sign in again. |
| The deploy refuses to start and asks for a volume | No volume | Add one at `/data`. |
| `docker compose` says `.env` was not found | Step C3 was skipped | `cp deploy/.env.example .env` at the repository root. |
| The page loads through the proxy but the console never connects | The proxy does not forward WebSockets | Use a plain `reverse_proxy` (Caddy upgrades `/ws` by itself) or turn WebSockets on in the proxy. |
| `git clone` answers 404 | The repository is not public yet | Stop and tell the person. |

## More

- Everything about Silos in one file: https://silosplatform.com/llms-full.txt
- The docs, as markdown: https://silosplatform.com/llms.txt
- Security and data: https://silosplatform.com/docs/security.md
- Remote access: https://silosplatform.com/docs/remote-access.md
- The repository: https://github.com/cheapestinference/silos
