Quickstart¶
This page brings the whole stack up on one machine with Docker Compose and connects a first client. It takes the shortest path; Docker Compose explains each step and configuration lists every variable.
Prerequisites¶
- Docker with the Compose plugin, and GNU Make.
- The Spongram source tree.
- An OpenAI-compatible inference endpoint and its API key. The default is SPT Models (
https://models.sponge-theory.dev/v1); see inference providers for the capabilities an endpoint must offer.
1. Configure¶
Set at least these values in .env:
| Variable | Value |
|---|---|
POSTGRES_PASSWORD |
A password for the bundled PostgreSQL. |
NEO4J_PASSWORD |
A password for the bundled Neo4j. |
SPONGRAM_INFERENCE_API_KEY |
The API key of your inference endpoint. |
SPONGRAM_ADMIN_TOKEN |
The secret you will use to sign in to the admin UI. |
SPONGRAM_INTERNAL_AUTH_TOKEN |
A shared secret between Graphiti and the internal inference proxy, for example the output of openssl rand -hex 32. |
The endpoint URL and the models are runtime settings, stored in the database: change them on the Inference page of the admin UI, not in .env.
.env is ignored by git. Never commit it.
2. Build and start¶
make build-image # the spongram image
make build-graphiti # the spongram-graphiti image (Graphiti MCP with Spongram's configuration)
make up # docker compose up -d
make ps # the four services: postgres, neo4j, graphiti-mcp, spongram
make logs # follow the logs
The spongram service applies its database migrations at start-up.
3. Check¶
/readyz answers 200 when the three hard dependencies (Graphiti, PostgreSQL, Neo4j) are reachable. /healthz is a wider diagnostic that also reports the background workers and the running version. See observability.
4. Create a brain¶
- Open
http://localhost:8091/admin/and sign in withSPONGRAM_ADMIN_TOKEN. - Create an instance. The brain key (
spt_brain_…) is displayed once: copy it now. - On the instance page, download the bundle for Claude Code or Claude Desktop.
The admin UI page describes every screen.
5. Connect a client¶
Install the bundle as described for Claude Code or Claude Desktop, register the server in Codex, or point any MCP client at the endpoint:
Ask the agent to remember something, then to recall it in a new session. The first extraction takes a few seconds to a minute, depending on the model.
6. Look at the graph¶
From the instance page, open the Cortex to see entities and facts appear as episodes are processed. See Cortex and Wiki.
Next steps¶
- Put the service behind TLS before exposing it: Docker Swarm with Portainer or AWS.
- Read the security model.
- Plan backups.