Documentation › Self-hosted

Install the package

One line on an ordinary Linux server. Your admin UI, your database and your own gateway, so the content of every call and your provider keys are held on your server, not at OSPP. The node's definition, system prompt included, goes to OSPP.

What you get#

PartAlwaysWith an own gateway
Admin UI at https://ospp.<your domain>calls, passports, assurance pages, systemgateway health
Database, PostgreSQL, bundledyes
Gatewaysends your calls to the models on this server, with your provider keys
P2P Validatoryes: a witness that cosigns OSPP's shared log and a monitor of your organisation's shard, on port 8400
HTTPS, Caddy with Let's Encryptyes

No special hardware. The package runs on any x86-64 or arm64 Linux server with Docker; the installer adds Docker on the common distributions. If it stops with "Docker Compose v2 is missing", install your distribution's Compose plugin and run it again.

Your application reaches your gateway through the local proxy: the same endpoint as on OSPP Cloud, on your side.

What stays on your server#

With an own gateway and the local proxy, the conversation of a call is sealed to your gateway before it leaves your machine and the answer comes back sealed to the proxy: neither reaches OSPP in readable form, and both are stored on your server only. See The local proxy for what passes through OSPP. The node's definition does reach OSPP: the local proxy sends the model, the parameters, the system prompt and the tool definitions, so OSPP can name and register the node, and OSPP stores it. Text that must not reach OSPP goes in the conversation, not in the system prompt. OSPP also receives the signed request, the fingerprints and the figures of each call, from which it issues the passport.

Model Compare, opening a call's content from its passport and "Run again on another model" on the Platform are for OSPP Cloud only: your content is on your gateway, not at OSPP.

Requirements#

Linux; Docker with Compose v2; 2 GB free disk, 5 GB comfortable; a DNS A record for the admin UI's name pointing at the server; inbound TCP ports 80 and 443 (the admin UI and its certificate) and 8400 (your P2P Validator: OSPP's log reaches it there). The installer opens them in the server's own firewall; a cloud firewall or security group in front of the server is yours to open.

The one line#

curl -fsSL https://packages.ospp.it.com/install.sh | sudo bash -s -- ospp ospp.example.com

The second argument is the admin UI's address. With it the setup itself is served there with a Let's Encrypt certificate; without it, on the server's IP with a self-signed certificate your browser warns about once. The installer verifies the setup bundle by its SHA-256, installs it under /opt/ospp, and prints the setup URL with a one-time code. Open that URL, with the domain, not the IP.

The setup, step by step#

The setup UI shows five steps; you type in two of them.

  1. Licence. From the Platform, Gateways, "Copy licence key": the long text starting with eyJ. The setup also checks this server (Docker, disk, ports).
  2. Download. Automatic: the package images, verified by digest.
  3. Details. Where the model calls run (on this server, recommended, or on OSPP's gateway); the admin UI's domain; the first admin's e-mail; your organisation's API key (the Platform can make a new one for the setup on the spot); with an own gateway, each model provider by name with its API key; and the endpoint for your applications: on this server only at http://127.0.0.1:8787/v1 (recommended), also over HTTPS at the admin UI's address under /v1/openai, or not started. The main providers' addresses are known; only an unknown provider asks for a base URL.
  4. Install. Automatic, two to four minutes: the gateway enrols with OSPP, the installation gets its own channel identity, the admin UI gets its certificate, the P2P Validator enrols.
  5. Ready. The first admin's password is shown once, with a Copy button. Save it; the setup opens the admin UI only after you tick "I saved the password". It also says whether OSPP reaches your P2P Validator on port 8400.

The setup checks that the domain's DNS record points at the server before it hands port 443 over.

After installing#

Sign in at https://ospp.<your domain>/admin. The dashboard starts with a checklist: a model provider key, the P2P Validator reachable on port 8400, the endpoint, your first call, an encrypted backup. Change your password in the account menu (top right). A lost password: sudo python3 /opt/ospp/ospp_agent.py reset-password <email> on the server prints a new one.

Then open Endpoint in the admin UI: it shows the base URL, the token and a sample call. The package runs the local proxy for you on this server, and every request must send the endpoint's token as its API key. An application on another machine runs its own local proxy.

Updates come through System → Updates & backups; see Operating the package. The installer refuses an installed server. To set the server up again from scratch, for example to add or drop an own gateway, back up first, then run it with OSPP_REINSTALL=1 (OSPP_REINSTALL=1 curl -fsSL https://packages.ospp.it.com/install.sh | sudo -E bash -s -- ospp ospp.example.com).