mistral-install-auth

Featured

Install and configure the Mistral AI SDK with authentication. Use when setting up a new Mistral integration, configuring API keys, or initializing Mistral AI in your project. Trigger with phrases like "install mistral", "setup mistral", "mistral auth", "configure mistral API key".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Mistral AI Install & Auth ## Overview Set up the official Mistral AI SDK (`@mistralai/mistralai` for TypeScript, `mistralai` for Python) and configure authentication for chat completions, embeddings, function calling, vision, and agents. ## Prerequisites - Node.js 18+ or Python 3.9+ - Package manager (npm, pnpm, yarn, or pip) - Mistral AI account at [console.mistral.ai](https://console.mistral.ai/) - API key from La Plateforme (Settings > API Keys) ## Instructions ### Step 1: Install SDK **Node.js (TypeScript/JavaScript) — ESM only** ```bash set -euo pipefail # npm npm install @mistralai/mistralai # pnpm pnpm add @mistralai/mistralai # yarn yarn add @mistralai/mistralai ``` **Python** ```bash set -euo pipefail pip install mistralai ``` ### Step 2: Configure Authentication **Environment Variables (Recommended)** ```bash # Set in shell export MISTRAL_API_KEY="your-api-key" # Or create .env file (add to .gitignore!) echo 'MISTRAL_API_KEY=your-api-key' >> .env echo '.env' >> .gitignore ``` **Using dotenv (Node.js)** ```bash set -euo pipefail npm install dotenv ``` ```typescript import 'dotenv/config'; ``` ### Step 3: Verify Connection **TypeScript** ```typescript import { Mistral } from '@mistralai/mistralai'; const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY, }); async function testConnection() { try { const models = await client.models.list(); console.log('Connection successful! Available models:'); for (const model of models.da...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

mistral-hello-world

Create a minimal working Mistral AI chat completion example. Use when starting a new Mistral integration, testing your setup, or learning basic Mistral API patterns. Trigger with phrases like "mistral hello world", "mistral example", "mistral quick start", "simple mistral code", "mistral chat".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-common-errors

Diagnose and fix Mistral AI common errors and exceptions. Use when encountering Mistral errors, debugging failed requests, or troubleshooting integration issues. Trigger with phrases like "mistral error", "fix mistral", "mistral not working", "debug mistral".

2,266 Updated today
jeremylongshore
DevOps & Infrastructure Featured

mistral-deploy-integration

Deploy Mistral AI integrations to Vercel, Docker, and Cloud Run platforms. Use when deploying Mistral AI-powered applications to production, configuring platform-specific secrets, or setting up deployment pipelines. Trigger with phrases like "deploy mistral", "mistral Vercel", "mistral production deploy", "mistral Cloud Run", "mistral Docker".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-webhooks-events

Implement Mistral AI async patterns, batch API, agents, and event-driven workflows. Use when building async workflows, using the Agents API, batch inference, or handling long-running Mistral AI operations. Trigger with phrases like "mistral events", "mistral async", "mistral agents", "mistral batch", "mistral queue", "mistral background jobs".

2,266 Updated today
jeremylongshore
AI & Automation Featured

mistral-sdk-patterns

Apply production-ready Mistral AI SDK patterns for TypeScript and Python. Use when implementing Mistral integrations, refactoring SDK usage, or establishing team coding standards for Mistral AI. Trigger with phrases like "mistral SDK patterns", "mistral best practices", "mistral code patterns", "idiomatic mistral".

2,266 Updated today
jeremylongshore