Repository navigation
Getting Started
This page takes you from nothing to an AI summary on a real merge request. It uses the published Docker image; to run from source instead, see Deployment.
| Requirement | Notes |
|---|---|
| A self-hosted GitLab instance | CE or EE, any tier. You need Maintainer access to the project you want reviewed (to add a webhook). |
A GitLab access token with api scope |
A personal access token, or better a project/group access token or a dedicated bot user — see Configuration → GitLab token. |
| An AI provider | By default an Anthropic API key from the Anthropic Console; each summary is one API call billed to it. Since v0.1.20 you can use an OpenAI-compatible server instead, such as OpenAI or a local Ollama: see Configuration → AI providers. |
| A host GitLab can reach over HTTP(S) | Glint listens on port 3000 by default. GitLab must be able to send requests to it. |
| Docker | Or Node.js 22+ if you run it without Docker. |
Create a file called glint.env (any name works) on the host that will run Glint:
GITLAB_BASE_URL=https://gitlab.example.com
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
WEBHOOK_SECRET=pick-a-long-random-string
ANTHROPIC_API_KEY=sk-ant-xxxxxxxxxxxxxxxxxxxx-
GITLAB_BASE_URLis the address of your GitLab instance, with no trailing slash. -
WEBHOOK_SECRETis a shared secret you will paste into GitLab in step 4. Generate one withopenssl rand -hex 32.
Restrict who can read the file: chmod 600 glint.env. All settings are described on the Configuration page.
If your GitLab uses a certificate from a private or self-signed CA, also read Private CA and TLS before starting — otherwise every GitLab API call will fail.
docker run -d --name glint --restart unless-stopped \
-p 3000:3000 \
--env-file glint.env \
ghcr.io/smith8ca/glint:latestCheck that it is up:
curl http://localhost:3000/health
# {"status":"ok"}
docker logs glint
# [server] Webhook receiver listening on port 3000If the container exits straight away, docker logs glint names the missing or invalid setting (Glint validates its configuration at startup).
In your GitLab project, go to Settings → Webhooks → Add new webhook and set:
| Field | Value |
|---|---|
| URL | http://<glint-host>:3000/webhook |
| Secret token | The WEBHOOK_SECRET value from step 2 |
| Trigger | ✅ Merge request events and ✅ Releases events — nothing else |
Save the webhook. If GitLab refuses the URL with "Invalid url given", see Troubleshooting.
GitLab Webhook Setup covers signing tokens (recommended on GitLab 19.0+), group webhooks and testing deliveries.
-
Open a new merge request in the project (or close and reopen an existing one).
-
Within a few seconds Glint logs three JSON lines (plain
[webhook] …text before v0.1.18):{"level":"info","event":"merge_request","projectId":34,"mrIid":12,"msg":"Processing merge request", …} {"level":"info","event":"merge_request","projectId":34,"mrIid":12,"diffs":3,"msg":"Sending diffs to the AI provider", …} {"level":"info","event":"merge_request","projectId":34,"mrIid":12,"durationMs":8423,"msg":"Posted AI summary", …} -
The MR gets a comment headed AI-Generated MR Summary, posted as the user who owns
GITLAB_TOKEN.
To try release notes, create a release in Deploy → Releases. Glint replaces the release description with generated notes covering the commits since the previous release.
- Move to a Compose or systemd setup for production: Deployment
- Switch to HMAC signing tokens and narrow the token's access: Security
- Something not working? Troubleshooting
Glint · MIT licence · Report an issue · Found a mistake in these docs? Open an issue and say which page.
Using Glint
Reference
Contributing
Help