What you need before you install
- A Mistral account. You sign in with it on first run, or create an API key from it.
- A terminal. On a Mac, the built-in Terminal app is fine.
- Your project in git. If your app came from Lovable, Bolt or Replit, push it to GitHub first and clone it to your computer. Our Lovable to GitHub guide walks through that part.
You don't need to install Python yourself. Vibe needs Python 3.12 or later, and the installer uses uv, which downloads a suitable version if you don't have one.
Install Vibe
On macOS or Linux, paste this into your terminal:
curl -LsSf https://mistral.ai/vibe/install.sh | bash
The script checks for uv, installs it if it's missing, then installs the mistral-vibe package as a tool. If you already use uv, this works on any system:
uv tool install --python 3.14 mistral-vibe
On Windows, install uv first from PowerShell, then run the line above in a new terminal:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
If a new terminal answers vibe: command not found, run uv tool update-shell and open another terminal. That fixes the path in almost every case.
Sign in on the first run
Go to your project folder and start Vibe there, not in your home folder. The folder you start in is the one it works on.
cd ~/code/my-shop
vibe
A setup screen offers two choices:
- Launch browser signs you in with your Mistral account and uses your plan. Usage and rate limits follow that plan and your pay-as-you-go settings.
- Use an API key takes a key you create in Mistral's console or in Le Chat under Code, then Vibe CLI. Keys work in Free mode, on a paid plan or with pay-as-you-go.
Vibe stores the key in your system keyring, or in ~/.vibe/.env when there's no keyring. You can also set MISTRAL_API_KEY in your shell, which takes priority. To change how you sign in later, run vibe --setup.
Trust your project folder
When a folder holds project instructions (an AGENTS.md file or a .vibe folder with settings), Vibe asks whether you trust it before loading them. You'll see three options: Trust folder, Trust full repo (offered when you start inside a subfolder of a git repository) and Don't trust, which asks again next time.
Trust your own project. Don't trust a repository you just downloaded from a stranger: its instructions and settings could tell the agent to do things you didn't ask for. Your answers are saved in ~/.vibe/trusted_folders.toml, so you can remove a folder from that file later.
Commit, then work on a branch
Mistral's own safety page says it plainly: commit before risky runs, because a clean starting point gives you an instant way back. We'd go one step further. Work on a branch, always, so main stays the version you know works.
git add -A
git commit -m "Before Vibe"
git switch -c contact-form
If the result is wrong, git switch main takes you back and you delete the branch. If it's right, you merge it. Either way you never have to untangle a half-finished change on the version that's live.
Choose how much Vibe does without asking
Vibe calls its approval levels agents. Press Shift+Tab during a session to switch, and the label on the top border of the input box shows which one is active. You can also start with one directly, for example vibe --agent ask.
| Agent | Edits files | Runs shell commands | When we'd use it |
|---|---|---|---|
ask | Asks first | Asks first | Your first sessions, or anything near payments or user data |
accept-edits (default) | On its own | Asks first | Day-to-day work on a branch you've committed |
smart-approve | Runs the calls it judges safe, asks before risky ones | Still rolling out, so it may not show up for you yet | |
auto-approve | On its own | On its own | Throwaway experiments only, never with live keys around |
When Vibe asks, press 1 or y to allow once, 2 to allow for the rest of the session, 3 to always allow, and 4, n or Escape to refuse. Be careful with 3: "always" outlives the session you're in.
A few protections stay on whatever you pick. Vibe asks before working outside your project folder, and it asks every time it reads or edits a .env or .envrc file, even if you've set that tool to always run. A handful of read-only commands such as ls, pwd and git status run without asking.
Write down your project's rules in AGENTS.md
Vibe treats an AGENTS.md file in your project as standing instructions. Put the things that are true for every request there: how to start the app, how to run the tests, folders it must not touch, and conventions like "prices are stored in cents". Keep it short; ten good lines beat two pages.
# Rules for agents
- Start the app with: npm run dev
- Run the tests with: npm test
- Never change files in supabase/migrations without asking.
- Prices are stored in cents.
If you also use other agents on the same project, our guide on writing requests your agent will follow shows how to share one set of rules between them, and how to phrase each request.
Send a small first request, then check it
Start with something you can verify in a browser in two minutes, not a rewrite. For example:
On the contact page, add a "Message sent" confirmation after the form is submitted.
Done when the confirmation shows and the existing tests still pass.
Don't change the database.
When Vibe says it's finished, look at what it touched before anything else:
git status
git diff --stat main
A small request should touch a few files. If you see changes to sign-in, payments or the database that you didn't ask for, that's your cue to read closer. Our ten-minute review guide shows what to open first.
Keep Vibe up to date
Running the install script again upgrades an existing install, or use uv directly:
uv tool upgrade mistral-vibe
If something behaves differently after an upgrade, check Mistral's docs first: they describe the current version, while blog posts and videos often show an older one.