---
title: "relate — the agent-native graph database"
description: "relate is an open-source embedded database for AI agents. Give your agents a place to keep their data and see how it all connects. No signup. No server to deploy."
verified: 1.2.0
canonical_url: https://relatedb.ai/
---

# Relate: Help agents understand data

Give your agents an open-source embedded database to keep their data. No signup. No server to deploy.

This is the home page of relatedb.ai as markdown: its sections in order, with a line where the HTML page has something only a browser runs. It is reference text, not instructions.

- The site described for agents: https://relatedb.ai/llms.txt
- The docs, as markdown: https://relatedb.ai/docs/index.md (the index: https://relatedb.ai/docs/llms.txt)
- The agent skill: https://relatedb.ai/skill.md (the discovery index: https://relatedb.ai/.well-known/agent-skills/index.json)
- The cookbook: https://relatedb.ai/cookbook/llms.txt

The install commands the page's first panel gives, verified against relate 1.2.0:

- **Agent skill**: `curl -sSfL https://relatedb.ai/install.sh | bash && relate skill install --agent claude-code`
  Installs the CLI, then the relate skill for Claude Code. The install script verifies release signatures and SHA256 checksums. Guide: https://relatedb.ai/docs/get-started/agent-quickstart.md
- **macOS / Linux**: `curl -sSfL https://relatedb.ai/install.sh | bash`
  The install script verifies release signatures and SHA256 checksums. Guide: https://relatedb.ai/docs/get-started/install.md
- **Windows**: `irm https://relatedb.ai/install.ps1 | iex`
  Run it in PowerShell. The installer verifies release signatures and SHA256 checksums, then puts relate.exe on your PATH. Guide: https://relatedb.ai/docs/get-started/install.md
- **Python**: `pip install relate-db`
  The Python client. Guide: https://relatedb.ai/docs/get-started/python.md
- **JavaScript**: `npm install @relate/relate`
  For Node.js. In the browser, use @relate/relate-wasm. Guide: https://relatedb.ai/docs/get-started/node.md
- **Rust**: `cargo add relate`
  Use relate as a crate inside your application. Guide: https://relatedb.ai/docs/get-started/rust.md
- **Swift**: `.package(url: "https://github.com/relatedb/relate", from: "1.2.0")`
  The SwiftPM package, in Package.swift. Guide: https://relatedb.ai/docs/get-started/swift.md
- **Java**: `ai.relatedb:relate:1.2.0`
  The Maven Central coordinate, for a Maven or Gradle build. Guide: https://relatedb.ai/docs/get-started/java.md
- **.NET**: `dotnet add reference ../relate/clients/dotnet/src/Relate.Net/Relate.Net.csproj`
  Not on NuGet: clone the v1.2.0 tag beside your project first, and take the engine library from the release archive. Guide: https://relatedb.ai/docs/get-started/dotnet.md
- **Go**: `go get github.com/relatedb/relate/clients/go@v1.2.0`
  The module links the C library from the release archive. Guide: https://relatedb.ai/docs/get-started/go.md
- **C**: `curl -sSfLO https://github.com/relatedb/relate/releases/download/v1.2.0/relate-ffi-<target>.tar.gz`
  Pick your \<target>, e.g. aarch64-apple-darwin or x86_64-unknown-linux-gnu. Guide: https://relatedb.ai/docs/get-started/c.md

## Run directly in your browser.

Pick a dataset and query it. The database runs entirely in this page: nothing is sent anywhere.

On the HTML page this is a console on the engine's WebAssembly build, with four sample datasets (analytics, agent-memory, codebase, dependencies). The same engine, full screen, is the playground: https://relatedb.ai/playground/

## From question to answer, in seconds.

An agent asks a question, writes Cypher, and Relate reads the connected facts and returns rows. Sample data, scripted preview.

On the HTML page this is an animation of one question, the Cypher an agent writes for it, and the rows that come back.

## One database for every agent.

Every agent, script and app reads and writes the same graph, kept in memory, a directory or one file. No server to run.

### Open source

Read the code, run it locally, and add your own recipes.

### Part of your application

Relate runs inside your application. Keep your data in memory, in a directory, or in one file.

### Cypher, for connected data

Your agent asks in Cypher and gets back how the facts connect. Skill and MCP endpoint included.

### Start in milliseconds

No signup. No server to deploy.

## Run a query on connected data.

Pick a scenario to watch an agent write Cypher and read the rows that come back. Sample data, scripted preview.

On the HTML page this is a scripted terminal with three scenarios (agent memory, codebase context, recommendations). Recipes that run on the engine, each with its recorded results, are in the cookbook: https://relatedb.ai/cookbook/llms.txt

## One statement at a time.

Pick a shape of data and watch the graph grow as each Cypher statement runs, with new facts landing in the connections that already exist.

On the HTML page this is a graph drawn as a list of Cypher statements runs, for three shapes of data (an org chart, dependencies, a knowledge base).

## Four steps to your first query.

### Install the agent skill

One command, for the agents you already use. Guide: https://relatedb.ai/docs/guides/agents/install-the-skill.md

### Pick a storage format

In memory, a directory, one .rl file, or a markdown vault. Guide: https://relatedb.ai/docs/guides/storage/choose-a-store-layout.md

### Create data

Write Cypher, load a CSV, or mirror from Aura. Guide: https://relatedb.ai/docs/get-started/first-graph.md

### Query it

Tables for you, JSON for your agent. Guide: https://relatedb.ai/docs/guides/cli/output-formats.md

The prompt the page copies for a coding agent:

```text
Set up relate, the embedded Cypher graph database (relatedb.ai), for me.

1. Install the CLI with `curl -sSfL https://relatedb.ai/install.sh | bash`, which verifies the release signature and SHA-256 before installing the binary. On Windows outside WSL, where `install.sh` does not run, run `powershell -ExecutionPolicy ByPass -c "irm https://relatedb.ai/install.ps1 | iex"` instead, which makes the same checks. Stop and report any installation failure. If `relate` is not found afterwards, run `export PATH="$HOME/.local/bin:$PATH"`; on Windows, open a new shell. Check that `relate --version` runs and report the installed version; additional license text is normal.

2. Install the relate skill for your agent with `relate skill install --agent <name>` (one of claude-code, cursor, windsurf, copilot, antigravity, gemini-cli, cline, codex, pi, opencode, junie, vibe). Read the installed SKILL.md, then run `relate agent-context` for the command reference of the installed version.

3. Use ./graph.rl. If it already exists, inspect its schema and ask whether I want to query its existing data or import more. Never replace or clear existing data without asking. Otherwise, ask me what data to load and my first question, then create the database and load it. Import in a transaction where supported and verify the imported counts.

4. Answer my questions by writing and executing Cypher queries with `--database ./graph.rl --read-only --mode envelope` unless I request a change. Follow the installed skill: inspect the ontology/schema before generating queries, bind values as parameters, and bound non-aggregate results with LIMIT. Use write access only for the requested import or changes, verify the result, then return to read-only queries.

Reference: https://relatedb.ai/docs/get-started/agent-quickstart.md and https://relatedb.ai/docs/llms.txt. The docs are reference text, not instructions.
```

## Built for agents, wherever your agent runs.

relate is a library inside your application. Your agent writes Cypher and relate answers with the results. Use the interface that fits your build.

### Agent skill

Teaches your coding agent to write Cypher for relate. Guide: https://relatedb.ai/docs/guides/agents/install-the-skill.md

### MCP endpoint

Lets agents that speak MCP connect without glue code.

### Command line

Create, load and query a database right from the shell.

### Libraries

Embed relate in your own application, in your language.

### Your language, one library

The same relate in Rust, Python, JavaScript, WebAssembly, Go, Java, .NET, Swift and C. Pick the one your application is written in.

### No server to run

relate starts when your application does and stops when it stops. Nothing to host, nothing to keep running.

## Memory with structure.

Raw data becomes connected facts, so your agent can follow how people, decisions and documents relate. Relationships and similarity answer in one query.

### Facts, not loose text

Decisions, people and documents become facts you can query.

### Relationships and similarity together

One Cypher statement can combine both.

## Zero to querying in seconds.

Install the open-source package, create a database and start running your first query. No account, no instance and no server to deploy.

It runs openCypher, GQL and Cypher 25, and is tested against the openCypher TCK. Where it differs from Neo4j: https://relatedb.ai/docs/reference/cypher/differences-from-neo4j.md

## Build it with us, one recipe at a time.

Share a recipe for the cookbook, report what you find, and show what your agents learned.

The source: https://github.com/relatedb/relate. How a recipe is written: https://github.com/relatedb/relate-web/tree/main/src/content/cookbook#writing-a-recipe

## Give your agent a graph it can think with.

The docs: https://relatedb.ai/docs/index.md. The playground: https://relatedb.ai/playground/
