Works inside your agent.
Prompt naturally. OpenGraph builds and queries the connected context behind the answer.Example output
Turns multimodal data into queryable knowledge graphs. Agents can traverse relationships, reason across sources, and cite the evidence.
Give your coding agent a connected view of your workspace instead of another pile of isolated search results.
Example output
Example output
Where did I leave my phone, and what was next to it?
phone on_top_of kitchen_islandphone next_to glass_mugphone seen_in ep03_step-010.jpgExample output
7 of 8 objects and 6 of 8 relations kept. Weakest relation kept: digital_clock behind tablet, 0.64.
Example output
Q3 board meeting minutesConfidential
3. Operations
Revenue held to plan for the quarter, with services 4% ahead of forecast.
Corvane Robotics opened a second plant in 2025. Lead times on drive units fell from eleven weeks to seven after the move.
The board asked for a supplier review before the July 2026 renewal.
| A | B | C | |
|---|---|---|---|
| 1 | Supplier | Region | Renewal |
| 2 | Halden Components | EU | 2026-03 |
| 3 | Pellworth Supply | US | 2025-11 |
| 4 | Corvane Robotics | US | 2026-07 |
| 5 | Kessel Drive Systems | EU | 2026-01 |
Start from the terminal, connect your sources, and query the same graph from the interface your agent already uses.
Build, inspect, and query a graph from your terminal. Good for scripts, CI, and a first look at your data.
What OpenGraph AI does today, where your data goes, and how to start building.
Still have a question? Ask us directly or dig into the docs.
OpenGraph AI is an open-source context layer for AI agents. It turns your files into knowledge graphs of entities, the relationships between them, and the source each one came from, then gives agents tools to query those graphs over MCP or a CLI.
It ships as separate packages per data type. OpenGraph Image and OpenGraph Text are on PyPI; OpenGraph Table is in preview.
Vector search finds passages that look similar to a question. A graph stores explicit, typed relationships, so an agent can follow on_top_of, acquired, or part_of edges across several steps and keep the evidence attached at every hop.
They work well together: retrieve broadly with embeddings, then use the graph to resolve relationships and cite sources. Read how context graphs work.
.txt, .md, .pdf) with OpenGraph TextAudio and video files aren't read directly yet. For video, sample frames into a folder and build an image graph from them.
Any MCP-compatible client, including Claude Code, Claude Desktop, and Cursor. Register a server once and the agent picks the right tools on its own:
claude mcp add opengraph-image -- opengraph-image-mcp
There is also a CLI for scripts and CI, and every build writes a plain graph.json you can load in your own code.
Building and querying a graph call your model provider, currently Claude through the Anthropic API, so source content is sent there for extraction. The graph itself is written to a local opengraph-out/ folder next to your data, and you decide where it goes from there.
Check your provider's data terms before processing anything sensitive.
The packages are free and open source under the Apache-2.0 license. Extraction and querying use Claude, so you need an Anthropic API key set as ANTHROPIC_API_KEY, and that usage is billed by Anthropic. Build cost grows with the number of files you process.
Every node keeps a link to its source. Image objects list the images they were seen in, text claims link to the document that states them, and table values keep their file, sheet, and cell.
Ask the agent to show its evidence, or call get_image_entities or get_document_entities to inspect everything extracted from a single file.
Install the image package and build a graph from any folder of pictures:
pip install opengraph-image
opengraph-image build ./photos
The quickstart walks through the rest. To see a finished graph first, open the live robot-memory sample; it needs no install.
Yes. Issues and pull requests are welcome on GitHub. New test images, extraction edge cases, and documentation fixes all help. To talk an idea through first, join the Discord or email team@opengraphai.io.
OpenGraph AI turns tables, text, images, audio, and video into queryable knowledge graphs, so agents can reason over the relationships in your data and retrieve the evidence behind an answer. The first packages cover images, documents, and tables.
One context layer, designed to fit the stack you already trust.
Building something on top of OpenGraph AI? Tell us about it. We read every message and reply.