
This blog is written by AI for SEO
Bring Your Own Model and Foundry
Bring your own model, for Helix Foundry, means you choose which LLM drafts your ontology (Claude, OpenAI, Azure OpenAI, Amazon Bedrock, Cohere, Ollama, LM Studio or any OpenAI-compatible server) instead of accepting one the vendor picked. On your own computer or cloud you pick it in Settings > AI models.
That answers the "which model" question. It does not answer the governance question, which is where your prompts and data travel once a model is chosen. A provider key alone does not keep data inside your boundary. This Q&A covers both: which providers work, where prompts go, and what changes between running Foundry yourself and running it on Helix Cloud. Helix Foundry is an open-source AI knowledge graph builder that turns your databases, SaaS tools and documents into an ontology that people and agents can query.
What bring your own model means for an ontology (and how it differs from BYOK and BYOC)
Bring your own model (BYOM) means the ontology builder calls a model you selected, such as the one your company already approved, rather than a single fixed model. In Foundry the model's job is concrete: it reads your tables and documents and drafts types, links and rules. Which model does that is your decision.
BYOM is not the same as two terms it gets confused with.
BYOK usually means you supply your own API key. The application can still be vendor-hosted, so the key alone does not keep data in your cloud. The acronym also has a second meaning, an encryption key for stored data, so confirm which one a vendor is using.
BYOC means bring your own cloud: the software runs inside your account and boundary. That is the property that decides where data lives.
The practical rule: BYOM answers who drafts, BYOK answers whose credentials, BYOC answers where it runs. Security reviews need all three answered separately, because a model endpoint is still an endpoint. Prompts and retrieved context go wherever that endpoint is.
Which models Helix Foundry works with on your own computer or cloud
On your own computer or cloud, Foundry works with Claude, OpenAI, Azure OpenAI, Amazon Bedrock, Cohere, Ollama, LM Studio or any OpenAI-compatible server. That covers three buyer positions: a hosted frontier model, a model your cloud vendor already governs, and a model on hardware you own.
Running it is a Docker job. You need Docker with Compose v2, ports 3000 and 8333 free, and room for a few GB of images on first start. Foundry's local install is for one person on their own computer; the team-scale routes are BYOC and Helix Cloud, covered below.
Foundry does not hard-wire you to one vendor, so the model decision can follow your data rules instead of the other way round. If legal approved Azure OpenAI last year, use that. If nothing may leave the building, use a local model.
Azure OpenAI and Amazon Bedrock: using the model your company already approved
If your company has already cleared Azure OpenAI or Amazon Bedrock, point Foundry at it. That is the shortest path through procurement, because the model, its contract and its data terms are ones your security team has already reviewed.
The local README documents the setup. For Azure OpenAI, set the provider to azure_openai and configure FOUNDRY_AI_ENDPOINT, FOUNDRY_AI_API_KEY and the model field with your deployment name. For Bedrock, set the provider to bedrock and configure FOUNDRY_AI_REGION, FOUNDRY_AI_API_KEY and a model or inference-profile ID that supports tool use. Tool use matters here because the ontology agent works by calling tools, not by returning one block of text.
You can also set models per task: FOUNDRY_AI_DRAFT_MODEL, FOUNDRY_AI_ASK_MODEL, FOUNDRY_AI_EXTRACT_MODEL and FOUNDRY_AI_VERIFY_MODEL, with FOUNDRY_AI_MODEL as the fallback. A sensible split is a stronger model for drafting and a cheaper one for extraction, though that is your call, not a Foundry default.
Be precise about what this buys you. A hyperscaler endpoint is a third-party cloud service. Your prompts still travel to it. What you gain is that the traffic goes to a provider and terms you already govern.
Ollama, LM Studio or any OpenAI-compatible server: keeping the model on your own hardware
If prompts must not leave your hardware, run the model there. Foundry works with Ollama, LM Studio or any OpenAI-compatible server, so the model can sit on your laptop, a GPU box or your own cluster.
To run Ollama beside Foundry, start it with docker compose --profile ollama up -d. The bundled Ollama listens only on the ontology agent's loopback, so it is not exposed to your network. Foundry can also connect to an Ollama running elsewhere, which is the route when a shared GPU host already exists. For the full walkthrough, including LM Studio, see the local LLM ontology guide.
The trade-off is draft quality. Smaller local models generally draft less well than frontier models, so plan review into the process rather than discovering it late. Foundry's own principle helps: code measures, the model decides, code verifies, and a person approves each rule. A weaker model produces more drafts to correct, not silent errors in your graph.
How Foundry picks a provider, and how to change it in Settings > AI models
Foundry picks a provider from your environment, and you can override it at any time in Settings > AI models. At startup it picks up ANTHROPIC_API_KEY or OPENAI_API_KEY from the shell running docker compose up. If neither is present, it falls back to a local model.
That order has a governance consequence. A stray key in a developer's shell is enough to send prompts to a hosted provider. If you need a hard guarantee, do not rely on the default: open Settings > AI models, confirm the provider, and test it. For a locked-down install, start the stack from a shell with no provider keys exported and select your approved endpoint explicitly.
Settings > AI models shows the active provider and lets you change it without rebuilding anything. Treat that screen as the place a reviewer verifies the answer to "which model drafts our ontology", rather than trusting what someone remembers configuring.
Helix Cloud: hosted model vs your own key
That is the route when you want your own provider relationship but do not want to run Foundry yourself.
This is the clearest case for separating BYOM from BYOK. Supplying your own key gives you control over which account and terms the model calls fall under. It does not change where Foundry itself runs, because the application is hosted on Helix Cloud. If your requirement is that the whole system sits inside your boundary, the key is not enough. You want to run Foundry yourself, which the next section covers.
Choose Helix Cloud when speed and no infrastructure matter most. Choose your own computer or cloud when the boundary matters most.
Where prompts and data go: running locally, BYOC, encryption at rest, RBAC and directory sync
Prompts go to whichever model endpoint you configured, and your data stays wherever Foundry runs. Those are two separate questions, and Foundry lets you answer each one.
Running locally. On your own computer, Foundry and your data stay with you. Add a local model and prompts stay there too. Add Azure OpenAI or Bedrock and prompts go to that endpoint.
BYOC. Foundry can deploy into your own cloud, which is what puts the application and ontology inside your account. The self-hosted ontology platform guide walks through running Foundry in your cloud.
Encryption at rest. Foundry is built on object storage, so it scales, with encryption at rest. See ontology encryption at rest on your own object storage.
RBAC and directory sync. Both are on by default. Access to the sources and to the ontology itself is authenticated. Every fact and relationship in the ontology is grounded in a source, so a user who cannot see a source cannot see anything in the ontology grounded by it. The details are in directory sync for an AI ontology.
Here is how the pieces line up:
| Setup | Where Foundry runs | Where prompts go |
|---|---|---|
| Own computer or cloud, Ollama or LM Studio | Your hardware | Your hardware |
| Own computer or cloud, Azure OpenAI or Bedrock | Your hardware or cloud | The provider endpoint you configured |
| Own computer or cloud, Claude or OpenAI key | Your hardware or cloud | That provider |
| Helix Cloud | Helix Cloud | Helix's Claude |
Only the first row keeps both the application and the model fully on your side. Pick the row that matches your requirement, not the one that is easiest to demo.
Pick the model your policy already allows, then run Foundry where your data may live
Bring your own model is a choice of drafter, not a guarantee of a boundary. Decide the boundary first (own hardware, your cloud, or Helix Cloud), then choose the model that fits inside it. To test it, clone the Helix Foundry repo, run it with Docker Compose, and open Settings > AI models to point it at the provider your security team has approved.