helix-foundry README

The project's README from github.com/HelixDB/helix-foundry. As one markdown file: README.md.

Helix Foundry

Your company's data, connected into one ontology, on your own computer.

Helix Foundry is a local-first data workspace built on HelixDB and DuckDB. Connect the tools your company already runs on, such as your database, Stripe, WorkOS, PostHog, files and APIs, and it suggests one connected ontology across them that you can explore and ask questions of. There are no accounts and nothing to host: it runs on your computer, and AI runs locally by default.

The Helix Foundry Explorer showing accounts, users, invoices, subscriptions, campaigns, SSO connections and support tickets as one connected graph

Get started with your coding agent

You need Docker installed and running. The first run downloads several GB, so give it a few minutes.

Paste this prompt into Claude Code, Codex, Cursor or any coding agent that can run terminal commands:

Set up Helix Foundry on this computer.

Clone https://github.com/helixdb/helix-foundry.git (or use the copy I already
have), cd into it, then read AGENTS.md and follow it to install, start and
verify the app. Ask me before doing anything that deletes data or stops
something that is already running. When it is ready, give me the URL and
tell me what to do next.

Your agent will ask you to approve git, docker and network commands as it goes. Approve them one at a time rather than allowing every docker command up front; the runbook asks before anything that deletes data.

What your agent will do

What you do next

  1. Open the URL (http://localhost:3001 by default). There is no account to create.
  2. Guided setup takes you through AI → Data → Ontology. Choose Local, Claude or OpenAI. Connect your data, or choose Continue with sample data. Then confirm the suggested ontology.
  3. Home opens with your key metrics. Ask anything about your data from the box at the top.

You enter Claude or OpenAI keys and database credentials yourself, in the browser. Your agent never needs them.

Manual quick start

You need Docker with Compose v2 (see requirements).

git clone https://github.com/helixdb/helix-foundry.git
cd helix-foundry
./scripts/setup.sh --compose

setup.sh writes fresh keys to .env if it does not exist yet, then builds and starts the app, a background worker, the DuckDB executor, HelixDB and Ollama. The first run builds the image and downloads HelixDB, Ollama and the qwen3:4b model (roughly 2.5 GB), so give it several minutes.

It is ready when the health check answers:

curl -fsS http://localhost:3001/api/health
# {"ok":true,"service":"helix-foundry"}

Then open http://localhost:3001. The model keeps downloading in the background, and you can start setup before it finishes.

Port 3001 already in use? Create .env first, then set the port and the matching origin together:

./scripts/setup.sh                                   # creates .env with fresh keys
echo 'PUBLIC_PORT=3005' >> .env
echo 'PUBLIC_ORIGIN=http://localhost:3005' >> .env
./scripts/setup.sh --compose

Add the two lines once; if .env already has them, change their values instead. Always change both. If only the port changes, pages load but every save fails with 403 Origin is not allowed.

Apple Silicon. Docker cannot use Metal, so local AI is faster with native Ollama. Start Ollama, then run the stack without the bundled model:

./scripts/setup.sh
grep -q '^MODEL_ENDPOINT=' .env || echo 'MODEL_ENDPOINT=http://host.docker.internal:11434' >> .env
docker compose up -d --build

This relies on Docker Desktop, which provides host.docker.internal. With another Docker runtime, use the default command above.

Requirements

Helix Foundry is developed and validated on macOS with Apple Silicon, and CI runs on Linux. Windows is untested, and the scripts need bash.

What you get

The full feature list, connector details and architecture are in the guide.

Everyday commands

Run these from the repository. If you use native Ollama, leave out --profile local.

docker compose --profile local ps -a                # status
docker compose --profile local logs -f app worker   # follow logs (Ctrl+C to stop)
docker compose --profile local stop                 # stop
docker compose --profile local up -d                # start again

The stack starts again with Docker unless you stopped it.

Upgrade. Run ./scripts/upgrade.sh. It backs up to ~/helix-foundry-backups/ first and stops if the backup fails, then pulls and rebuilds; if the rebuild fails, run it again. If the new release changes HelixDB, it asks first: a newer HelixDB upgrades your data one way, so only that backup can take you back. To go back, run the two commands it prints at the end. A checkout from before scripts/upgrade.sh records the running commit and pulls once first; see operations.

Back up and restore. ./scripts/backup.sh PATH briefly stops the services and archives the HelixDB and data volumes to a folder outside the repository. Backups leave out your encryption key, so keep a separate copy of .env, for example in a password manager. --include-key adds .env, encrypted with a passphrase. ./scripts/restore.sh PATH --replace replaces the current data. It refuses a backup made with another key unless you pass your copy with --env-file, and keeps the .env it replaces as .env.pre-restore-TIME.

Never run docker compose down -v unless you mean to delete everything. It removes all workspaces, imported data and stored credentials. See operations for upgrades, change capture and limits.

Local development

Use Node.js 24 and pnpm 10.7. Run HelixDB in Docker and the app natively:

pnpm install
./scripts/setup.sh
docker run -d --name helix-foundry-dev -p 127.0.0.1:6996:8080 \
  -e HELIX_DATA_DIR=/var/lib/helix -v helix-foundry-dev:/var/lib/helix \
  ghcr.io/helixdb/helixdb:v0.0.6@sha256:94b29942658ebdca0a91bf15edffe921a46da3e26e1223ea333ccce58c6212dd
pnpm dev

Open http://localhost:5173. pnpm dev runs the API on 3001, the executor on 3002 and the web app on 5173. Local AI also needs Ollama on port 11434 (ollama serve). Before opening a pull request, run the same checks as CI: pnpm typecheck, pnpm test and pnpm build. The guide covers tests, ports and the SDK.

Security model

Helix Foundry is built for one person on their own computer. There are no accounts and no sign-in, so anyone who can reach the app controls every workspace.

Documentation

Document What it covers
AGENTS.md Runbook for coding agents: preflight, setup, verification and troubleshooting
docs/GUIDE.md Features, connectors, AI and review, architecture, development and testing
docs/DESIGN.md Existing visual standards, UI tokens, progress feedback and accessibility
docs/onboarding.md Onboarding API routes, SDK methods and import limits
docs/OPERATIONS.md Install profiles, diagnostics, change capture, backup, restore, upgrades, limits
docs/HOSTING.md Neon, Supabase and PlanetScale sign-in, scopes and permissions
docs/API.md REST API reference, authentication and the TypeScript SDK
docs/VALIDATION.md Test results, benchmarks and known limits from the September and October 2026 validation runs; the backup, restore and upgrade scripts have only stub Docker tests so far

License

Helix Foundry is released under the Apache License 2.0. See NOTICE for attribution.

helix-foundry (HelixDB/helix-foundry)

Searching Database…

这是什么?Helix Foundry 是一个本地优先的数据工作区,把你公司的各种工具(数据库、Stripe、WorkOS、PostHog、文件、API)连接成一份存储在 HelixDB 中的建议本体,让你可以探索数据并向数据提问。
这是托管服务,还是完全在我自己的机器上运行?它通过 Docker Compose 完全在你自己的电脑上运行,无需创建任何账号,也不需要在远程托管任何东西;AI 默认也在本地运行。
怎么让它跑起来?把安装提示词粘贴给 Claude Code、Codex 或 Cursor 这类编程代理,它会检查 Docker、生成加密密钥并构建/启动 Docker Compose 全套服务;你也可以自己用 scripts/setup.sh 手动快速启动。
开始之前需要装好哪些东西?需要带 Compose v2 插件的 Docker,另外安装脚本还需要 git、bash 和 openssl;首次运行还会下载几个 GB 的内容,包括 HelixDB、Ollama 和 qwen3:4b 模型。
它在 Windows 或 Intel Mac 上能用吗?Windows 未经过测试,因为脚本需要 bash;在 Apple Silicon 上 Docker 无法使用 Metal,所以为了获得更快的本地 AI,推荐用原生 Ollama 替代捆绑的 Docker 模型。
我的数据或 AI 使用会离开我的机器吗?不会,默认情况下一切都留在本地:应用只监听 127.0.0.1,拒绝来自其他来源的请求,AI 通过 Ollama 在本地运行,除非你主动选择 Claude 或 OpenAI 并输入自己的密钥。
它能连接哪些数据源?它支持 Neon、Supabase、PlanetScale、PostgreSQL、MySQL、Stripe、WorkOS、PostHog、REST API、兼容 S3 的存储、文件上传(CSV、JSON、JSONL、Parquet)以及一个通用数据接入 API。
它如何保持数据是最新的?在支持的地方,它对 PostgreSQL 和 MySQL 使用原生变更捕获,其他数据源则退回到定时快照刷新,存储带版本、不可变的 Parquet 快照并保留结构漂移历史。
向数据提问有哪些 AI 选项?安装时可以选择 Local、Claude 或 OpenAI;本地选项通过 Ollama 使用 qwen3:4b 模型,而 Claude 和 OpenAI 需要你在浏览器中提供自己的 API 密钥。
开发者能把 Helix Foundry 集成到其他工具中吗?可以,它在 /api/docs 提供 OpenAPI 规范、TypeScript SDK,以及默认只读的受限 API 令牌,可在 Settings → Developer tools 中获取。
What are similar projects?m_flow, MemOS, jevbox, semantica, oxynote, airbyte, headroom, tabularis
Creator
HelixDB
Size
1.3 MB
Stars
1.6K
Updated
CommitOct 13
Age
11d
Commits · 90 Days