Self-hosted AI platform: overview
Self-hosting SecondStack means running the platform on your own infrastructure. It is self-hosted today: you deploy it on a virtual machine you control, connect your own LLM providers, and keep all data in your environment. Managed SaaS and AWS Marketplace are coming.
Deployment model
The platform ships as a set of containerized services orchestrated with Docker Compose, using pre-built images. The simplest deployment is a single Linux VM: unpack the release, set a few environment variables, and run the initialization script. For production, you expose the VM over HTTPS, point a DNS domain at it, and connect enterprise single sign-on.
If you would rather not operate it yourself, managed SaaS is coming soon. If this is your case and you need it, contact us and tell us about your deployment.
Three steps to production
- Deploy. Provision a Linux VM and run the platform setup. Docker Compose brings up every service — PostgreSQL, OpenResty, the LLM gateway, ControlTower, content extraction, search, and the dashboards — pre-configured.
- Connect providers. Add your LLM provider API keys in ControlTower. Supported providers include Anthropic, OpenAI, Google AI Studio, and OpenRouter, plus self-hosted or other OpenAI-compatible endpoints, such as Azure Databricks. Group models by capability and set access and pricing.
- Manage users and teams. Create teams, assign budgets, and synchronize with your identity provider groups. Control spend and model access at the team level.
Minimum requirements
| Requirement | Detail |
|---|---|
| Compute | A Linux VM with 4 vCPU, 16 GB RAM, and ~200 GB SSD (container images alone need ~50 GB). |
| Networking | A DNS name with subdomains for the chat, admin, and gateway services, pointing at the VM. |
| Inbound ports | 443 (HTTPS) and 22 (SSH); port 80 only for certificate challenges. |
| Identity | ControlTower’s built-in sign‑in works alone. For single sign-on, an OAuth client in your identity provider: Entra ID (Azure AD), Keycloak or another OpenID Connect provider. |
| Object storage | A bundled S3‑compatible store (RustFS), deployed by default, for agent sandboxes and file transfer. To bring your own instead — e.g. AWS S3, Cloudflare R2, MinIO, or Tigris — set RUSTFS_DEPLOY=false. |
| LLM access | At least one upstream LLM provider API key or endpoint. |
Authentication
SecondStack authenticates users over OAuth. It includes ControlTower as its built-in OpenID Connect provider, so it can run standalone, but enterprise deployments normally federate to an upstream identity provider such as Entra ID (Azure AD) or Keycloak, or any other OpenID Connect provider. Group membership synced from your IdP drives team assignment and model access.
Operations
- Backups — a daily PostgreSQL dump job, which you install with a script from the release, keeps 7 daily and 3 weekly copies.
- Monitoring — disk and container health checks help you keep the deployment stable.
- Configuration — provider, model, prompt, guardrail, and team configuration is managed in ControlTower and applied to the running services.
Supported components and support model
The platform packages a number of open-source components — including PostgreSQL, Meilisearch, Qdrant, Kreuzberg, and OpenResty — alongside SecondStack’s own services, such as ControlTower. As the platform vendor, SecondStack supports the whole stack end to end, so you have a single point of contact rather than separate vendor relationships for each component.
Next steps
- See how traffic flows through the gateway in SecondGate.
- Configure models, providers, and policy in ControlTower.
- Review common deployment questions in the FAQ.