dbx-tools-graphiti
Native launcher for Graphiti with local Neo4j and LiteLLM processes configured for Databricks Model Serving. It runs directly on the host without Docker, Podman, or another container runtime.
Install from PyPI:
uv add dbx-tools-graphiti
Or install the current main branch:
uv add "dbx-tools-graphiti @ git+https://github.com/reggie-db/dbx-tools.git@main#subdirectory=packages/py/graphiti"
Key features
- launches upstream Graphiti's HTTP MCP server at
http://127.0.0.1:8000/mcp/; - runs Neo4j Community 5.26 as a native background process;
- starts
dbx-tools-litellmand authenticates through a Databricks CLI profile; - supervises Graphiti and managed LiteLLM with Honcho so they share one lifecycle, receive SIGTERM as process groups, and receive SIGKILL after Honcho's bounded shutdown grace if needed;
- journals successful graph mutations to Postgres and reconstructs an ephemeral graph backend during startup;
- defaults to
databricks-gpt-5-nanoand the 1024-dimensionaldatabricks-gte-large-enembedding model; - reuses executables from
PATHand installs missing Java 21, uv, Neo4j, and Graphiti source through mise; - pins Graphiti and Neo4j versions for repeatable local environments;
- caches downloads, Python dependencies, Neo4j data, credentials, and logs;
- needs no
config.yamland does not vendor Graphiti code.
Quick start
mise and a working Databricks CLI profile must already be configured. The
launcher handles Java, LiteLLM, Graphiti, and Neo4j, and installs uv only when
it is not already available:
uv run dbx-graphiti start
The launcher uses DATABRICKS_CONFIG_PROFILE when set. Otherwise it runs
databricks auth profiles --output json --skip-validate and uses the one entry
marked "default": true. --profile <name> is an optional override, not a
requirement.
The first run downloads about 120 MB of Neo4j plus the pinned Graphiti release,
creates Graphiti's uv environment, generates a local Neo4j password, starts
LiteLLM and Neo4j, and then runs Graphiti in the foreground. Later runs reuse
the installed assets.
Honcho stops the sibling process when Graphiti or managed LiteLLM exits. On Ctrl-C or SIGTERM it forwards SIGTERM to each child process group, waits up to five seconds, then sends SIGKILL to any remaining group. The launcher stops Neo4j after Honcho finishes.
For background operation:
uv run dbx-graphiti up
uv run dbx-graphiti status
uv run dbx-graphiti down
Commands
startstarts Neo4j, then runs Graphiti and managed LiteLLM under Honcho in the foreground. Missing prerequisites are installed on demand. This is the default.upstarts all three services in the background.downsignals the Honcho supervisor, which stops Graphiti and managed LiteLLM before the launcher stops Neo4j.statusprints process state, model selection, and the MCP URL as JSON.envprints resolved database, proxy, and model settings as JSON. Its output includes the Neo4j password and must be treated as secret.
Arguments after -- are forwarded to upstream Graphiti:
uv run dbx-graphiti start -- --port 9000 --group-id my-agent
Postgres persistence
DelegatingGraphDriver accepts any Graphiti GraphDriver and delegates its
provider behavior, operations, sessions, transactions, search, and maintenance
to that driver. Successful mutating Cypher statements are appended to a
supplied ordered storage driver before the call returns. During the first index
setup, the wrapper clears the delegated graph and replays the stored mutations
in order without journaling them again.
PostgresWriteStorage provides the durable implementation. It stores a
namespaced append-only JSONB journal and accepts the async SQLAlchemy engine
created by dbx-tools-postgres:
from databricks.sdk import WorkspaceClient
from dbx_tools.graphiti.persistence import (
DelegatingGraphDriver,
PostgresWriteStorage,
)
from dbx_tools.postgres import create_async_engine
engine = create_async_engine(WorkspaceClient(), pool_pre_ping=True)
storage = PostgresWriteStorage(engine, namespace="memory-service")
driver = DelegatingGraphDriver(graph_driver, storage)
The bundled MCP launcher enables this automatically when any of these settings is present:
JOURNAL_DATABASE_URL: explicit PostgreSQL URL. The launcher uses asyncpg.PGHOST,LAKEBASE_ENDPOINT, orLAKEBASE_INSTANCE_NAME: resolve the connection and rotating credential throughdbx-tools-postgresandWorkspaceClient.JOURNAL_NAMESPACE: isolates one journal within the table. Defaults todefault.JOURNAL_TABLE: journal table name. Defaults tographiti_write_journal.
When persistence is configured, Postgres initialization or replay failure stops server startup rather than running without durability. The journal is restart recovery for one live graph instance. It does not replicate new writes into other concurrently running Graphiti instances. A process crash after the graph commit but before its synchronous journal append can lose that final mutation. If the local Neo4j credential no longer matches its ephemeral data directory, the launcher resets that directory only when a Postgres journal is configured, then Graphiti rebuilds it from the journal. Without durable storage, an authentication mismatch fails startup rather than deleting local graph data.
Provisioning and caching
The package deliberately keeps orchestration separate from Graphiti itself:
dbx_tools.core.binchecksPATHbefore asking mise for a tool.- When mise is missing on macOS or Linux, the official checksum-verifying installer runs under a cross-process lock.
- Missing tools are installed globally with
mise use -g --yes, then resolved withmise whichormise where. - Java
21, uv0.11, and Neo4j Community5.26.12use their mise registry backends. - Graphiti
0.29.3uses mise's HTTP backend against the pinned release source archive because the GitHub release has no platform binary asset. uv sync --project <checkout>/mcp_servercreates the upstream environment.- A generated Neo4j password is stored with mode
0600. - The packaged LiteLLM proxy starts against the selected Databricks profile, and Graphiti receives its OpenAI-compatible URL and model settings through environment variables and CLI flags.
The cache root is:
- macOS:
~/Library/Application Support/dbx-tools/graphiti - Linux:
${XDG_DATA_HOME:-~/.local/share}/dbx-tools/graphiti - Windows:
%LOCALAPPDATA%/dbx-tools/graphiti
Set DBX_GRAPHITI_HOME to override it. The directory contains links to the
mise-managed tools plus launcher state, logs, and Neo4j data. Removing it
permanently removes the local graph data; mise manages its own download cache
and installation directories separately.
Configuration
There is no Graphiti config.yaml. Model and server settings resolve from CLI
option, environment variable, then package default:
--profile/DATABRICKS_CONFIG_PROFILE: an optional Databricks profile override for managed LiteLLM. When both are absent, the launcher uses the Databricks CLI profile marked as default.--model/MODEL_NAME: defaults todbx/databricks-gpt-5-nano.--embedder-model/EMBEDDER_MODEL: defaults todbx/databricks-gte-large-en.--embedder-dimensions/EMBEDDER_DIMENSIONS: defaults to1024.--litellm-host/LITELLM_HOST: defaults to127.0.0.1.--litellm-port/LITELLM_PORT: defaults to4000.GRAPHITI_GROUP_ID: defaults upstream tomain.GRAPHITI_HOSTandGRAPHITI_PORT: default upstream to127.0.0.1and8000.NEO4J_URIandNEO4J_DATABASE: default tobolt://127.0.0.1:7687andneo4j.
The launcher sets Graphiti's OpenAI provider and embedding dimensions directly. No OpenAI key is required for its managed local proxy.
To use a separately managed LiteLLM instance:
uv run dbx-graphiti start \
--litellm-url https://models.example/v1 \
--no-manage-litellm
Setting LITELLM_URL also selects external mode automatically. A direct
OPENAI_API_URL selects external OpenAI-compatible mode and requires
OPENAI_API_KEY. --manage-litellm overrides either environment choice when
the launcher should still own the local proxy.
Explicit NEO4J_* values override generated defaults, which lets the Graphiti
process use an existing Neo4j server. The launcher still manages its local
Neo4j process; use upstream Graphiti directly if lifecycle ownership belongs to
an external database administrator.
Graphiti owns MCP tools, graph behavior, LLM calls, embeddings, and migrations.
This package owns repeatable installation, Databricks defaults, and process
lifecycle. To run it beside an AppKit server through one Databricks App port,
use @dbx-tools/appkit-graphiti. See the
upstream MCP server documentation
for its complete API.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbx_tools_graphiti-0.6.114.tar.gz.
File metadata
- Download URL: dbx_tools_graphiti-0.6.114.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a8f2e0e73f1b41bd4ee44fbbbb607619242bbfe0d0584799eae9712ba3913cd
|
|
| MD5 |
7920b0b8ceabeb102efbe0056a8a61da
|
|
| BLAKE2b-256 |
38b821b49e60779119d0296e2e37199edbc2102aa55b06408569923f61100275
|
Provenance
The following attestation bundles were made for dbx_tools_graphiti-0.6.114.tar.gz:
Publisher:
python-release.yml on reggie-db/dbx-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbx_tools_graphiti-0.6.114.tar.gz -
Subject digest:
4a8f2e0e73f1b41bd4ee44fbbbb607619242bbfe0d0584799eae9712ba3913cd - Sigstore transparency entry: 2462259567
- Sigstore integration time:
-
Permalink:
reggie-db/dbx-tools@c7ec90ff4b1c6b689ca6f22879a3a996a0d88e52 -
Branch / Tag:
refs/tags/v0.6.114 - Owner: https://github.com/reggie-db
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@c7ec90ff4b1c6b689ca6f22879a3a996a0d88e52 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dbx_tools_graphiti-0.6.114-py3-none-any.whl.
File metadata
- Download URL: dbx_tools_graphiti-0.6.114-py3-none-any.whl
- Upload date:
- Size: 24.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9656cdc38e9b39623b626bf3758f43549fd1da6655c0533ddf492a4fb053c552
|
|
| MD5 |
89913d4eca8b5deec159f36ddcc6f148
|
|
| BLAKE2b-256 |
b110e6bcdaf40eac99ce4596e69681e5f5aff56edd44657735ba340ce59be439
|
Provenance
The following attestation bundles were made for dbx_tools_graphiti-0.6.114-py3-none-any.whl:
Publisher:
python-release.yml on reggie-db/dbx-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbx_tools_graphiti-0.6.114-py3-none-any.whl -
Subject digest:
9656cdc38e9b39623b626bf3758f43549fd1da6655c0533ddf492a4fb053c552 - Sigstore transparency entry: 2462260009
- Sigstore integration time:
-
Permalink:
reggie-db/dbx-tools@c7ec90ff4b1c6b689ca6f22879a3a996a0d88e52 -
Branch / Tag:
refs/tags/v0.6.114 - Owner: https://github.com/reggie-db
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@c7ec90ff4b1c6b689ca6f22879a3a996a0d88e52 -
Trigger Event:
push
-
Statement type: