Open Source · Apache 2.0

build-kg

Turn any topic into a knowledge graph in your own PostgreSQL

One command. Any topic. Your database.

Coding Agent
$ /build-kg kubernetes networking Ontology 3 node types · 3 edge types · saved ontology.yaml Discover 14 sources found across 5 rounds Crawl 247 pages → crawl_output/ Chunk 1,832 fragments → chunk_output/ Load 14 docs · 1,832 fragments → PostgreSQL Parse 892 Components · 341 Concepts · 127 Configs ————————————————— 1,360 nodes · 1,247 edges Graph: kg_k8s_net (Apache AGE) Cost: $0.27

Three steps. One command.

01

Name a topic

Kubernetes networking, machine learning algorithms, React architecture patterns — any subject, plain English.

02

Your agent builds the graph

Auto-generates an ontology, discovers sources, crawls documentation, chunks, and parses into structured data. Works with Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Windsurf, Amazon Kiro, Qoder, and Antigravity.

03

Query your database

A structured knowledge graph in Apache AGE. Query with Cypher + SQL. Self-hosted in your own PostgreSQL.

Everything included

>_

8 Agent Platforms

Native support for Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Windsurf, Amazon Kiro, Qoder, and Antigravity.

Domain Profiles

Pre-configured ontologies for specialized domains. Or create your own for any topic.

Auto Ontology

Your coding agent generates node types, edge types, properties, and JSON schema for any topic automatically.

Batch API

50% cheaper parsing. Process thousands of fragments with Anthropic or OpenAI batch APIs.

Apache AGE

Graph database as a PostgreSQL extension. Cypher queries alongside SQL. No separate infra.

Open Source

Apache 2.0 licensed. No vendor lock-in, no hosting fees. Your database, your data, your code.

See your knowledge graph

build-kg-viewer — the visual companion to build-kg. Same database, no export needed.

Interactive Graph

24+ visualization components. Path finder, graph algorithms, node grouping, faceted filtering, and more.

AI Chat

Ask questions in plain English. Claude translates to Cypher, executes, and displays results in a conversational panel.

View build-kg-viewer →