返回 CodeWhale
MISTRAL_VIBE.md
根目录 / docs / MISTRAL_VIBE.md
1 # Mistral Vibe Code
2
3 Codewhale's `mistral` provider can be configured with a Vibe Code API key. An
4 actual Codewhale conversation using that key has not yet been verified. You do
5 not need a separate provider or a Vibe process to configure the key.
6
7 1. In [Mistral Code > Vibe CLI](https://chat.mistral.ai/code/extensions),
8 create a Vibe Code API key. Mistral documents this key for Free mode, paid
9 plans and pay-as-you-go. Keep the key out of prompts and shell history.
10 2. Run `codewhale auth set --provider mistral` and enter the key when prompted,
11 or choose Mistral in `/provider` and enter it there. Alternatively, provide
12 it to the process through `MISTRAL_API_KEY`. A saved Codewhale credential
13 takes precedence over the environment variable; an explicit `--api-key`
14 takes precedence for that launch.
15 3. Start `codewhale --provider mistral --model mistral-medium-latest`, or select
16 Mistral and the model in the provider and model pickers. Mistral recommends
17 `mistral-medium-latest` for reasoning and code. Model access depends on the
18 account and plan. The default API base is `https://api.mistral.ai/v1`.
19
20 Mistral says included monthly usage is shared across Studio, the API and Vibe
21 Code. When it runs out, requests may stop or use prepaid pay-as-you-go credits,
22 depending on the organization's settings. Check the [subscription
23 settings](https://admin.mistral.ai/subscription) before use. Codewhale's
24 token-price estimates are not an invoice, remaining allowance or proof of a
25 subscription charge. Mistral's [key and billing
26 guide](https://docs.mistral.ai/vibe/code/cli/api-keys-profiles) has current
27 details. Codewhale does not automatically import Vibe's keyring or sign in
28 through Vibe's browser flow.
29
29 lines MARKDOWN