Installation¶
GoHead is a single binary (gohead), the admin UI included. It runs in one of two ways:
- Standalone:
gohead standaloneruns everything in one process (API, admin UI, agents, webhooks) with SQLite and no other service. See Standalone and Raspberry Pi. - Separate processes:
start(the API and admin UI),worker,dispatcherandscheduler, with Redis and PostgreSQL or MySQL, to scale out. Onlystartis required for content management; the other three run agents and webhooks.
| Method | Best for |
|---|---|
| Homebrew | Trying GoHead on a Mac, local development |
| Render | A GoHead in the cloud in one click, about $7 a month |
| Release binary | Standalone, small servers, Raspberry Pi |
| Docker Compose | Trying the full stack locally |
| Container image | Servers, Kubernetes |
| From source | Development |
Homebrew¶
On macOS, the quickest start: one binary, SQLite, no Docker.
brew install gohead-cms/tap/gohead
mkdir my-cms && cd my-cms
GOHEAD_ADMIN_USERNAME=admin GOHEAD_ADMIN_EMAIL=you@example.com \
GOHEAD_ADMIN_PASSWORD='choose-a-long-password' gohead standalone
Open http://localhost:8080: the admin UI and the API share the address. Data goes to
./data (or --data <dir>); the administrator variables are only needed for the first
start. brew upgrade gohead updates it. This runs
standalone: the API, the admin UI, agents and webhooks in one
process.
The cask also covers Linux (amd64 and arm64), where Homebrew's cask support is still preliminary; the release binary works everywhere.
Docker Compose¶
The repository ships a docker-compose.yml with the API, the three background processes,
the admin UI, PostgreSQL and Redis.
git clone https://github.com/gohead-cms/gohead.git
cd gohead
echo "GOHEAD_JWT_SECRET=$(openssl rand -hex 32)" > .env
docker compose up -d # published images
# or: docker compose up -d --build (build from your checkout)
| Service | URL / role |
|---|---|
api |
http://localhost:8080 |
admin |
http://localhost:3000 (admin UI) |
worker, dispatcher, scheduler |
background agents |
postgres, redis |
data stores |
Set OPENAI_API_KEY (or ANTHROPIC_API_KEY) in .env to run agents.
Container image¶
Images are published to GitHub Container Registry for linux/amd64 and linux/arm64:
docker run -d --name gohead -p 8080:8080 \
-e GOHEAD_JWT_SECRET="$(openssl rand -hex 32)" \
-v gohead-data:/data \
ghcr.io/gohead-cms/gohead:latest
Without GOHEAD_DATABASE_URL, the image stores a SQLite database in /data. Tags:
| Tag | Meaning |
|---|---|
latest, X.Y.Z, X.Y |
Releases |
edge |
Latest master build |
master-<sha>-<timestamp> |
Every master build (used by Flux staging) |
The image serves the admin UI at / too. To serve it separately, the admin UI image is
ghcr.io/gohead-cms/gohead-admin; point it at your API with GOHEAD_API_URL. Run
… gohead:latest standalone for a single container with agents and webhooks (no Redis); it
keeps its data in /data. Images are signed, see verifying images.
Release binary¶
Download an archive for your platform from the
releases page (Linux and macOS on x86-64 and
ARM64, Windows on x86-64, Linux on ARMv7 and ARMv6), check it against checksums.txt, then:
tar xzf gohead_*_linux_amd64.tar.gz
./gohead version
GOHEAD_ADMIN_USERNAME=admin GOHEAD_ADMIN_EMAIL=you@example.com \
GOHEAD_ADMIN_PASSWORD='choose-a-long-password' ./gohead standalone
Open http://localhost:8080: the admin UI and the API share the address. Data goes to
./data. To run the processes separately on PostgreSQL instead:
GOHEAD_DATABASE_URL="postgres://user:pass@localhost:5432/gohead?sslmode=disable" \
GOHEAD_JWT_SECRET="$(openssl rand -hex 32)" ./gohead start
From source¶
Requirements: Go 1.26+ and Node 22 (for the admin UI). No C compiler: SQLite is pure Go.
git clone https://github.com/gohead-cms/gohead.git && cd gohead
make ui build # admin UI, then -> dist/gohead
cp config.sample.yaml config.yaml
./dist/gohead start --config config.yaml
make build alone builds a binary without the admin UI (run the UI with npm run dev in
gui/).
Check the server:
Next: the quick start.