Skip to content

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.

In Avant, choose Direct → Mistral. There are no vendor fields. Or:

Terminal window
avant workspace create --name mistral --provider mistral

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.

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.

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:

Terminal window
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.

Run Verify. It calls GET /v1/models as the workspace. Give each Avant workspace its own Mistral credential.

  • 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 as store or max_completion_tokens reach Mistral and come back as a 422.
  • Model ids that aren’t in the table below are passed through to Mistral without pricing.
ModelAPIHarnesses
mistral-medium-2604 (default)Chat CompletionsOpenCode, Pi, Oh My Pi
mistral-large-2512Chat CompletionsOpenCode, Pi, Oh My Pi
mistral-small-2603Chat CompletionsOpenCode, Pi, Oh My Pi
codestral-2508Chat CompletionsOpenCode, Pi, Oh My Pi