OpenGraphDB is an open-source graph database that runs as a single file. You can store nodes and edges (the way Neo4j does), search them with the Cypher query language, do fast vector search for AI and retrieval workloads, and load RDF/Turtle data. Apache 2.0.
- Single binary, no Java needed. One file you download. No separate server to install, no service to babysit.
- AI-first. Built-in agent integration so Claude, Cursor, and other coding assistants can query your graph directly.
- Embeds in your app. Drop it into a Rust, Python, or Node project as a library — or run it as a server. Same engine either way.
For the longer step-by-step walkthrough, see documentation/QUICKSTART.md.
Easiest — paste a prompt into Claude Code or claude.ai:
Install OpenGraphDB on my machine: run
curl -fsSL https://github.com/asheshgoplani/opengraphdb/releases/latest/download/install.sh | shthen runogdb init --agentso this session can query the graph.
The agent surfaces approval prompts for curl and ogdb init and handles the rest.
As a Claude Code plugin (registers skills + MCP server inside an active claude session):
/plugin marketplace add asheshgoplani/opengraphdb
/plugin install opengraphdb@opengraphdb
Manual / scripted (no agent required):
curl -fsSL https://github.com/asheshgoplani/opengraphdb/releases/latest/download/install.sh | shThis drops the ogdb binary at ~/.local/bin/ogdb and creates a fresh empty database at ~/.ogdb/demo.ogdb. Run ogdb demo afterward to load the MovieLens dataset and open the playground in your browser.
For more install paths (npm, plugin internals, uninstall) see documentation/install.md.
ogdb init --agent --agent-id claude # or: --agent-id cursor / aider / goose / continue / codex; omit --agent-id to auto-detectNow Claude (or your coding agent of choice) can query the graph directly from your conversations.
ogdb query ~/.ogdb/demo.ogdb \
"MATCH (m:Movie)-[:IN_GENRE]->(g:Genre) RETURN m.title, g.name LIMIT 5"You should see five movies and the genres they belong to. That's it — you have a working graph database.
Yes. OpenGraphDB imports Turtle (.ttl), N-Triples, RDF/XML, JSON-LD, and N-Quads.
ogdb init mydb.ogdb
ogdb import-rdf mydb.ogdb data.ttlThe triples are loaded as nodes and edges and become queryable with Cypher right away. No separate triplestore, no extra setup.
Once the basics make sense, here's where the rest lives:
documentation/QUICKSTART.md— the longer five-minute walkthrough with sample data.documentation/CLI.md— full CLI reference: everyogdbsubcommand with a one-line description.documentation/COOKBOOK.md— runnable recipes for AI agents, hybrid retrieval, doc-to-graph ingestion, and time-travel queries.documentation/BENCHMARKS.md— head-to-head numbers against Neo4j, Memgraph, and KuzuDB. We publish wins and losses both — including the verified-at-10 k apples-to-apples vs Neo4j Community 5.x (BENCHMARKS § 2.2): point-read p50 ✅ WIN at 0.71 ms vs 2.54 ms (3.6×); ❌ LOSS on bulk ingest, point-read tail, and 2-hop chained traversal. Reproduce in ≤ 30 min withscripts/competitor-bench/.documentation/MIGRATION-FROM-NEO4J.md— coming from Neo4j? Cypher-by-Cypher mapping and driver compatibility notes; § 5.1 has the verified-vs-Neo4j table.ARCHITECTURE.md— storage layout, transactions, recovery.SPEC.md— the product and interface specification.DESIGN.md— the 18-crate workspace map.
OpenGraphDB ships with the Cypher query language, vector search for AI and retrieval workloads, full-text search, RDF import/export, snapshot transactions with crash recovery, and an embedded web playground served from the same binary. Embed it as a Rust crate (ogdb-core), call it from Python or Node, or run ogdb serve --http for a server with HTTP and an embedded UI on port 8080.
Tracked under Issues and Discussions. Near-term: faster bulk loading, multi-writer access, richer Python and Node bindings, larger-scale benchmark numbers, and a gRPC transport.
OpenGraphDB is greenfield and contributor-friendly. Storage engines, query optimization, vector search, RDF tooling, agent integrations, and developer experience are all open lanes. See CONTRIBUTING.md for the test-first workflow.
→ Issues · Discussions · Code of Conduct · Security policy
OpenGraphDB is licensed under Apache 2.0.
Built on the work of: Tantivy, instant-distance, Roaring bitmaps, the openCypher project, and Neo4j's Cypher language design.
