Skip to content

LM Foundry documentation

LM Foundry is an open-source (Apache-2.0), self-hosted platform for grounded enterprise agents: assistants that answer from your own knowledge, cite their sources, and say so when the answer isn’t there. You run it on your own infrastructure, with the models you choose, including local models that keep every request on your network. The paid offer is enterprise support.

These docs are for engineers who want to evaluate the platform, run it locally, or self-host it.

AreaWhat it does
Foundry UIThe web app: chat with any configured model, build prompts and agents, manage knowledge bases and tools. English and Arabic, including right-to-left layout. Sign-in through your identity provider over OpenID Connect.
AgentsAgents with strict grounding: the server answers only from the agent’s knowledge base, adds inline [n] citations and a sources list, and refuses with a contact you set when the sources have no answer. A support-agent template builds one from a website.
KnowledgeKnowledge bases from uploaded documents or websites. Website sources need a verified domain, have page and depth limits, a review step before indexing, and optional daily or weekly re-crawls. Vectors in PostgreSQL with pgvector, or Azure AI Search.
ToolsRegister REST APIs as tools, connect Model Context Protocol (MCP) servers, and use built-in tools: calculator, email, web search and fetching one web page.
PromptsChat and freeform prompt editors, a personal library and a shared gallery, scoped to your subscription.
Python SDKA client generated from the platform’s OpenAPI specification, with sync and async clients and chat streaming.
ModelsAzure OpenAI and Azure AI Foundry models, or any OpenAI-compatible endpoint, including local models served by LM Studio. Choose the model per chat or per agent.
  • Multi-tenancy controls: subscription roles, an audit log of refusals and permission changes, usage metering with per-subscription quotas, and tenant suspension and deletion. The design is recorded in the architecture decisions (ADR-0010 to ADR-0014).
  • Model catalog: deployment management for the models a team can use.

Not built yet, and not available in any form: Flow (visual multi-step workflows), Tune (fine-tuning on your infrastructure), Eval (evaluation of answers, refusals and citations; today the support agent ships with an evaluation script only), Monitor (production dashboards), Guardian (configurable safety policies), Connect (connectors such as SharePoint or Google Drive), Infra (packaged Kubernetes install), Ops, Data Governance and Data Management.

  • Quickstart: run the whole stack locally and build a grounded agent from a website.
  • Agents and grounding: how strict grounding, citations and refusals work.
  • Architecture: the services, stores and queues you run when you self-host.
  • Security: tenant isolation, crawler safeguards, and how to report a vulnerability.