Connect your models, data and tools
Once the platform runs, agents need models to think with, and access to your company's data and systems. This page lists the ways to connect them, and what each one requires from your network.
| To connect | Use | Network direction |
|---|---|---|
| AI models (cloud) | AI engines | Breign API → provider |
| Self-hosted models (vLLM, Ollama…) | AI engines with a custom endpoint | Breign API → your endpoint |
| Documents | Knowledge bases: file upload | Browser → storage; Document API → storage |
| Public websites | Knowledge bases: website source | Scrapping API → websites |
| Internal REST APIs | OpenAPI tools | Breign API → your API |
| Business applications (SharePoint, Jira, GitLab, CRM, databases…) | MCP servers | Breign API → MCP server |
| Code, files and systems inside your network | Execution nodes | Node → Breign API (outbound only) |
| Personal data protection | Guardians | Breign API → Guards API |
AI models​
Models are configured in each organization, as AI engines, not in the deployment configuration: an organization administrator adds an engine with its type, its API key and, if needed, its endpoint. See AI engines. As the platform administrator, you can also offer engines with a platform key to the organizations you choose: see Breign models (platform engines).
Supported engine types: OpenAI, Mistral, Anthropic, Google Gemini, Ollama, vLLM and other (any OpenAI-compatible API). Through an OpenAI-compatible endpoint you can use Azure OpenAI, a LiteLLM or similar gateway, or models hosted in your own infrastructure.
To keep data inside your infrastructure, host the models yourself (vLLM, Ollama…) and give the engine your internal endpoint: Breign API must be able to reach it.
An organization needs:
- a chat model for its agents, ideally with tool calling (agents rely on tools for knowledge, files and actions);
- an embedding model for its knowledge bases (for example
text-embedding-3-large,mistral-embed, or a self-hosted model); - optionally a vision model or Mistral OCR to read scanned documents, a speech-to-text model for voice.
Server-wide keys (SERVICES__, SERVICES__) are only used for voice in avatar apps. See Environment variables.
Documents and websites​
Knowledge bases give agents your documents. See Knowledge bases.
Files (PDF, Word, Excel, PowerPoint, text, images…):
- The browser uploads the file directly to the object storage.
- Breign API puts a parsing job in the database queue; Breign Document API converts the file to Markdown (with OCR if requested) and stores the result.
- Breign API splits the text into chunks, computes their embeddings with the organization's embedding model and stores them in the vector database (Weaviate or Qdrant).
Each step only uses your own components, except the embedding model and the OCR provider, which are those configured in the organization.
Websites: the Scrapping API crawls the site from the start URL, stores the pages, and Breign API indexes them like files. The crawler needs outbound access to the sites, and only reads pages served as HTML (no JavaScript rendering). To index an intranet site, the Scrapping API must be able to reach it.
For other sources (SharePoint, Google Drive, Confluence…), give agents live access through an MCP server rather than copying the content.
Internal APIs: OpenAPI tools​
An OpenAPI tool turns an API described by an OpenAPI definition into tools an agent can call, with bearer, basic, API key or OAuth 2 authentication. See Tools from an OpenAPI definition.
By default, OpenAPI tools refuse private network addresses, so that an organization can't make the server call your internal services. To let agents call your internal APIs, set SERVICES__OPENAPI_TOOLS__ALLOW_PRIVATE_NETWORKS=true on Breign API — preferably on a deployment dedicated to your company, where you trust every organization administrator.
Applications: MCP servers​
The Model Context Protocol (MCP) is the standard way to give agents access to applications: a ticketing tool, a document management system, a database, an internal service. Breign connects to remote MCP servers (Streamable HTTP), with no authentication, a bearer token, a custom header or OAuth 2, shared by the organization or per user. See Tools and MCP.
- Breign API calls the MCP server: the server must be reachable from Breign API, on your network or on the internet.
- For OAuth 2, the provider redirects the user to
https://<api>/oauth/callback: declare this redirect URI with the provider. - The tool library offers ready-made presets for common services (GitLab, GitHub, Notion, Linear, Sentry…).
- To expose an internal system that has no MCP server, write a small one (MCP SDKs exist for most languages) or describe its API with OpenAPI.
Unlike OpenAPI tools, MCP addresses are not restricted to public networks: an organization administrator can point a tool at any address Breign API can reach. If several unrelated organizations share your platform, restrict Breign API's outbound network to the addresses you allow.
Breign is also an MCP server: Claude, Cursor, Breign Mate and other MCP clients can call Breign agents at https://<api>/organizations/<org>/mcp. See Use Breign from Claude Code.
Inside your network: execution nodes​
When agents need to work on resources that must not be exposed (source code, internal Git servers, file shares, test environments, command-line tools), run them on an execution node inside your network. The node only opens outbound connections to Breign API: nothing needs to be opened inbound, and the data the agent works on stays on the node — only what the agent sends to its model and what it answers go through Breign.
- On a workstation: Breign Mate or the Breign CLI. See Execution nodes.
- As shared capacity: a group of node containers on Kubernetes or servers. See Node groups and Run a cluster of nodes.
Guardians​
Guardians check the messages exchanged with agents: anonymization of personal data before it reaches the model, toxicity, prompt injection, banned topics. Guardians based on the Guards API need that service deployed on your network; its address is entered on the guardian engine in the app. See Moderation and guardians.
Before enabling the toxicity, prompt injection or banned topics guardians, note that they translate non-English text with Google Translate: that text leaves your infrastructure. Anonymization runs locally.
Sandboxes​
Agents can run commands in a bash sandbox and, optionally, code. On the server these sandboxes have no network access and code mode is off, unless you enable them (SERVICES__, SERVICES__). See Give your agent a sandbox.