Mistral AI
Official TypeScript SDK for calling Mistral's language models and APIs.
Model SDKs npm Apache-2.0
How Mistral AI is used
Mistral AI is a dependency in 11 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 32 projects, and what it is used with below comes from all of them. The most used alternative in our scan is OpenAI (284 projects). Projects that use it most often also use dotenv (78.1%), Google Generative AI (65.6%), Express (59.4%).
Mistral AI popularity over time
Gid Score 42: downloads 77, use in agent projects 34, GitHub stars 0, downloads trend 44 (each 0-100). How it is calculated.
Often used with Mistral AI
| dotenv | 78.1% of Mistral AI projects · 5.0× more than average |
|---|---|
| Google Generative AI | 65.6% of Mistral AI projects · 24.1× more than average |
| Express | 59.4% of Mistral AI projects · 8.8× more than average |
| OpenAI | 59.4% of Mistral AI projects · 13.0× more than average |
| Anthropic SDK | 56.2% of Mistral AI projects · 15.1× more than average |
| Zod | 71.9% of Mistral AI projects · 2.9× more than average |
| ws | 43.8% of Mistral AI projects · 13.9× more than average |
| Model Context Protocol SDK (JavaScript) | 40.6% of Mistral AI projects · 4.3× more than average |
From all 32 projects in our scan that use Mistral AI, including the dependency samples.
By coding agent
| Claude Code | 0.3% of projects set up for it |
|---|---|
| OpenClaw | 2.6% of projects set up for it |
| GitHub Copilot | 0.2% of projects set up for it |
Share of public repos configured for each agent that list Mistral AI as a dependency.
Install
| Package | npm install @mistralai/mistralai |
|---|---|
| Main stacks | TypeScript / JavaScript (24), Next.js (7), Python (1) |
| Example projects | i-am-alice/3rd-devs, amingclawdev/toolBoxClient, lucagrippa/obsidian-ai-tagger, OpenYabby/OpenYabby, CharlesHoskinson/dancesWithClaws |
Alternatives to Mistral AI
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside Mistral AI are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
76 | 284 (5.9%) | 25.3M | 11.2K | Apache-2.0 |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
69 | 232 (4.8%) | 28.3M | 2,145 | MIT |
| Google Generative AI npm Official SDK for Google Gemini API to build AI-powered applications. |
64 | 169 (3.5%) | 14.7M | 1,691 | Apache-2.0 |
| Groq SDK npm Official TypeScript SDK for calling Groq's fast language models API. |
42 | 20 (0.4%) | 511K | 267 | Apache-2.0 |
More in Model SDKs: AI SDK OpenAI Python Library Anthropic Python SDK Google GenAI Python SDK Hugging Face Hub LiteLLM Ollama Ollama JavaScript Library