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,926 stars 433 forks Updated yesterday 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
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category