mistralM

Docs

sideBar

Introduction

Run agents, workflows, and apps on your own infrastructure, with Mistral orchestration.

A self-hosted deployment runs your code on infrastructure you operate (virtual machines, Kubernetes, your private cloud). You start the workloads yourself, and Mistral orchestrates them: execution routing, durability, and scaling stay with the platform.

flag

Self-hosting a deployment is not the same as running the whole Studio platform on your own premises. For that, see the on-premises documentationarrowUpRight.

Local development vs self-hosted

Local development and self-hosting run the same code the same way. The difference is where the workload runs:

  • Local development: the workload runs on your machine, for iterating. It registers against the platform like any other deployment, so you can trigger and observe it in Studio. It stops when you close your laptop.
  • Self-hosted: the workload runs on infrastructure you operate, continuously. This is the production form of running your own code.

The same deployment name, the same code, and the same commands work in both. To move a deployment from your laptop to your infrastructure, start the same workload there. You do not change the code.

When to self-host

Self-hosting is a decision you make for running in production. While you build (typically with a coding agent on your machine), you run a local deployment for testing and iterating. Local and self-hosted run the same code the same way; the self-hosted page of each system covers what changes when you move to production infrastructure.

Self-host when you need control over where your code runs:

  • Data residency: keep execution inside a region or a network you control.
  • Private connectivity: reach internal APIs and databases that Mistral Cloud cannot.
  • Existing compute: use Kubernetes clusters, GPUs, or capacity you already pay for.
  • Cost control: run steady workloads on infrastructure you own.

If none of these apply, use managed deployments instead: the deployment concepts, routing, and observability are the same, and there is nothing to operate.

What you can deploy

Self-host workflows
illustrationWorkflow

Self-host workflows

Workflows.

Self-host agents
illustrationServer

Self-host agents

Agents.

Apps run on Mistral Cloud only: there is no self-hosted path for apps. Deploy an app with managed deployments for apps.

What stays with the platform

Your workloads connect to Mistral over the API, and the platform keeps:

  • Routing: work goes to the deployment that owns it.
  • Durability: state survives workload crashes and restarts.
  • Scaling: run more workloads under the same deployment to increase throughput; the platform load-balances tasks across them.
  • Observability: executions, logs, and traces are visible in Studio.

Authentication

Your workloads authenticate with a workspace API key, or with a service account, including through workload identity federation. Workload identity lets a workload in your cluster authenticate without a long-lived key.

Environment variables and secrets

Configure environment variables in the workload's environment. For credentials, use the workspace Secrets Manager and resolve references at startup, so no secret value is hardcoded in your code.

Access control

Hardened deployments restrict which users and service accounts can register workflows on a deployment. Hardening is required for on-behalf-of workflows, which act with the triggering user's permissions.

Going further

Workflows
illustrationWorkflow

Workflows

Run workflow workers on your own infrastructure, grouped into named deployments.

Agents
illustrationServer

Agents

Register an agent and run its worker on your own infrastructure.

Hardened deployments
illustrationShield

Hardened deployments

Restrict workflow registration to authorized users and service accounts with pins, as required for on-behalf-of workflows.

Secrets Manager
illustrationLock

Secrets Manager

Store credentials in Secrets Manager and reference them from your managed deployments without hardcoding.

Managed deployments
illustrationCloud

Managed deployments

Mistral runs your agents, workflows, and apps for you: nothing to host.