byrgi

Quickstart

This guide starts the control plane on one machine, adds that machine as a node, deploys a small model and calls it through the gateway. It takes about ten minutes, most of it downloading weights.

Requirements

  • Linux with Docker and Docker Compose
  • An NVIDIA GPU with the container toolkit, or a CPU-only box for tiny models
  • Go is not required: scripts/go.sh runs the toolchain in a container

1. Get the code

Byrgi lives on GitHub at mhmdsalahsebai/byrgi:

bash
git clone https://github.com/mhmdsalahsebai/byrgi.git
cd byrgi

2. Start the control plane

bash
scripts/start.sh          # first run creates deploy/.env with random credentials
scripts/start.sh status   # containers
scripts/start.sh logs     # follow logs

This brings up the API on :8080, the dashboard on :3000, the gateway on :4000 and the node endpoint on :8443. Read the first admin password with:

bash
grep ^BYRGI_DASHBOARD_PASSWORD= deploy/.env

3. Install the CLI and log in

bash
scripts/go.sh go build -o bin/ ./cmd/...
bin/byrgi login --api http://localhost:8080 \
  --token "$(grep ^BYRGI_ADMIN_TOKEN= deploy/.env | cut -d= -f2-)"

4. Add a server

bash
byrgi projects create demo
byrgi servers add gpu-1   # prints an install command; run it as root on the node

The node agent dials out to the control plane over mutual TLS. No inbound ports or SSH are needed.

5. Deploy a model

bash
byrgi deploy model --project demo --server gpu-1 --name llm \
  --repo Qwen/Qwen2.5-7B-Instruct --domain llm.example.com
byrgi status <service-id>

Prefer the dashboard? Open Deploy → Quick start at http://localhost:3000 and click Deploy on a template. See One-click deploy.

No GPU? Add --cpu and pick a tiny model, for example --repo HuggingFaceTB/SmolLM2-135M-Instruct --cpu --max-model-len 2048 (about 270 MB of weights, ~3 GB of RAM while running).

6. Call it

bash
KEY=$(byrgi keys demo create backend --rpm 60 --tpm 100000)
curl http://localhost:4000/v1/chat/completions \
  -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
  -d '{"model":"demo/llm","messages":[{"role":"user","content":"Hello"}]}'
byrgi usage --project demo

Open the dashboard at http://localhost:3000 to see the same project, model, key and usage.