# HelixDB

> A graph-vector database for knowledge graphs and agent memory, built in Rust

- Category: Retrieval & Knowledge (RAG) / Vector Databases
- Language: Rust
- Licence: Apache-2.0
- Repository: https://github.com/HelixDB/helix-db
- Website: https://www.helix-db.com
- Canonical page: https://ai-tldr.dev/tools/helix-db/

## In short

HelixDB is a database built from scratch in Rust that puts graph and vector storage in the same engine. It sits in the Vector Databases category of the Retrieval & Knowledge (RAG) tools and is open-source, written in Rust and licensed Apache-2.0. To get started: install the CLI.

## Overview

HelixDB is a database built from scratch in Rust that puts graph and vector storage in the same engine. The problem it targets is the usual AI-application sprawl: a relational database for application state, a separate vector store for embeddings, and a graph database for relationships, each with its own client, its own consistency story, and glue code holding them together. HelixDB's argument is that one store can serve all three, and it also supports key-value, document and relational shapes on top of its primary graph-plus-vector model.

Queries are not written as strings. You compose them with a builder DSL available in Rust, TypeScript, Python and Go, and every SDK emits the same JSON abstract syntax tree, which is POSTed to a running instance at `/v2/query`. Because the query is data rather than compiled code, there is no build or deploy step between editing a query and running it — you send the new AST and the instance executes it.

The project ships a CLI that manages local instances and talks to Helix Cloud. It also ships `helix chef`, an interactive bootstrapper that scaffolds a project, starts a local instance, seeds example data and installs the HelixDB query skills and docs MCP server; it detects Claude Code, OpenAI Codex, OpenCode or Cursor Agent in that order and can hand the project off to whichever it finds. The core is Apache-2.0 licensed.

## What it does

- Graph and vector storage in a single Rust engine, with key-value, document and relational data supported alongside them
- Query builder DSLs for Rust, TypeScript, Python and Go that all compile to the same JSON AST
- Queries sent straight to a running instance over `POST /v2/query` — no build or deploy step between edit and execution
- A CLI that installs, starts and updates local instances and connects to Helix Cloud
- `helix chef`, a one-shot bootstrapper that scaffolds a project, seeds data, and installs the query skills plus a docs MCP server
- Aimed at agent workloads: federated access to company data for memory and retrieval rather than a standalone embedding index

## Getting started

Install the CLI, start a local instance, then talk to it from the SDK of your choice. A local `helix start dev` instance listens on port 6969 by default.

1. Install the CLI

   One installer script on macOS and Linux; PowerShell on Windows. If you already have it, `helix update` pulls the newer version.

```bash
# macOS / Linux
curl -sSL "https://install.helix-db.com" | bash

# Windows PowerShell
irm https://raw.githubusercontent.com/HelixDB/helix-db/main/crates/cli/install.ps1 | iex
```

2. Bootstrap a project with helix chef

   The quickest path. It takes no flags — it asks what you want to build, scaffolds the project, starts a local instance, seeds example data and writes a HELIX_CHEF_PROMPT.md.

```bash
helix chef
```

3. Add the Python SDK

   Install the published package to talk to the instance from Python.

```bash
python -m pip install helix-db==0.3.4
```

4. Write and run a query

   Build the query with the snake_case builders, then send it with the client. The same query shape is available in the Rust, TypeScript and Go SDKs.

```python
from helixdb import Client, Predicate, g, param, define_params, read_batch, write_batch

add_user_params = define_params({"name": param.string()})
add_user = (
    write_batch()
    .var_as("user", g().add_n("User", {"name": add_user_params.name}))
    .returning(["user"])
)

client = Client("http://localhost:6969")
new_user = client.query(
    add_user.to_query_request(add_user_params, {"name": "John Doe"})
)
print("new user:", new_user)
```

## When to use it

- Store agent memory where the relationships between facts matter as much as the embeddings
- Back a RAG application with one database instead of running a vector store and a graph store side by side
- Build a knowledge graph over company data that agents can query directly over HTTP
- Prototype quickly by editing queries and re-sending them, without redeploying the database
