---
title: Architecture
description: Boax is a self-hosted control plane that gives applications one API for isolated sandboxes and decides, under operator policy, which backend runs each one.
section: Concepts
order: 1
---

# Architecture

Boax is a self-hosted control plane that gives applications one API (`/v1`)
for isolated sandboxes and decides, under operator policy, which backend runs
each one. It does not run sandboxes itself.

## Components

- **boax-server** — stateless API replicas plus one elected scheduler leader,
  with Postgres as its only dependency.
- **Scheduler** — filters every registered pool against global, organization,
  and project policy, ranks what is left, and records why.
- **Adapters** — talk to backends: OpenSandbox (default private runtime),
  15+ provider adapters, or any `remote` service speaking the adapter protocol.
- **CLI and SDKs** — TypeScript, Python, Go.

## Request flow

1. Request admitted against quota.
2. Queued fairly.
3. Placed: scheduler filters pools against policy, ranks, records why.
4. Adapter talks to the chosen backend.
5. Isolation and egress belong to each backend's runtime.

## Data model

- Organizations, projects, scoped API keys with rotation.
- Quotas and fair queueing per org/project.
- Tamper-evident audit chain for every placement decision.

## Security model

See [Trust model](/docs/security/trust-model) for the full security architecture.
