Installation
BatleHub is a single binary backed by PostgreSQL. What differs between the methods below is only how that process is started and where its config file comes from — the server, the console and the registries are the same either way.
If you have no reason to prefer otherwise, use Docker Compose. It brings up the server and its database together, needs nothing installed but a container runtime, and is the shortest path from nothing to a registry you can point a package manager at. The others are for when your environment has already decided for you.
| Method | Use it when |
|---|---|
| Docker Compose | evaluating or running one host — three stacks in deploy/compose/: min (server + PostgreSQL), base (+ Dex OIDC), max (+ Valkey and S3) |
| Container image | you have an orchestrator or a database already, and want only the image |
| Pre-built binary | you do not run containers |
| From source | you are changing the code, or need a build for a platform no release covers |
| Helm chart | you are deploying to Kubernetes — three complete values files, from one replica to production |
| The demo | you want to see every page of the console with data in it, from a checkout, in one command — not for a server you keep |
Prerequisites
All installation methods require a PostgreSQL 14+ database. The server creates its schema automatically on first start.
First-time setup
Regardless of installation method, once the server is running:
1. Verify the health endpoint:
curl -H "Authorization: Bearer my-admin-token" \
http://localhost:8080/api/v1/admin/health2. Open the Web UI and Setup Guide:
Navigate to http://localhost:8080 — the Setup Guide page (/setup) generates client config snippets for all registered tools.
3. Point a client at the proxy:
# npm
npm install --registry http://localhost:8080/proxy/npm/ some-package
# Go
GOPROXY=http://localhost:8080/proxy/go,direct go get golang.org/x/text@latest
# Cargo — add to .cargo/config.toml
# [source.crates-io]
# replace-with = "batlehub"
# [source.batlehub]
# registry = "sparse+http://localhost:8080/proxy/cargo/registry/"