Set up your API key
Give the provider an API key so pi can talk to Mistral. You need this once, before your first chat.
Prerequisites
Section titled “Prerequisites”- pi installed, with the
pi-mistral-nativepackage installed (pi install npm:pi-mistral-native) - an API key from La Plateforme
-
Pick one method:
Run the guided login:
/login mistral-nativeIt prompts for the API key (no echo), then for the API region.
Terminal window export MISTRAL_API_KEY=your-api-keyThe provider works with zero configuration — no login needed. A stored credential from a previous
/loginoutranks the variable. -
Verify the key is configured:
/mistralThe status card shows
Auth: configuredwith the source — never the key itself.