> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helix-db.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Security and data handling

> What Helix Foundry stores, how it seals credentials, why connectors only read, what reaches AI model providers and how to keep it local, what else it sends, who can read what, and how the local install stays on 127.0.0.1

Reference

This page says what Foundry keeps, where your credentials live, what leaves it and who
can read what. It covers both Foundry at foundry.helix-db.com and the open-source install
on your own computer; where they differ, it says so. For Helix Cloud databases, see
[Helix Cloud security](https://docs.helix-db.com/database/helix-cloud/operate/security.md).

## What Foundry stores

| What | Where it's kept |
| - | - |
| Workspaces, connections and their sealed credentials, ontologies, versions, loads, questions, review decisions, Founder chats, dashboards and workflows | Foundry's database (MySQL) |
| Each sync's snapshot of a connection's tables, and the documents you upload | Foundry's object store |
| What each load writes: entities, facts, and where each came from | The ontology's Helix database |

A sync's snapshot replaces the one before it. A load is a complete copy written beside
earlier loads, so you can compare them; see [Load data](https://docs.helix-db.com/foundry/ontologies/load-data.md).
Deleting an ontology removes what its loads wrote and leaves the database's other data
in place. Foundry never deletes a Helix database.

On your own computer, these are Docker Compose volumes: `mysql`, `storage` (the object
store, SeaweedFS), `helix` (HelixDB), `work` (the workers' working files), `secrets`,
and `ollama` (the local models, with the `ollama` profile). `docker compose down` keeps
them; `docker compose down -v` deletes them all. See the
install's [backup and restore](https://github.com/helixdb/helix-foundry/blob/main/local/README.md#back-up-and-restore).

## Credentials

* **Entered in Foundry, never through an agent.** Database passwords and API keys are
  entered in Foundry's **Add data** form. An agent on the
  [Helix MCP](https://docs.helix-db.com/foundry/agents/helix-mcp.md#connectors-stay-on-the-website) gets a link to
  that form, never the credential, and Foundry's tools never return one.
* **Sealed at rest.** Foundry seals each connector credential, and each AI provider key
  entered under [AI models](https://docs.helix-db.com/foundry/workspace/ai-models.md), with AES-256-GCM under the
  deployment's connector key. Each sealed value is bound to the row it belongs to, so a
  copy moved to another connection or workspace doesn't open. Hosted, new values use the
  current key and values sealed under the previous one still open, so Helix can rotate
  it. The local install's key is written once and never rotated.
* **Not shown again.** Foundry keeps a key encrypted and never shows it again.
* **On your own computer**, the first start writes the install's secrets, the connector
  key among them, into the `secrets` volume. Nothing is printed or written to the
  checkout. Whoever holds that volume and the data can open every credential, so keep a
  backup of it encrypted, or apart from the rest. Losing it makes the credentials
  unreadable. An `ANTHROPIC_API_KEY` or `OPENAI_API_KEY` passed from your shell is never
  stored or logged.

## Connectors only read

Foundry never writes to your sources:

* **Databases.** Create a user with `SELECT` on the tables Foundry reads; each
  connector's form gives the SQL. PostgreSQL and MySQL reads run in read-only
  transactions. Change capture also needs the right to read the database's change log:
  `REPLICATION` on PostgreSQL (`rds_replication` on Amazon RDS and Aurora), and
  `REPLICATION SLAVE, REPLICATION CLIENT` on MySQL. With PostgreSQL change capture,
  Foundry keeps a replication slot named `helix_foundry_<connection>` on the database,
  which it creates and drops itself; it changes no table.
* **Apps.** Foundry only calls their read endpoints, and each connector's setup asks for
  read-only scopes where the provider offers them, such as a restricted Stripe key or
  read-only Google scopes. See [Connectors](https://docs.helix-db.com/foundry/data/connectors.md) for each one's
  scopes.
* **API sources** take what your apps and agents send; Foundry reads nothing from them.

## What reaches AI model providers

| Task | What is sent |
| - | - |
| Generating a draft | Your synced tables, and up to five of the newest documents of each set the generation picks |
| Reading documents in a load | Their text, to find and check the names and facts they hold |
| Reading tables in a load | Nothing: tables load without AI models |
| Answering a question | The question, and what each step reads from the load |
| Talking to Founder | Your messages, and what its steps read from the load |

Hosted, these run on Anthropic's Claude models through Helix by default. On Pro or Max,
an owner can run them on the workspace's own Anthropic key instead; see
[AI models](https://docs.helix-db.com/foundry/workspace/ai-models.md).

On your own computer, they run on the provider you choose: Claude, OpenAI, Azure OpenAI,
Amazon Bedrock, Cohere, an OpenAI-compatible server, or a local model in Ollama or LM
Studio. To keep everything on the machine, run Ollama beside Foundry, and either set
`FOUNDRY_AI_PROVIDER=ollama` in `local/.env` or start it from a shell without
`ANTHROPIC_API_KEY` or `OPENAI_API_KEY`: Foundry picks Claude, then OpenAI, before
Ollama.

```bash theme={"languages":{"custom":["languages/helixql.json"]}}
docker compose --profile ollama up -d --wait
```

Nothing sent to the bundled Ollama leaves the machine, and it listens on the ontology
agent's loopback only. Small local models may stop drafts early. See the install's
[AI settings](https://github.com/helixdb/helix-foundry/blob/main/local/README.md#ai).

On your own computer, Founder can also run on the Claude Code or Codex you're signed in to.
Each CLI then keeps a thread's session on your computer, holding what Foundry's tools
answered in that thread; the helper deletes them when the thread is deleted or the
helper is revoked.

## Other outbound traffic

* **Usage analytics, hosted.** Foundry's site sends Databuddy (databuddy.cc) the pages
  you open, the steps you take, errors and session replays, under your account's name
  and email. Replays mask the page's text and what you type.
* **Usage analytics, on your own computer.** The install's site and its HelixDB tell
  Helix, anonymously, how Foundry is used: page paths with ids taken out, steps such as
  a load being ready, and each query's shape with values taken out. The site sends its
  part on to Databuddy. They send no data, documents, questions, answers, names or
  emails. Set `FOUNDRY_TELEMETRY=off` (or `DO_NOT_TRACK=1`) in `local/.env` to turn it
  off.
* **Slack, on your own computer**, is off until you link the install to Helix in
  **Settings › Slack**. Once linked, Founder's replies and the Slack calls they need pass
  through Helix. `FOUNDRY_TELEMETRY` doesn't control it.
* **People enrichment**: Helix has paused its lookups, so no person's data is sent. The
  open-source install has none.

## Who can read what

Hosted, a workspace has owners, admins and members; see
[Members and roles](https://docs.helix-db.com/foundry/workspace/members-and-roles.md).

* Reading what a load wrote, in Founder, the Explorer or through an agent, needs
  **Query read** on the database's Helix project, or sources shared under
  [Access](https://docs.helix-db.com/foundry/workspace/access.md). New members have neither.
* Shared sources limit a member, team or agent key to the part of each ontology those
  sources fill.
* An agent acts with its person's role and rights. Every change it makes needs a
  [confirmation](https://docs.helix-db.com/foundry/agents/helix-mcp.md#changes-with-a-confirmation): one-time, valid
  for five minutes, and bound to that operation, its target and its exact payload.
* Tool results are marked as untrusted data, so agents treat what your sources say as
  data, never as instructions.
* Owners and admins can publish a dashboard to a public link, which anyone with the
  link can read without signing in. It holds a snapshot of the tile outputs, can end
  after 7, 30 or 90 days, and can be unpublished. An owner can turn public links off for
  the workspace. The open-source install never publishes.

The open-source install has one owner and no sign-in: no team, no roles and no source
sharing. Anyone who can reach it controls it.

## The local install stays on 127.0.0.1

The open-source install is for one person on their own computer.

| Service | Listens on |
| - | - |
| Foundry's site | `127.0.0.1:3000`, and answers only `localhost:3000` |
| Object store, for the uploads Foundry signs | `127.0.0.1:8333` |
| MCP and HTTP Ask | `127.0.0.1:8081` (or `FOUNDRY_MCP_PORT`), answering only `localhost`, `127.0.0.1`, `::1`, `host.docker.internal` and the host of `HELIX_LOCAL__SITE_ORIGIN` |
| Bundled Ollama | The ontology agent's loopback only |

Never expose it through a reverse proxy, tunnel or port forward. The MCP's owner token
acts as the owner of every local workspace; keep it in your agent's environment, out of
prompts. See
[Query from your agents](https://docs.helix-db.com/foundry/agents/query-from-agents.md#on-your-own-computer).

## Next steps

> [card] [AI models](https://docs.helix-db.com/foundry/workspace/ai-models.md)
>
> Choose where a hosted workspace's AI runs.

> [card] [Share sources](https://docs.helix-db.com/foundry/workspace/access.md)
>
> Limit what each member, team or agent key reads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.