Skip to content

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

cp .env.example .env

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

curl -s http://localhost:8091/readyz
curl -s http://localhost:8091/healthz

/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

  1. Open http://localhost:8091/admin/ and sign in with SPONGRAM_ADMIN_TOKEN.
  2. Create an instance. The brain key (spt_brain_…) is displayed once: copy it now.
  3. 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:

URL:     http://localhost:8091/mcp
Header:  Authorization: Bearer spt_brain_xxx

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