Tools / Agent SDKs & frameworks

Mistral Agents SDK

sdk

Mistral's Python SDK for long-running agents you can run locally, self-host, or deploy to Mistral Studio.

Role Managed agent runtimeMaintained by Mistral AILanguages PythonLicense Apache-2.0 (SDK), proprietary (harness runtime and Studio)First release Nov 2026

What it is

The Mistral Agents SDK (package `mistralai-agents`) is how developers build agents for Mistral Studio's Managed Agents service. You define an agent as a model plus tools, MCP servers and connectors, test it in the terminal, then run the same code in-process, on your own servers, or fully hosted by Mistral. Hosted sessions are durable: they survive crashes, can run for hours, and can pause for human approval. It replaces Mistral's earlier Agents API (2025), which is now deprecated.

How it works

An agent is a model plus a harness: the harness runs the loop that calls the model, executes the tools it picks and records every step in a session. The same agent runs locally (`agents chat`), self-hosted (`agents serve`) or on Mistral's infrastructure (`agents deploy`), where a turn resumes from its last completed model or tool call after a failure.

Key concepts

Harness
The loop that calls the model, runs the tools it chooses and records each step.
Session
The durable record of a conversation — one entry per message, tool call and result.
Connector
A registered tool source (often an MCP server) the agent can call by name.
Environment
A sandbox where the agent can run shell commands and edit files; none by default.
Subagent
A child agent that takes part of a job, configured and approved separately.

Use it when

  • You already use Mistral models and want hosted, crash-resistant agents without running your own infrastructure.
  • You need agents that run for hours and wait for human approval before sensitive tool calls.
  • You want the same agent code to run locally, self-hosted or fully hosted by Mistral.

Look elsewhere when

  • You need a model-agnostic framework or full source access — the SDK depends on a proprietary Mistral harness.
  • You need a stable API today — it is in public preview and may change.

Milestones

  1. Agents SDK 1.1.0 and Managed Agents launched in public preview alongside Mistral Large 4. (mistral.ai)
  2. Predecessor Agents API launched with built-in connectors, MCP tool support and agent handoffs. (mistral.ai)

Start learning