| name | mistral-multi-env-setup |
| description | Configure Mistral AI across development, staging, and production environments.
Use when setting up multi-environment deployments, configuring per-environment secrets,
or implementing environment-specific Mistral AI configurations.
Trigger with phrases like "mistral environments", "mistral staging",
"mistral dev prod", "mistral environment setup".
|
| allowed-tools | Read, Write, Edit, Bash(gcloud:*), Bash(vault:*) |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","mistral","deployment"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Mistral AI Multi-Environment Setup
Overview
Configure Mistral AI across development, staging, and production with per-environment API keys, model selection, rate limits, and secret management via GCP Secret Manager, AWS Secrets Manager, or Vault.
Prerequisites
- Separate Mistral API keys per environment (from console.mistral.ai)
- Secret management solution configured
- CI/CD pipeline with environment variables
Environment Strategy
| Environment | API Key | Default Model | Rate Limit | Cache |
|---|
| Development | Dev key (low quota) | mistral-small-latest | 10 RPM | Off |
| Staging | Staging key | Same as prod | 60 RPM | On |
| Production | Prod key (full quota) | Optimized per task | Full RPM | On |
Instructions
Step 1: Configuration Structure
export interface MistralEnvConfig {
apiKey: string;
defaultModel: string;
timeoutMs: number;
maxRetries: number;
debug: boolean;
cache: { enabled: boolean; ttlMs: number };
rateLimits: { rpm: number; tpm: number };
}
export const baseConfig: Omit<MistralEnvConfig, > = {
: ,
: ,
: ,
: ,
: { : , : },
: { : , : },
};