Skip to content

GoHead

GoHead

An event-driven headless CMS, written in Go, with an AI agent engine built in. Model your content, get REST and GraphQL APIs instantly, and let agents react to every change.

Quick start Install

Why GoHead

  • Schema in, API out


    Define collections, singletons and reusable components over HTTP. REST endpoints and a GraphQL schema appear immediately, with no code generation and no restart.

  • Agents that react to content


    Attach LLM agents to collection events, cron schedules or webhooks. They read and write content through typed functions, with OpenAI, Anthropic or Ollama.

  • Safe by default


    Role-based access enforced the same way in REST and GraphQL, validated writes, atomic nested creates, masked secrets, signed container images.

  • Ships as one binary


    One Go binary runs the API, worker, dispatcher and scheduler. SQLite for a laptop, PostgreSQL or MySQL in production, Redis for jobs. Kubernetes and Flux manifests included.

Five lines to a working API

On a Mac, with Homebrew: one binary, SQLite, no Docker.

brew install gohead-cms/tap/gohead
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

Or the full stack with Docker Compose:

printf 'GOHEAD_JWT_SECRET=%s\nGOHEAD_ADMIN_USERNAME=admin\nGOHEAD_ADMIN_PASSWORD=%s\n' \
  "$(openssl rand -hex 32)" "$(openssl rand -hex 12)" > .env
docker compose up -d && grep ADMIN .env                # API, workers, admin UI, Postgres, Redis
# log in, create a collection, start writing content:

Then follow the quick start: it takes about ten minutes.

Where to go next

You want to… Read
Try it locally Quick start
Understand how the pieces fit Concepts
Design your content types Content modeling
Query and write content REST API, GraphQL
Automate with AI Agents
Run it in production Deployment
Contribute Contributing