# Open source and self-hosting

Vitral is open core: the engine you build on is open source, and the managed cloud around it is not. The repository is being made public.

The open-source repository is [github.com/vitral-dev/vitral-backend](https://github.com/vitral-dev/vitral-backend).


## Guides in the public repository

The long form of the self-host documentation is moving into the open-source repository, under `docs/`. This site will render those pages here. Until then they are linked on GitHub, next to their source path (a missing file there does not break this site):

- [Self-hosting](https://github.com/vitral-dev/vitral-backend/blob/main/docs/self-host.md) — `docs/self-host.md`
- [Configuration](https://github.com/vitral-dev/vitral-backend/blob/main/docs/configuration.md) — `docs/configuration.md`
- [CLI](https://github.com/vitral-dev/vitral-backend/blob/main/docs/cli.md) — `docs/cli.md`
- [Roadmap](https://github.com/vitral-dev/vitral-backend/blob/main/docs/roadmap.md) — `docs/roadmap.md`
- [Operations](https://github.com/vitral-dev/vitral-backend/tree/main/docs/operations) — `docs/operations/`

## What the public repository holds

- The Rust engine: one binary that serves realtime queries, mutations and scheduled jobs over WebSocket and HTTP.
- The SDKs: the browser and React client, and the HTTP client for servers.
- The CLI: API keys, logs, migrations, import and export.
- A basic self-host dashboard.

## License

The proposed license is Apache-2.0.

## What stays closed source

- The Vitral Cloud control plane.
- Billing.
- The console at [app.vitral.dev](https://app.vitral.dev).
- SI Gateway.

## Self-hosting

A self-hosted Vitral is the engine binary plus PostgreSQL 17 with pgvector. Your functions are TypeScript and run inside the engine. There is no separate queue, cache or function runtime to operate.

Self-hosting gives you the engine, not the managed services: organizations, plans and SI Gateway are part of [Vitral Cloud](/cloud/).
