In short.
This is Mistral's official quickstart page for building a small Python agent with the mistralai-agents SDK, written for developers comfortable with Python and the uv package manager, and its main catch is that it needs a Mistral API key while the page says nothing about pricing or licence terms. The page shows how to scaffold a project with agents init, define tools with the @agents.tool decorator, run the agent in your own process with agent.run, chat with it from the terminal with agents chat, add a second tool, and install the SDK manually (version 1.1.0 is pinned in the manual-install examples). The agent runs locally and calls Mistral only for the model; deployment through Mistral Studio or self-hosting is described as a later step on linked pages outside the resource scope. The commands and outputs are documentation examples; their behaviour is unverified.
Researched and written by an AI model and checked by a second AI model. How it works
The resource scope is the complete text of one documentation page, [https://docs.mistral.ai/studio/agents/getting-started/quickstart.md], as captured on 13 November 2026. Pages it links to (deployment, run modes, sessions, tools, environment, sandbox, examples, connectors) are outside the resource scope. The page contains no licence or pricing notice, so rights and costs are unknown. The interactive QuickstartReplay component is not represented in the page text. The commands and outputs are documentation examples; SDK behaviour, Mistral API behaviour and the shown outputs are unverified.
The overview
What this resource is
This is a single documentation page titled Quickstart, hosted at [https://docs.mistral.ai/studio/agents/getting-started/quickstart.md]. It belongs to the Mistral Studio agents documentation and teaches the first steps of the mistralai-agents Python package, which you import in code as from mistralai import agents. The page is a tutorial, not a software package in itself, so it is classed as a learning resource.
The page describes itself as the way to create an agent project, run its agent in your own process, chat with it, and give it a second tool. The author is the vendor (Mistral, by the documentation domain); no individual author or page date appears in the captured text.
Overall assessment
On the evidence, this is a clear, concrete and well-ordered first tutorial. It gives exact commands, a complete main.py, expected terminal output, a manual-install path, a table of one common error, and links to next steps. For a developer who already has Python and uv, it documents a path from an empty folder to a terminal chat with a tool-calling agent.
Its limits are scope and depth. It covers only the first run on your own machine. The example tools return fixed text, so it does not show a real integration. Pricing, licence terms, error handling, security of tool execution and production behaviour are not covered on this page. The commands and outputs are documentation examples; their behaviour is unverified.
Who it is for
The page suits Python developers who want to try building an LLM agent on Mistral models before deciding on deployment. It assumes you can use a terminal, install uv, create an API key in a Mistral workspace, and read short Python async code. A beginner to agents can follow the idea (a model that decides when to call your Python functions), but a beginner to Python tooling may need extra help with uv, environment files and async/await.
It is less useful for people who want a no-code agent builder, who use a language other than Python, or who want to compare agent frameworks; the page does not cover those needs.
What the guide shows you how to do
The page covers five tasks. First, create a project with agents init, which writes pyproject.toml, .python-version, main.py, .gitignore, README.md and a Dockerfile, and locks dependencies in uv.lock. Second, run an agent from Python with await agent.run(...) and read result.text. Third, open an interactive terminal chat with agents chat, where the answer streams and each tool call is displayed (for example a line showing get_weather with its arguments). Fourth, add a tool by writing a sync or async Python function with the @agents.tool decorator and listing it in the agent's tools. Fifth, install the SDK manually into an existing project and check the version with uv run agents --version.
The page also says the chat remembers the conversation, that agents chat -m sends one message and exits, and that the model fills tool parameters (such as an integer days) from the user's question. It points to other pages for sessions, approvals, environments (shell and file access), connectors and MCP, deployment and tracing; linked pages are outside the resource scope.
Using it
Requirements
Stated requirements: uv (step 1 uses uvx), permission to create a Mistral API key in your workspace, and for manual installation Python 3.12, 3.13 or 3.14 in the standard build (the free-threaded 3.14t build is not supported). The package name is mistralai-agents. The examples use model="mistral-large-4".
The agents init command opens the API keys page at [https://console.mistral.ai/api-keys] and writes the key to .env as MISTRAL_API_KEY. If you create a Mistral sandbox (an optional later feature for running shell commands and editing files), the page says you also need the cloud_user workspace role, shown as Mistral Cloud User in the console. Operating system support, hardware needs and network requirements beyond reaching Mistral are not stated.
How it works
You define an agents.Agent with a model name, a name, instructions and a list of tools. A tool is an ordinary Python function with the @agents.tool decorator. The page says the model reads the tool's name, its docstring and its typed parameters to decide when to call it, so the docstring and type hints matter.
When you call agent.run with a message, it starts a session, sends the message, lets the model call tools, and returns the turn's result once the agent has answered. The agent runs in your Python process and calls Mistral for the model. The page does not specify the complete transmitted payload or data-retention behaviour. The agents command line finds the variable named agent in main.py. The page also notes that agent.run returns where the turn stopped, which can be an answer or an approval the agent is waiting for; how approvals work is on a separate page.
Setup steps
The documented path is: run uvx --python 3.12 --from mistralai-agents agents init hello-agent, then cd hello-agent. The command asks for an API key (it opens the Mistral Studio keys page or accepts a pasted key), writes it to .env, and offers to create a git repository and commit. The page says .gitignore keeps .env out of git. With --yes, the questions are skipped: uv is installed if missing, a commit is made at once (unless the folder is inside another git repository), and .env is left empty so you must add the key before running.
The main.py created by agents init defines only the get_weather tool and the agent. Before running the Python example, replace main.py with the page's step-2 version, which adds import asyncio, an async main() function that awaits agent.run("What's the weather in Paris?") and prints result.text, and the entry point if __name__ == "__main__": asyncio.run(main()). Then run it with uv run --env-file .env python main.py. To chat in the terminal, run uv run --env-file .env agents chat, or export MISTRAL_API_KEY in your shell instead of passing --env-file.
The manual route for an existing setup is: uv init --python 3.12 my_agent && cd my_agent, followed by uv add "mistralai-agents==1.1.0" and export MISTRAL_API_KEY="<your-key>", with your own key in place of the placeholder. The sandbox extras bashkit, sessions-client and koyeb are installed by agents init projects; with uv add you add the one you need, for example mistralai-agents[koyeb]==1.1.0. Because --yes installs uv and commits automatically, read what it does before using it in a shared or existing environment.
Worked example from the page
The page builds a hello-agent with one tool, get_weather(city: str), which returns {"weather": f"sunny in {city}"}. The agent has the instruction to be friendly and tell the weather in a city. A main() function awaits agent.run("What's the weather in Paris?") and prints result.text, and the page shows an answer that says it is sunny in Paris.
In step 4 it adds get_forecast(city: str, days: int), returning one line per day such as day 1: rain in Paris, adds it to tools, and asks "Will it rain in Paris in the next 3 days?" with agents chat -m. The documented output shows the tool called with city Paris and days 3, then an answer listing rain on all three days. Both tools return invented fixed text, so the example demonstrates tool calling, not real weather data. The commands and outputs are documentation examples; their behaviour, actual response wording and repeatability are unverified.
Assessment & evidence
Limitations and risks
This page is a local, first-run tutorial. It does not explain production deployment (it only links to a deploy page), error handling, retries, evaluation of agent quality, rate limits, data retention at Mistral, or privacy terms. The page demonstrates Mistral API-key configuration through .env and exclusion through .gitignore, but its tools do not demonstrate live weather-service integration, tool-specific credentials or failure handling.
Points a careful reader should notice. The page says the agent runs in your own Python process, and its tools are Python functions defined in that project, but the page does not specify what execution permissions tool code has, any privilege boundaries, or whether tools are isolated. It notes that agents that run shell commands and edit files need an environment (sandbox) configured separately. The API key is stored in a plaintext .env file; the page says .gitignore excludes it from git, but you should still protect it. agents init --yes commits automatically and installs uv if missing. The one troubleshooting entry shows an error naming MISTRAL_CLIENT_API_KEY while the fix is to set MISTRAL_API_KEY, which can confuse readers; the page also warns that a key exported in the shell takes precedence over .env. The manual-install examples pin mistralai-agents 1.1.0, and later versions may behave differently. A QuickstartReplay component appears in the page source, but its content is not part of the captured text. The commands and outputs are documentation examples; their behaviour is unverified.
Why this assessment
The assessment rests on what the page itself shows: complete commands, a full code listing, matching expected outputs for each step, explicit version and Python requirements, and a named troubleshooting entry. Those details make the guide specific and usable rather than a marketing overview. Costs, rights and production behaviour remain unknown where the page provides no details. The descriptions of agent.run, tools and agents chat are documentation claims; their behaviour is unverified.
Alternatives and related options
The page itself describes ways to run the same main.py beyond the local quickstart: deploying to Mistral with agents deploy (Studio, Mistral-managed), self-hosting with agents serve (for example when tools must run inside your own network), and a comparison of run modes on a separate page. It also links to a Telegram weather bot example, and to pages on tools, environments, connectors and MCP, sessions and what an agent is.
The page does not compare the Mistral Agents SDK with other agent frameworks or with calling a model API directly, so its relative strengths and weaknesses are unknown from this page.
Evidence base
The evidence is the Mistral documentation page at [https://docs.mistral.ai/studio/agents/getting-started/quickstart.md], captured on 13 November 2026, covering the full text of that page. Linked pages (run modes, deploy, sessions, tools, environment, mistral-sandbox, examples) are outside the resource scope. The commands and example outputs are documentation examples; SDK behaviour and the shown outputs are unverified.
Access & freshness
Costs
The page states no prices. It requires a Mistral API key and says the agent calls Mistral for the model, but requiring a key does not establish that those calls are charged. Whether calls incur charges, what the pricing is, and any quotas or free allowances are unknown from this page. Costs of deploying with Studio (self-hosted or Mistral-managed), of Mistral sandboxes, of the Koyeb extra, and of tracing are also not stated. Check Mistral's own pricing before any trial, including a short one.
The tools themselves (uv, the Python runtime) are referenced without pricing; their licences and costs are not discussed on the page.
Rights and licence
The captured page contains no licence statement or reuse terms for the documentation text, the code snippets, or the mistralai-agents package. Rights to copy, adapt or redistribute them are therefore unknown from this evidence. The code snippets are presented for readers to use in their own projects, but that is an observation about the page's purpose, not a granted licence. Check the licence of the mistralai-agents package and Mistral's documentation terms before redistributing anything.
Freshness
The page has no visible publication or update date. The SDK version shown is mistralai-agents 1.1.0 in the manual-install and version-check examples, and the agent examples use the model name mistral-large-4. The page was captured on 13 November 2026, so it reflected the live documentation at that time. Whether newer SDK releases have changed commands, extras, supported Python versions or model names is unknown. Pinned versions in the examples may drift from the current release.
Suggested next steps
If you want to try it: confirm you can create a Mistral API key and check Mistral's pricing to learn whether model calls incur charges, install uv, and follow steps 1 to 4 in a throwaway folder. Run without --yes the first time so you can see what init asks. Keep the key in .env and out of version control. Check which version of mistralai-agents you get with uv run agents --version and compare it to the 1.1.0 shown on the page.
Before building anything real, read the linked pages on tools, environments and deployment, review the package licence and Mistral's data and pricing terms, and replace the fixed-text example tools with real functions you have reviewed for safety. If you need a different language or a no-code approach, this page will not help.
