Mistral
Mistral doesn’t exchange tokens. Avant sends its signed assertion, with audience api-gateway, as the bearer token on each request. Mistral checks it against a trusted issuer and a service account credential with the same subject. Read How provider setup works first.
Unlike Anthropic and OpenAI, there are no ids to paste back into Avant. Mistral reads the subject from a proof token that Avant signs.
You need Organization admin to register the issuer and Workspace admin to create the service account.
1. Create the workspace
Section titled “1. Create the workspace”In Avant, choose Direct → Mistral. There are no vendor fields. Or:
avant workspace create --name mistral --provider mistral2. Trust the issuer
Section titled “2. Trust the issuer”In the Mistral Admin Console, open Organization → Trusted issuers → Register new trusted issuer. Set Issuer URL to https://identity.avant.codes and leave JWKS URI empty. Mistral accepts each issuer once per organization, so reuse it for every Avant workspace.
3. Create a service account
Section titled “3. Create a service account”Open Workspace → Service accounts, create one, and give it a role that can call chat completions. A service account without a role can’t authenticate.
4. Add the workload identity credential
Section titled “4. Add the workload identity credential”On the service account, choose Add new authentication → Workload identity federation, select the issuer and click Create registration. Copy the mistral-auth:… audience it shows.
Sign a proof token for that audience. On the workspace’s Connect page, paste the audience and click Sign proof token, or run:
avant workspace mistral-proof-token mistral --audience mistral-auth:...Paste the token into Proof token in Mistral and create the credential. The proof token is valid for five minutes and names only this workspace’s subject.
5. Verify
Section titled “5. Verify”Run Verify. It calls GET /v1/models as the workspace. Give each Avant workspace its own Mistral credential.
Limits
Section titled “Limits”- Only Chat Completions (
/v1/chat/completions). Mistral has no Responses API, so Codex can’t use it. Claude Code needs Anthropic models. - Mistral rejects fields it doesn’t know. The proxy drops
stream_options. Other OpenAI-only fields such asstoreormax_completion_tokensreach Mistral and come back as a 422. - Model ids that aren’t in the table below are passed through to Mistral without pricing.
| Model | API | Harnesses |
|---|---|---|
mistral-medium-2604 (default) | Chat Completions | OpenCode, Pi, Oh My Pi |
mistral-large-2512 | Chat Completions | OpenCode, Pi, Oh My Pi |
mistral-small-2603 | Chat Completions | OpenCode, Pi, Oh My Pi |
codestral-2508 | Chat Completions | OpenCode, Pi, Oh My Pi |