Omnigraph
Versioned graph database for AI agents
Replaces —
Who it's for
A team wants every internal agent to query the same typed world model covering people, projects, decisions, and documents. Omnigraph provides the shared graph with typed schema enforcement, hybrid retrieval, and Cedar access control so agents can read and write safely without a custom coordination layer.
The organisation needs a relational or document store rather than a graph.
A developer building a long-horizon agent needs memory that persists across sessions, branches per task, and merges back on review. Omnigraph's branch model and time travel give each agent run its own isolated workspace that merges into a shared graph without overwriting prior state.
Memory needs are simple key-value retrieval with no graph relationships.
A research team runs experiments that write new nodes and edges into a shared graph. Branching keeps each experiment's writes isolated, the typed schema rejects invalid data at the branch, and time travel lets the team pin a query to any prior snapshot for reproducible evaluation.
The team stores flat tabular training data with no graph relationships.
An engineer needs a graph backend that deploys on infrastructure they control, with policy-gated access and a full audit trail. Omnigraph's declarative cluster config, Cedar policy, and support for local disk, self-hosted S3, AWS, and Railway cover the deployment surface without a managed dependency.
The team has no preference for data residency and wants a fully managed SaaS product from day one.
The problem
AI agents that share a knowledge base face a coordination problem that databases were not designed for. Concurrent writes from multiple agents produce collisions, partial reads, and unaudited mutations. There is no standard way to review an agent's proposed graph changes before they land, no typed schema that rejects malformed writes at the source, and no retrieval primitive that combines graph, vector, and full-text in a single query. Teams end up stitching together a vector store, a graph database, and a versioning layer that were never designed to interoperate.
How it works
Each agent or task gets its own branch forked from main. Writes are isolated until a three-way merge lands them, attributed to their actor. Destructive changes require explicit approval before apply runs, and no agent touches main directly.
A single query combines graph traversal, vector ANN search, and BM25 full-text search, fused through Reciprocal Rank Fusion into one ranked result. The entire lens is a stored `.gq` file that can be linted, versioned, and reviewed.
Node types, edge types, keys, and constraints are declared in `.pg` schema files. The engine validates every write at the branch and rejects malformed data before it can reach main, so type errors never land in the shared graph.
Schema, stored queries, policies, embedding providers, and deployment are all declared in a cluster bundle. `cluster plan` previews changes and `cluster apply` converges the live server to the desired state, Terraform-style.
Access rules are declared in policy YAML files, bound to specific graphs or the whole cluster, and enforced in-engine on every mutation path: the HTTP server, CLI, and embedded SDK obey identical rules. The actor is resolved server-side from the bearer token, so clients cannot forge identity.
Graph data is stored as Lance columnar files on local disk or any S3-compatible store including AWS S3, Cloudflare R2, GCS, MinIO, and RustFS. Data and config are exportable at any time in open formats with no proprietary encoding.
Features
- Git-style branching
- Hybrid retrieval with RRF
- Typed schema enforced at the branch
- Declarative config with plan/apply cycle
- Cedar policy enforced server-side
- Object-storage native, open data format
How to install
curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | bash
Recommended for this setup
Strengths
- One retrieval runtime instead of three: Graph traversal, vector similarity, and full-text search run in the same query engine and fuse results with RRF. Teams avoid stitching a vector store, a search index, and a graph database together and keeping them in sync.
- Agent coordination without collisions: The branch model means concurrent agent writes are structurally isolated. Two agents working the same graph at the same time never overwrite each other; conflicts surface as typed, reviewable diffs before any merge.
- Full audit trail: Every commit records its actor, resolved server-side from the bearer token. Time travel makes every prior version queryable, so nothing is lost and any state can be inspected or rolled back.
- No storage lock-in: Data is stored as open Lance files on any S3-compatible bucket the operator controls. The graph remains readable outside Omnigraph, exportable at any time, and portable across storage providers.
Trade-offs
- Early-stage versioning: Omnigraph is at version 0.11.0 and the managed cloud is in private preview. The 0.14 server requires the matching 0.14 client contract, so teams must track client/server compatibility across upgrades.
- Not a general-purpose relational database: Omnigraph is purpose-built for agent-native graph workloads. Teams needing a transactional OLTP store, a traditional SQL interface, or a document database will find it is not designed for those access patterns.
- Schema and policy authoring required: The typed ontology and Cedar policy system are strengths for teams that want governance, but they require upfront schema design and policy authoring before the system provides meaningful safety guarantees. Quick-start projects with fluid schemas face more iteration overhead.
Tech stack
FAQ
Omnigraph stores data on local disk or any S3-compatible object store: AWS S3, Cloudflare R2, Google Cloud Storage, MinIO, RustFS, and Azure (preview). The data format is open Lance columnar files, readable outside Omnigraph and exportable at any time.
Each agent or task creates a branch forked from main with `omnigraph branch create`. Writes land in the branch and are isolated from main and from other branches. When the work is ready, `omnigraph diff` shows the changes, and `omnigraph branch merge` performs a three-way merge attributed to the actor. No agent writes to main directly; the schema validates writes at the branch and the policy decides who can merge.
Yes. Omnigraph ships a built-in MCP server accessible at the cluster's `/mcp` endpoint or via `omnigraph mcp --target NAME`, a TypeScript SDK published as `@modernrelay/omnigraph`, and a CLI. The CLI also exports an agent skill bundle (`omnigraph skill export`) that teaches a coding agent the full operational playbook.
Omnigraph uses Cedar policies declared in YAML files and bound to specific graphs or the whole cluster. Policies are enforced server-side on every write path: the HTTP server, the CLI, and the embedded SDK all go through the same Cedar gate. The actor is resolved server-side from the bearer token, so clients cannot set or forge their own identity.
Omnigraph is MIT-licensed. Install via a shell script (`curl -fsSL https://raw.githubusercontent.com/ModernRelay/omnigraph/main/scripts/install.sh | bash`) or Homebrew. Deploy locally as a folder on your machine, on your own server with any S3-compatible store, on AWS, or with a one-service Railway setup. A managed Omnigraph Cloud is in private preview.