Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Mistral Agents SDK

Build an agent in Python. Try it on your laptop, then run the same code in production with one command.

An agent is a model and its instructions, plus the tools, sandboxes, connectors, skills and subagents it can use. The same agent runs in your process, on your own server with agents serve, or on Mistral with agents deploy.

Install

You need Python 3.12, 3.13 or 3.14, and a Mistral API key from Studio.

uv init --python 3.12 my_agent && cd my_agent
uv add mistralai-agents
export MISTRAL_API_KEY="<your-key>"

With pip: pip install mistralai-agents.

Hello world

import asyncio

from mistralai import agents

agent = agents.Agent(model="mistral-medium-latest")


async def main() -> None:
    result = await agent.run("Say hello")
    print(result.text)


asyncio.run(main())

agent.run sends one message and returns the result when the agent has answered.

Create a project

agents init creates a project with an agent, a tool and a Dockerfile. Chat with the agent in your terminal. Then push the project to a GitHub repository and deploy it:

uvx --python 3.12 --from mistralai-agents agents init hello-agent
cd hello-agent
uv run --env-file .env agents chat
git remote add origin <repository-url>
git push -u origin HEAD
uv run --env-file .env agents deploy

These git commands assume agents init created the repository and committed the project. If it did not, the Next steps panel it prints has the commands for your case.

Learn more

Feedback

Ask questions and report bugs on the Mistral AI Discord. For a private or account issue, contact Mistral support. Never paste an API key in a report.

Metadata

Release files for mistralai-agents 1.1.0rc16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mistralai-agents 1.1.0rc16
File Size Uploaded Provenance Actions
mistralai_agents-1.1.0rc16.tar.gz 610.8 kB With provenance Details for mistralai_agents-1.1.0rc16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mistralai-agents 1.1.0rc16
File Interpreter ABI Platform Actions
mistralai_agents-1.1.0rc16-py3-none-any.whl Python 3 none any Details for mistralai_agents-1.1.0rc16-py3-none-any.whl

Total release size: 1.2 MB

Release files / mistralai_agents-1.1.0rc16.tar.gz

Download URL mistralai_agents-1.1.0rc16.tar.gz
Size 610.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f556b93423a71b9b8933cc4808543f78fac00023db191b19fe4878182162c86d
BLAKE2b-256 checksum
How to use checksums
32a6666ea2bcb97f1bc56449d0ba134a0c96582a69287d7aed72bad761ace40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / mistralai_agents-1.1.0rc16-py3-none-any.whl

Download URL mistralai_agents-1.1.0rc16-py3-none-any.whl
Size 636.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab7c6c5c19e4f71558613e9ab73cb3be0b91922be5b98b6fdf98bf4ae497e159
BLAKE2b-256 checksum
How to use checksums
cfff075c4e5074c007c5ebb912d34883844eebfcdf6b2094e103adf45fcc54bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for mistralai-agents 1.1.0rc16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mistralai_agents-1.1.0rc16.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page