Agents that answer from your data. On your infrastructure.
LM Foundry is an open-source platform for grounded enterprise agents. Every answer cites its source, the agent says so when the source has no answer, and it all runs on your models and your servers.
Open source (Apache-2.0) · Self-hosted · English and Arabic
See it work
A short tour of the platform.
Most enterprise chatbots fail in the same two ways.
They make things up.
A customer asks about your refund policy and the bot invents one. One wrong answer costs more trust than a hundred right ones earn.
They take your data with them.
Hosted AI tools want your documents, your conversations and your customers in someone else's cloud.
LM Foundry fixes both: grounded answers, and a platform you run yourself.
How it works
From your content to a trusted agent in three steps.
- 1
Connect your knowledge
Upload files or add your website. LM Foundry checks you own the domain, crawls it within the limits you set, and keeps it fresh on a schedule.
- 2
Create an agent
Pick a knowledge base, switch on strict grounding, and add tools from the built-in set or any MCP server.
- 3
Ship it
Chat in Foundry UI, or call the agent from your own apps through the API and the Python SDK.
What's in the platform
Foundry Agents
Agents that answer only from their knowledge base, with inline citations and a sources list, and refuse when the answer isn't there.
Foundry Knowledge
Knowledge bases from uploaded documents and crawled websites, with scheduled refresh, in English and Arabic.
Foundry Tools
Your REST APIs, any MCP server, and built-in tools such as web search and fetching a page.
Foundry UI
The web app where your team chats with models and builds prompts, agents and knowledge bases.
Foundry Models
Azure OpenAI, or any OpenAI-compatible endpoint, including local models served by LM Studio.
Foundry Prompts
Chat and freeform prompt editors, a personal library and a shared gallery.
Foundry SDK
A Python SDK generated from the platform's OpenAPI specification.
Security built in
Sign-in through your identity provider, owner-based access to knowledge bases and agents, and web tools that refuse private network addresses.
Run it yourself
A full local stack with one script.
Start the platform on your machine, sign in, build a knowledge base from a website and talk to your first grounded agent. It works fully offline with local models.
The repositories open at the open-source launch.
git clone https://github.com/lmfoundry/foundry-backend
cd foundry-backend
bash scripts/dev/stack.sh upBuilt for enterprises
The boring parts, done properly.
Your identity provider
Sign-in over OpenID Connect through your own identity provider.
Your models
Hosted models from Azure, or local models with no data leaving your network.
Tools you control
Built-in tools plus any MCP server, with health checks.
Multi-tenant subscriptions
Every record, vector and file scoped to a subscription, with roles for admins and members.
Audit and quotas
Who did what, how many tokens each subscription used, and limits you set.
Federation per tenant
Each tenant signs in with its own identity provider.
Open by default
Open source, open architecture, open process.
Apache-2.0
Use it, change it and run it anywhere. The repositories open at the launch.
Public architecture
Our architecture diagrams and decision records are in the docs.
Public process
We build with coding agents and publish the specs and playbooks they follow.
Free to self-host
Run it yourself, or run it with us.
LM Foundry is free to self-host. If you need support, hardening, or a sovereign or air-gapped deployment, we can help.
