# Install Silon on the person's own server These are the instructions for AI assistants acting for a person; people read https://silon.tech/install/. The person owns the account, the cloud project and the server; ask before creating anything that costs money, and never paste install tokens, register or setup links, or API keys anywhere public. Silon is a multi-channel messaging platform by KUWAITNET; what it is and everything else: https://silon.tech/llms.txt **How an assistant installs it:** 1. **Ask first, in one short message.** "Install silon.tech on my Google Cloud" is all the person needs to write. Read this file, then ask for what has no default and they have not said (there, the cloud is said): - **Where**: a new server on Google Cloud, AWS or Azure, or a Linux server they already have? - **The domain** people will open it at, such as chat.example.com (a name they can add a DNS record for). Having none is fine: it opens at the server's IP address, with a browser warning, and a domain can be added later. - **Their email**: the registration code and the certificate's notices go there. - **A yes to the cost**: about what that server costs a month in their cloud, and the trial terms (rule 2). Don't ask about the rest; say what you chose. The project: list them (`gcloud projects list`) and ask only when there are several; when you can't run that, they set it themselves (`gcloud config set project …`). The region: the default, or one near them. The database: on the server, unless they ask for a managed one. The size, disk, names and flags: the defaults. Then start, and don't ask again before the register link (rule 3). 2. **There are two kinds of install, and the person needs no licence to start.** Follow the person's choice. For a purchased license, create commands from https://silon.tech/o/install/, then have the person supply the token privately as `SILON_INSTALL_TOKEN` in the execution shell. For a free trial, **pass `-agent-trial`** to `silon deploy` or `silon install`. - Tell the person the terms: the trial runs 7 days from the install, once per person and once per server; an install that failed does not use it up (run it again). They register with their email first (rule 3), which gives them an account at https://silon.tech/o/ where they see the server and can upgrade it to a licence at any time (https://silon.tech/pricing/). When the trial ends without one the server locks: its dashboard opens read-only, messages keep arriving but nothing can be sent or changed, and its API is off. Nothing is deleted, and a licence unlocks it. 3. **The person registers first, before anything is created.** The first thing a `-agent-trial` command prints is a `register` step with a `url` (`"step":"register","status":"waiting"`; `silon install` prints it as text). Give them that link at once, as it is: their email is already filled in when you pass `-email`. They press "Send the code" and type the 6 digits from their inbox (about 20 seconds), and the command goes on by itself. It waits 15 minutes; after that, run it again. Don't open the link, ask them for the code, or use your own address: the account is theirs. 4. **Use the non-interactive install flags**: `silon deploy … -agent-trial -yes -json` after cost approval, or `silon install -y -agent-trial …` over authorized SSH for a trial. Licensed installs replace `-agent-trial` with the privately exported `SILON_INSTALL_TOKEN`. `silon install` on its own opens a full-screen installer for people. If one is open, stop it with ctrl+c and run the command with its flags instead. 5. **`silon deploy` makes the VM, the address, the firewall and the install in one command**, so there is no server to create by hand. The commands on the site, in the docs and in the installers' "Next" lines are the ones for a bought licence. 6. **Pick your way in: the first that fits.** None needs a cloud connector, a cloud credential given to you, or a licence key. - You have a terminal where the person's cloud is signed in (their computer): run `silon deploy`, below. - You can drive a browser: open their cloud's browser shell (https://shell.cloud.google.com, https://console.aws.amazon.com/cloudshell or https://shell.azure.com), let them sign in, and run `silon deploy` in it yourself. Keep the tab open; files stay in the home directory if it disconnects. **In Google Cloud Shell, authorize first**: run `gcloud projects list`, ask the person to click Authorize in the “Authorize Cloud Shell” dialog it brings up, and go on when `gcloud auth list` shows their account. If that says “No credentialed accounts”, the dialog was closed or hidden: choose More (the three dots) and Restart in Cloud Shell's toolbar, then do the same again. Don't run `gcloud auth login` there. - They gave you SSH to a Linux server they have: "A server that already exists", below. - None of these (a chat that can only talk, or whose commands run in a sandbox of its own, where their cloud is not signed in): give them the `silon deploy` commands below, filled in, to paste into their cloud's browser shell. In Google Cloud Shell they first run `gcloud projects list` and click Authorize (the fix above is for them too); they keep the tab open until it ends. For a person, end the last line at `-yes` and drop the `(umask 077; nohup` in front: they see the register link first, then the progress, and the address and the setup link at the end. 7. **At the end** give the person the setup link (if they ran it themselves they have it, and keep it private), then offer the server's MCP server for their assistant (below). Silon runs on one Linux server: Ubuntu 24.04, 2 vCPU, 8 GB RAM, 50 GB disk, ports 80 and 443 open. `silon deploy` makes an `e2-standard-2` on Google Cloud (zone `europe-west1-b` unless you pass one), a `t3.large` on AWS or a `Standard_B2ms` on Azure, with a static IP: about US$60 a month on Google Cloud at list price; look up the price for the person's cloud and region when you can, and say it is an estimate. The project needs billing on. It turns on the Compute Engine API if it is off, and needs an account that may create VMs and turn on APIs in the project (Owner, Editor, or Compute Admin with Service Usage Admin). **Keep the person's part small.** Use the non-interactive flags in rule 4. The person handles any required sign-in, the DNS A record (unless you can add it with their approval), and the owner setup link. **Use `silon deploy` to create a new server: one command.** It runs on the person's laptop or in their cloud's browser shell (Google Cloud Shell, AWS CloudShell, Azure Cloud Shell), which are already signed in to their cloud. A browser shell is not a server: never run `silon install` or start Silon inside one. Run these, in order, in a terminal where the cloud's own CLI (`gcloud`, `aws` or `az`) is signed in: ``` curl -fsSL https://get.silon.tech/go/install-cli.sh | sh export PATH="$HOME/.local/bin:$PATH" (umask 077; nohup silon deploy gcp -host chat.example.com -email ops@example.com -agent-trial -yes -json > silon-deploy.jsonl 2>&1 &) ``` **It takes about 10 minutes (up to 25 with Cloud SQL), longer than most assistants' limit for one command**, so the last line runs it in the background. Read `tail -n 2 silon-deploy.jsonl` every minute or so: one JSON object per line, `"step":"done"` is the end, `"status":"fail"` is a failure, and a line that is not JSON is an error message. Never kill it and never start a second one. The `static_ip` step's detail is the new address, and the `dns` step has the A record; read the whole file if you missed them. `done` does not wait for DNS or the certificate. Within seconds the `register` line is there: give the person its link and go on reading. A `links` line, as soon as the server exists, has the setup link: if the command is cut off after it, the server finishes installing by itself. If it is cut off before it, look for what the lines say was created and tell the person. Delete the file once they have it. - **Ask the person before you run it with `-yes`.** `-yes` creates the resources without asking: a VM (2 vCPU, 8 GB), a static IP and a firewall rule for ports 80 and 443 in their cloud account, which their cloud bills them for. `-json` prints one JSON object per step and never draws an interactive screen; use it whenever an assistant runs the command. - Use `aws` or `azure` in place of `gcp`. On GCP, set the project first: `gcloud config set project ` (or `-project`). The place and the machine are flags: `-zone europe-west3-a` on GCP, `-region` on AWS, `-location` on Azure; `-size e2-medium` for another machine type (the default has 2 vCPU and 8 GB; 2 vCPU and 4 GB is the least it runs on) and `-disk`. Without `-host` (name the server with `-name silon-chat` instead), the server answers on its IP address with a temporary certificate. - With `-host`, a step prints the DNS A record to add, with your own DNS tool if you have one (on Cloudflare: DNS only, not proxied); the server gets its trusted certificate once the name points at it. - **The last step has the setup link** (`setup_url`), `https:///setup/#…`, which creates the owner account on the server, once. Give it to the person; don't open it yourself. - The same step has `mcp_url`, the new server's MCP server: once the person has their certificate, suggest they add it to their assistant (below). - For a server on a purchased license, use **Copy for your AI assistant** on https://silon.tech/o/install/ after creating the commands. Have the person export `SILON_INSTALL_TOKEN` using hidden input in the same shell. Remove `-agent-trial` when using that token. The `-approve` flow is also available when the license is free to select in the browser. - If creating the cloud resources fails, the ones already made are removed. If the install on the server fails, the server is kept and the commands to delete it are printed. If a command fails, show the person the exact error rather than trying another install method. - `-ssh-from ` opens SSH to one address (closed by default). - **The database:** on the server is the default, suits most installs and needs no flag; say so before you run it, and don't ask unless the person wants something else. Installing again can't change it (moving later is a dump and restore). For heavy traffic or managed backups: - on GCP, `-database cloudsql` makes one on a private IP in the server's region (`-db-tier`, `-db-ha` for a standby). It costs more (from about US$50 a month for the database) and adds 5 to 15 minutes: say so before you run it. If a deploy with it fails or is cut off, check that no database was left: `gcloud sql instances list`; - a PostgreSQL 17 (no other version) the person already has (Cloud SQL, Amazon RDS, Azure Database for PostgreSQL) that the new server can reach privately. Its URL holds a password: never ask for it in the chat, and never put it in a command. Have the person save it where you run the deploy (`umask 077; cat > ~/silon-db-url`, paste `postgres://user:password@host:5432/silon`, Ctrl+D; a `#`, `/`, `@` or `%` in the password is percent-encoded), then put `SILON_DATABASE_URL="$(cat ~/silon-db-url)"` right before `nohup` in the command above, and delete the file at the end. `silon install` on a server that already exists reads the same variable: `SILON_DATABASE_URL="$(cat ~/silon-db-url)" sudo --preserve-env=SILON_DATABASE_URL /opt/silon/bin/silon …`; - `-print-user-data` creates nothing, so it takes only the second. Other ways in: - **A server that already exists** (a Linux VM with ports 80 and 443 open, reached over SSH, not a browser shell): run on that server ``` command -v docker >/dev/null || curl -fsSL https://get.docker.com | sudo sh curl -fsSL https://get.silon.tech/install.sh | sudo env SILON_HOME=/opt/silon sh secret=$(openssl rand -base64 32 | tr '+/' '-_' | tr -d '=') sudo /opt/silon/bin/silon -C /opt/silon install -y -agent-trial -host chat.example.com -email ops@example.com -setup-hash "$(printf %s "$secret" | sha256sum | cut -d' ' -f1)" echo "https://chat.example.com/setup/#$secret" ``` It prints the register link first (rule 3) and waits for the person, then starts on their free trial. Give them the setup link the last line prints: it creates their owner account in their browser, once, so they never type a password into your session. (Without `-setup-hash`, the owner account comes from `sudo /opt/silon/bin/silon -C /opt/silon admin create`, which asks for their password: let them type it, don't choose it for them.) For a purchased license, omit `-agent-trial`, have the buyer export `SILON_INSTALL_TOKEN` privately, and pass `--preserve-env=SILON_INSTALL_TOKEN` to `sudo`. Without either path the installer waits for a `license.jwt` (an air-gapped server). - **An install already waiting for a licence** (someone ran `silon install` without `-agent-trial`; it shows a fingerprint and waits for `license.jwt`): nothing is lost, and nothing needs buying. Stop it with ctrl+c, then on that server, in its directory (`~/silon` or `/opt/silon`): ``` cd ~/silon secret=$(openssl rand -base64 32 | tr '+/' '-_' | tr -d '=') ./bin/silon install -y -agent-trial -email ops@example.com -setup-hash "$(printf %s "$secret" | sha256sum | cut -d' ' -f1)" echo "https://chat.example.com/setup/#$secret" ``` It keeps the address and the settings it has, prints the register link and waits for the person, then starts on their trial. Give them the setup link. - **Any other cloud**: `silon deploy -print-user-data -host chat.example.com -agent-trial` prints the register link on stderr and waits for the person, then the cloud-init to paste as the new server's user data and the setup link on stderr. The server must be created within 24 hours. ## Configure a self-hosted server On the server, the `silon` CLI configures what the admin dashboard configures, through the same code: - `silon ops` lists every operation and its inputs, from the installed release. - `silon [flags]`, for example: - `silon apikeys create -name "Shop backend" -mode live -write-env /path/to/app/.env` writes the key into the file and prints only its prefix, so the key never enters a transcript; - `silon webhooks create -url https://shop.example.com/silon -events message.delivered,message.failed`; - `silon members invite -email lina@example.com -role admin`; - `silon providers create …` and `silon email accounts create -f mailbox.json` for SMS and email. - `-json` for machine output, `-f file.json` for a whole input, and secrets on stdin (`--stdin`), never as flag values. - Connecting WhatsApp needs the person: Meta's signup runs in their browser. ## The server's MCP server - [Silon docs MCP server](https://silon.tech/mcp): search and read the API reference from any MCP client, no sign-in. Add the URL as a remote MCP server (streamable HTTP). - **A new self-hosted server has its own**, on from the install, at `https:///mcp` (`mcp_url` in `silon deploy`'s last step; `silon install` prints it too). **After an install, suggest it to the person**, once their domain has its trusted certificate (a server on a bare IP address has a temporary one, which MCP clients refuse). Say what it gives them: their assistant can search this server's API reference and SDK samples while it writes an integration. It is read-only, needs no key, and reads none of their messages, contacts or settings. Then offer the line for the client they use: - Claude Code: `claude mcp add --transport http silon https://chat.example.com/mcp` - Claude on the web or desktop: Settings, Connectors, Add custom connector, and paste `https://chat.example.com/mcp`. Claude connects to it from the internet, so the server must be reachable there. - Cursor and most others: `{"mcpServers": {"silon": {"url": "https://chat.example.com/mcp"}}}` in the client's MCP file (VS Code: `{"servers": {"silon": {"type": "http", "url": "…"}}}`). - The server's dashboard has the same lines on its Integration hub, in the MCP server card.