# ChloeDB > ChloeDB is a search database with SQL: full text (BM25), vectors, graphs and structured fields in tables, embedded in a process (Rust, Python, JavaScript, Java) or served by chloedb-server over HTTP, gRPC and MCP, on one machine or a cluster. Its SQL is its own dialect, not Postgres: MATCH and bm25 for words, similarity for meaning, rrf to fuse them. An agent connected to a chloedb-server over MCP (`{server}/v1/mcp`) gets these documents through its `search_docs` tool and its prompts. [Build with an AI agent](https://chloetech-ai.github.io/chloedb/guide/agents.md) says how to connect one and the prompts that work. The rendered site is https://chloetech-ai.github.io/chloedb/site/docs/. ## Start - [Overview](https://chloetech-ai.github.io/chloedb/guide/index.md): ChloeDB is an embedded search database with SQL: full text, structured columns, vectors and graph edges over the same rows, in one file, combined in one query by one planner. It runs inside your program like SQLite,… - [Quickstart](https://chloetech-ai.github.io/chloedb/quickstart.md): This page takes you from nothing to a full-text search with SQL in about five minutes, with nothing to compile. You install ChloeDB's server, make a table, put a few rows in it, search them, and open the command… - [Build with an AI agent](https://chloetech-ai.github.io/chloedb/guide/agents.md): An agent such as Claude Code can do most of what this documentation describes for you. It can load a file, make it searchable by words and by meaning, answer questions from your rows with citations, write the search… - [Concepts](https://chloetech-ai.github.io/chloedb/guide/concepts.md): ChloeDB is a search engine and a database in one library. This page names the parts you meet when you use it: the file, tables and their fields, the three kinds of index every row gets, scores, the planner, and the… - [Build an app on the HTTP API](https://chloetech-ai.github.io/chloedb/chloedb/build-an-app.md): A shop in one page: search, stock that never oversells, holds that expire, and click events counted exactly once. Each part is a few lines of SQL or JSON over HTTP, with links to the reference for the rest. - [Troubleshooting](https://chloetech-ai.github.io/chloedb/chloedb/troubleshooting.md): The errors people meet first with ChloeDB, each with its message as the program prints it, what it means and what to do. Search this page for a few words of your message. These are the messages of release 0.3.8. ## Search and SQL - [Search guide](https://chloetech-ai.github.io/chloedb/guide/search.md): This page builds a small catalogue of books and searches it every way ChloeDB can: words, phrases and typos, filters and facets, meaning, a blend of the two, and results spread across authors. Each query is SQL, and… - [Build a search page](https://chloetech-ai.github.io/chloedb/guide/search-page.md): This page builds the search page of a small shop in Python: a search box that forgives typos, the words it matched highlighted in the results, "did you mean" under a misspelt search, a filter by category with the… - [SQL reference](https://chloetech-ai.github.io/chloedb/chloedb/query-language.md): ChloeDB speaks standard SQL over the tables of a database: SELECT with functions for full text, vectors, rank fusion and graphs, aggregates, typo-tolerant and synonym searches, and subqueries, WITH and joins of a… - [Graphs](https://chloetech-ai.github.io/chloedb/chloedb/graphs.md): Rows can link to other rows. A traversal, a shortest path or personalized PageRank runs in the same SQL statement as BM25, filters and vector search, and can start from any of them. On arXiv, the papers cited by a… - [Next items](https://chloetech-ai.github.io/chloedb/chloedb/next-items.md): What a user will open, watch or buy next, from what came after the same items before: counts kept in an ordinary table as events arrive, read with backoff from the last two items to the last one. They update with… - [Search on the device](https://chloetech-ai.github.io/chloedb/chloedb/slices.md): A slice is a copy of the rows of a table near a device's user, which the device searches itself: near in space (a geo slice, for "near me" search) or near in meaning (a vector slice, for recommendations and "more… - [How ChloeDB works](https://chloetech-ai.github.io/chloedb/chloedb/index.md): ChloeDB is to search what SQLite is to relational data: a library that keeps a whole database in one file, needs no server or configuration, gives ACID transactions, and is queried with SQL. Every table is indexed… ## Cookbook - [Retrieval for RAG](https://chloetech-ai.github.io/chloedb/guide/rag.md): A model answers questions about your documents well when it is handed the right passages, with their sources. This recipe splits documents into passages, stores them in ChloeDB with a vector each, and retrieves for a… - [Memory for an agent](https://chloetech-ai.github.io/chloedb/guide/agent-memory.md): An agent that works over many sessions needs to remember: what was said, what was decided, and facts that change. This recipe keeps an agent's memory in one ChloeDB file: every turn as a row, facts under keys that… - [Crawl a site into search](https://chloetech-ai.github.io/chloedb/guide/crawl-to-search.md): chloedb-crawl reads a site, finds the fields its pages carry (JSON-LD, meta tags, spec tables, the site's own template), makes a table from them and fills it. This recipe crawls a small shop, served on your machine… - [Search your logs](https://chloetech-ai.github.io/chloedb/guide/logs.md): ChloeDB keeps log lines in an ordinary table and finds them the way an on-call engineer looks at 3 a.m.: any part of a line (an interface name, an IP, an error code) from a substring index, the last 15 minutes with… ## Clients - [Python](https://chloetech-ai.github.io/chloedb/chloedb/python.md): The chloedb package runs a ChloeDB database inside a Python process, the way sqlite3 runs SQLite, or talks to a running chloedb-server. Both have the same methods, so a script written against a local file works… - [DataFrames](https://chloetech-ai.github.io/chloedb/chloedb/frames.md): store["table"] is a chloedb.Frame: a lazy dataframe written the way Polars writes one. Nothing is read until you ask for rows. Then the whole chain compiles to one SQL statement, which runs where the data is (a file… - [JavaScript](https://chloetech-ai.github.io/chloedb/chloedb/javascript.md): The chloedb package opens a ChloeDB file inside a Node, Bun or Deno process, the way better-sqlite3 opens a SQLite file: no server, no configuration. It can also talk to a running chloedb-server from any JavaScript… - [Rust](https://chloetech-ai.github.io/chloedb/chloedb/rust.md): The chloedb crate is ChloeDB itself: the Python, JavaScript and Java packages and chloedb-server are built on it. A Rust program that depends on it opens a database file in its own process, with no server, and reads… - [Java and JDBC](https://chloetech-ai.github.io/chloedb/chloedb/java.md): The ai.chloetech.chloedb package runs a ChloeDB database inside a Java process, the way sqlite-jdbc runs SQLite: the database is a file the JVM opens, read and written by ChloeDB's native library over JNI, with no… - [LangChain, LangGraph, LlamaIndex](https://chloetech-ai.github.io/chloedb/guide/frameworks.md): The Python package has adapters for the frameworks agents and retrieval pipelines are built with: a LangChain vector store, a LangGraph checkpointer and long-term memory store, a LlamaIndex vector store, and a DB-API… - [Framework adapters reference](https://chloetech-ai.github.io/chloedb/chloedb/frameworks.md): The Python package plugs ChloeDB into the frameworks agents and retrieval pipelines are built with, and into anything that takes a Python DB-API connection: ## Server and cluster - [chloedb-server](https://chloetech-ai.github.io/chloedb/chloedb/server.md): chloedb-server serves a ChloeDB database over HTTP JSON and gRPC. Every server has a command center in the browser, with a query console and an agent that answers questions by writing SQL. Run several servers as… - [Operate a cluster](https://chloetech-ai.github.io/chloedb/guide/operate-cluster.md): This page runs ChloeDB as a production-shaped cluster on machines of your own, without Kubernetes: two shards, each held by three copies that elect their primary among themselves, a coordinator in front of them, a… - [Cluster limits](https://chloetech-ai.github.io/chloedb/chloedb/cluster-limits.md): A coordinator over shards (sharding) answers most requests as one server does: the tests run every query kind against three shards and one database and compare the answers. This page lists what it refuses, and what… - [Back up, restore and upgrade](https://chloetech-ai.github.io/chloedb/guide/backup.md): Before ChloeDB holds data someone depends on, whoever runs it will ask three things. How is it backed up? How is a backup put back after a bad write or a lost disk? How is it upgraded, and rolled back if the new… - [Runbooks](https://chloetech-ai.github.io/chloedb/chloedb/runbooks.md): What to do when an alert fires or the fleet view names a problem, written for an operator and for an agent alike. Each runbook names the alerts (GET /v1/alerts) and fleet problems (GET /v1/health/fleet, each… - [Security model](https://chloetech-ai.github.io/chloedb/chloedb/security.md): This page says who can reach a ChloeDB server, what each credential lets its holder do, what is open without one, and what is left to you: the network around the servers, the disks, and the files the servers write.… - [Security review pack](https://chloetech-ai.github.io/chloedb/chloedb/security-review.md): This page is for the person who has to approve ChloeDB before a team runs it: a security engineer, a GRC lead, a platform owner. It collects in one place what a review asks for. It covers what is protected and from… - [SQLite in and out](https://chloetech-ai.github.io/chloedb/chloedb/sqlite.md): ChloeDB imports the tables of a SQLite database, making a ChloeDB table of each with a schema read from SQLite's declarations and the values the columns hold, and exports a ChloeDB database to a new SQLite file that… - [Parquet and S3](https://chloetech-ai.github.io/chloedb/chloedb/parquet.md): ChloeDB reads Parquet files, and directories of them as Spark, DuckDB, polars and pandas write them, into a table, making the table's schema from the columns' types and values when it does not exist, and writes a… - [Following Postgres](https://chloetech-ai.github.io/chloedb/chloedb/postgres.md): chloedb-server follow-postgres keeps ChloeDB in step with a Postgres database by logical replication: it copies the tables of a publication, then applies every insert, update, delete, TRUNCATE and new column a moment… - [Following MySQL](https://chloetech-ai.github.io/chloedb/chloedb/mysql.md): chloedb-server follow-mysql keeps ChloeDB in step with a MySQL database by its binary log, as a replica reads it: it copies the tables it follows as of one snapshot, then applies every insert, update, delete,… - [Connectors](https://chloetech-ai.github.io/chloedb/chloedb/connectors.md): A connector brings another system's data into a table of chloedb-server, and keeps it coming: it reads the system on a schedule (a pull), takes what the system sends (a push), or, for Kafka, keeps reading its topics… - [OpenSearch API](https://chloetech-ai.github.io/chloedb/chloedb/opensearch.md): chloedb-server --opensearch-listen 127.0.0.1:9200 answers OpenSearch's REST API on a port of its own: an application written for OpenSearch or Elasticsearch 7 (Gitea, Mastodon, an OpenSearch client library) indexes… - [Tenants in an object store (experimental)](https://chloetech-ai.github.io/chloedb/chloedb/tenants.md): A tenant is one ChloeDB database that lives whole in an object store: a directory, or S3 and the stores that speak its API. A node that serves it works on a local copy, which is only a cache. Any node pointed at the… - [Versions and compatibility](https://chloetech-ai.github.io/chloedb/compatibility.md): What this code promises about the files it reads and writes, the protocol its servers speak to each other, and the names it was known by before; and what it does not promise yet. It describes the code as it is on… ## ChloeCtx - [ChloeCtx](https://chloetech-ai.github.io/chloedb/chloectx/index.md): ChloeCtx gives Claude Code a memory that outlives its sessions. It records every prompt, answer, tool call and compaction summary of a project into a ChloeDB file on your machine, has a small model write down the… - [Install ChloeCtx](https://chloetech-ai.github.io/chloedb/chloectx/setup.md): ChloeCtx runs next to your own Claude Code: hooks record each session into a local ChloeDB file per project, and a small MCP server lets the model search that history. This page takes a fresh macOS or Linux machine… - [ChloeCtx inspector](https://chloetech-ai.github.io/chloedb/chloectx/inspector.md): A local web app for watching ChloeCtx work: what the hooks store, what the distiller writes down and what recall injects, for your own sessions or for a chat in a scratch project. Every panel is a query against the… - [Context capsules](https://chloetech-ai.github.io/chloedb/chloectx/capsules.md): A capsule is a slice of a project's memory packed into one read-only ChloeDB file, which one agent hands to another. The receiving agent does not read it: Claude Code mounts it as MCP tools, and the agent asks it… - [Blame and receipts](https://chloetech-ai.github.io/chloedb/chloectx/receipts.md): ChloeCtx puts records from earlier work into an agent's context: on every prompt, after a compaction, and when the agent calls memorysearch. Each of those recalls now writes a receipt, and the store is kept as a… - [ChloeCtx on a cluster](https://chloetech-ai.github.io/chloedb/chloectx/app.md): chloectx app runs ChloeCtx beside a ChloeDB cluster, as the crawler and Sheets do, and the command center shows it under Apps. Its memory is not a file on one laptop: it lives in the cluster's tables, so any number… - [Personal memory](https://chloetech-ai.github.io/chloedb/chloectx/personal-memory.md): ChloeCtx keeps a memory of your own beside the memories of your projects: the chats you had with ChatGPT, Claude.ai and Gemini, and a persona card of what they say about you, each line linked to the chats it came… ## Apps - [Apps on a cluster](https://chloetech-ai.github.io/chloedb/guide/apps.md): Some programs built on ChloeDB run beside chloedb-server and show in its command center under Apps: the crawler, which turns a site into a table, Sheets, spreadsheets whose cells are rows of ChloeDB, and ChloeCtx,… - [Crawler](https://chloetech-ai.github.io/chloedb/chloedb/crawler.md): chloedb-crawl takes a URL, reads the site's pages, finds their fields, makes a table from them and fills it, and adds shards to the cluster as the table grows. It is a program of its own, in Rust, that talks to… - [Sheets](https://chloetech-ai.github.io/chloedb/chloedb/sheets.md): chloedb-sheets is a spreadsheet app that keeps its workbooks in ChloeDB. A workbook has the things you expect of one: sheets, formulas (IronCalc's engine, over 300 of Excel's functions, array formulas and spills),… - [Network operations](https://chloetech-ai.github.io/chloedb/chloedb/netops.md): chloedb-netops is a network operations center kept in ChloeDB: the inventory, the topology, a point a minute of telemetry, device logs, alerts, incidents, changes, configurations, runbooks, and agents that work an… - [Hacker News](https://chloetech-ai.github.io/chloedb/chloedb/hn.md): chloedb-hn keeps every public Hacker News item in ChloeDB, about 49 million stories, comments, jobs and polls from October 2006 on, and searches them the way people look for things on HN: a story they half remember,… - [arXiv explorer](https://chloetech-ai.github.io/chloedb/chloedb/arxiv.md): chloedb-arxiv is an explorer of every paper on arXiv: 3.25 million papers up to this week, the people who wrote them, the citations between them, about 1,100 topics found from what they say, techniques and domains,… - [GitHub explorer](https://chloetech-ai.github.io/chloedb/chloedb/github.md): chloedb-gh is an app of a ChloeDB cluster built on GH Archive: every public event on GitHub since 12 February 2011, about ten billion of them, in a cluster of four shards on machines with 8 GB of memory each. It… - [Image explorer](https://chloetech-ai.github.io/chloedb/chloedb/img.md): chloedb-img is an explorer of PD12M: 12.4 million pictures that are in the public domain or under CC0, from museums, libraries, archives and Wikimedia Commons, each with a caption written by a model and the vector… - [Sound Explorer](https://chloetech-ai.github.io/chloedb/chloedb/sound.md): chloedb-sound keeps free sounds in ChloeDB and finds them by how they sound: field recordings, effects and music that anyone may reuse with credit, each with its author, licence and a link back to where it came from.… - [Grant Finder](https://chloetech-ai.github.io/chloedb/chloedb/grants.md): chloedb-grants helps a small nonprofit find grants and write the applications. It keeps every open federal grant from Grants.gov's public API in ChloeDB, ranks them against the organization's mission, keeps a… - [Backbone explorer](https://chloetech-ai.github.io/chloedb/chloedb/backbone.md): chloedb-backbone is an app of a ChloeDB server built on public data about how the internet's networks reach each other: every BGP update a RIPE RIS collector hears, checked as it arrives against RPKI and against the… - [Earth explorer](https://chloetech-ai.github.io/chloedb/chloedb/earth.md): chloedb-earth is an app of a ChloeDB server built on public pictures and records of the ground: every fire pixel the GOES satellites see over California and Chile, every few minutes, grouped into fires as they come;… - [Packet explorer](https://chloetech-ai.github.io/chloedb/chloedb/packets.md): chloedb-packets is a packet explorer: a capture (a .pcap or .pcapng) is decoded by tshark, Wireshark's own dissectors, into rows of ChloeDB tables, and the page reads them as Wireshark would, then goes further and… - [App engine (prototype)](https://chloetech-ai.github.io/chloedb/chloedb/apps.md): chloedb-apps is a prototype app engine on ChloeDB. You describe an app in a sentence ("a stock room: items, suppliers, what is low, purchase orders"), and the engine has a model plan and write it, checks what it…