Self-hosted server that runs CoffeeQL queries on your databases, with safe writes and undo
2.6K
One query language for PostgreSQL, MySQL, MongoDB and Redis, with every write recorded and undoable.
coffeeql-server runs CoffeeQL queries against your own databases. Every change it makes is journaled with the rows
before and after, so any write can be reverted. AI tools reach it over MCP, and it can link to
code.coffeeql.dev to show those changes and your databases in a dashboard.
| Tag | What it is |
|---|---|
latest, 0.4, 0.4.4 | The current release. latest always follows the newest one. |
0.4.4-amd64, 0.4.4-arm64 | One architecture only. You rarely need these: the tags above pick the right one. |
Images are built for linux/amd64 and linux/arm64 (Apple silicon, Graviton, Raspberry Pi 4/5).
docker run -d --name coffeeql -p 3080:3080 \
-e COFFEEQL_TOKEN=change-me-to-a-long-random-value \
-e COFFEEQL_ALLOWED_CONNECT_HOSTS=host.docker.internal \
-v coffeeql-state:/var/lib/coffeeql \
khusshvii54/coffeeql
Then open http://localhost:3080 (Studio) and give it the token. Every API call needs
Authorization: Bearer <token>. Without COFFEEQL_TOKEN, the first start makes one and prints it once:
docker logs coffeeql.
A database on your own computer is host.docker.internal from inside the container (Docker Desktop), and its host
must be allowed with COFFEEQL_ALLOWED_CONNECT_HOSTS.
Make a server key on Settings → Servers in the dashboard and pass it:
docker run -d -p 3080:3080 -e COFFEEQL_TOKEN=… -e COFFEEQL_LINK_KEY=cql_srv_… khusshvii54/coffeeql
The server then takes its plan from your account, sends its commits to the project's commit list, connects the databases you save on the dashboard, and can be asked to revert a commit from there.
| Variable | Default | What it does |
|---|---|---|
COFFEEQL_TOKEN | generated | API token(s), comma separated. |
COFFEEQL_ALLOWED_CONNECT_HOSTS | localhost,127.0.0.1 | Database hosts the server may connect to. |
COFFEEQL_LINK_KEY | none | Links the server to a code.coffeeql.dev project. |
COFFEEQL_SYNC_ROWS | 1 | 0 sends commits to the dashboard without their rows. |
COFFEEQL_REMOTE_REVERT | 1 | 0 refuses reverts asked for on the dashboard. |
COFFEEQL_TRUSTED_PROXIES | none | Address or range of a proxy in front of it, for per-client rate limits. |
COFFEEQL_STATE_DIR | /var/lib/coffeeql | Token hash, link and licence proof. Keep it on a volume. |
PORT | 3080 | Port to listen on. |
GET /health needs no token and is what the image's HEALTHCHECK calls. GET /ready says whether any database
is connected.
The image runs as a non-root user, keeps only the SHA-256 of generated tokens, and never sends connection strings to the dashboard (only collection names and masked addresses).
Content type
Image
Digest
sha256:d94537e55…
Size
43.1 MB
Last updated
5 days ago
docker pull khusshvii54/coffeeql