Skip to main content
Pre-release

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

Mistral Managed Agents

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-large-4")


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.0rc19

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.0rc19
File Size Uploaded Provenance Actions
mistralai_agents-1.1.0rc19.tar.gz 678.4 kB With provenance Details for mistralai_agents-1.1.0rc19.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / mistralai_agents-1.1.0rc19.tar.gz

Download URL mistralai_agents-1.1.0rc19.tar.gz
Size 678.4 kB
Tags Source
SHA-256 checksum
How to use checksums
38f8b2f8f26b10dea270a0c6c5b59439533960e2d046790b7a77a7c27316801b
BLAKE2b-256 checksum
How to use checksums
8f2ad38e77ea8b16cd260a78b85057c188d1028038f551def2fe079316d113e8
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 5, 2026.

Transparency log

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

Download URL mistralai_agents-1.1.0rc19-py3-none-any.whl
Size 702.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab8e18d438b3916f4e7a248680a10737631a782b6d4668fee02693851301c8cb
BLAKE2b-256 checksum
How to use checksums
2cfed091a157b2fa905103b9c81de228fad82e660dfe9572737e86540e3ef784
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 5, 2026.

Transparency log

Security for mistralai-agents 1.1.0rc19

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.0rc19.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 5, 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