Install on Your Server
Install Grengin on any Linux machine you control, on-premises or in any cloud, with one command. It installs as your user, with no root needed, and starts the web app and API for you.
Self-hosted only
- OS 64-bit Linux, x86_64 (amd64) or arm64
- Database PostgreSQL 16 or later, with the
pgvectorandltreeextensions - Tools
curlandpython3 - Ports 3000 (web app) and 8080 (API), both on
localhostonly
Install
-
Run the install command As your normal user, not root.
curl --proto '=https' --tlsv1.2 -sSf https://meta.grengin.com/install.sh | sh -
Answer two questions Your database URL (
postgres://…) and the address for sign-in callbacks: the address people open Grengin at. For a first try on this machine, usehttp://localhost:3000. Secrets are generated for you. -
Open Grengin It starts on its own: open
http://localhost:3000.
It installs the latest release into ~/.grengin, adds the grengin command to ~/.local/bin, and keeps your settings in ~/.grengin/config.env.
Tip Installing from a script or CI? Set
GRENGIN_DATABASE_URLandGRENGIN_REDIRECT_URLfirst and it won’t ask.GRENGIN_VERSIONpicks a release;GRENGIN_API_PORTandGRENGIN_WEB_PORTchange the ports.
The grengin command
| Command | What it does |
|---|---|
grengin status | Is the web app and API running? |
grengin start / stop / restart | Start, stop or restart both |
grengin update | Install the latest release, then grengin restart |
grengin configure | Change the database or callback address |
grengin config | Show where the settings file is |
grengin version | Show the installed version |
grengin uninstall | Remove Grengin (your database is kept) |
Logs are in ~/.grengin/logs.
Open it to your team
Grengin listens on localhost only. To let your team in, put your own web server in front of it, with HTTPS:
-
Point a domain at the server For example
chat.example.com. -
Proxy it to Grengin In Nginx, Caddy or similar, send everything for that domain to
http://127.0.0.1:3000, with an HTTPS certificate. -
Use that address Run
grengin configureand enterhttps://chat.example.comas the callback address. Also add it toCORS_ALLOWED_ORIGINSin the settings file, thengrengin restart.
Set up sign-in
Self-hosted installs use your own sign-in app with Google or Microsoft.
-
Create a sign-in app In the Google Cloud console (OAuth client) or the Microsoft Entra admin center (app registration).
-
Add the callback address
https://<your-domain>/auth/google/callbackorhttps://<your-domain>/auth/azure/callback. -
Add its details to the settings file
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRET, orAZURE_TENANT_ID,AZURE_CLIENT_IDandAZURE_CLIENT_SECRET, asexport NAME=valuelines in~/.grengin/config.env. Thengrengin restart. Rungrengin configurebefore this step, as it rewrites the settings file. -
Sign in The first person to sign in becomes the Super Admin. Then add your AI keys in Control Hub → AI Engines.
Who can join afterwards (allowed domains, automatic sign-up) is set in Authentication (SSO).
Next steps
- Server Administration Updates, backups and day-to-day operations.
- Configuration Reference Every setting.
- Build from Source Build every part yourself.
- Docker The published container images.