Mistral's terminal coding agent is having a moment. On December 5 it sits on Hacker News' front page — "the coding agent for chonky codebases" — and on GitHub's weekly trending list, two days after the CLI's latest release, v3.2.1. The repository has 5,575 stars, 106 releases, and a pace that says this is not a side project: Vibe 2.0 shipped in January with the Devstral 2 model family, custom subagents, and slash-command skills, and the CLI has kept shipping since.

What makes it worth your time is not the version number. Vibe is open source under Apache 2.0, installs with one pip command, and — unlike most coding agents — does not lock you to its vendor's model. Point it at Mistral's cloud, or point it at any server speaking the OpenAI API, including a model running on your own machine. This tutorial does both: install, first session, scripted mode, and a full local-model run that we verified end to end, for $0.

Diagram of a terminal coding agent connected to a local model server and the code files it edits
AI-generated illustration

What you’ll need#

  • Python 3.12 or later. Vibe is a Python package; the installer routes around versions its dependencies don’t support yet, so pin to 3.14 with uv if you use that path.
  • A terminal you like. Vibe is a full-screen terminal interface; any modern emulator works.
  • A way to pay for tokens, or a local model. The cloud path needs a Mistral account (sign-in) or a Mistral API key. Le Chat Pro is $14.99 a month and Team is $24.99, both with included Vibe usage and pay-as-you-go beyond it; Devstral 2 costs $0.40 per million input tokens and $2.00 per million output tokens through the API, with free usage on the Experiment plan in Mistral Studio. The local path needs nothing but a model server — this tutorial runs one on CPU.
  • A project directory. Vibe works inside a folder you trust; it asks before loading project-level config, skills, or agent files from a new directory.

Costs in this article were checked against Mistral’s announcement and pricing pages on December 5, 2026; plans change, so confirm before you buy.

1. Install Vibe#

The package is mistral-vibe on PyPI. Pin the version so your setup matches this tutorial:

pip install mistral-vibe==3.2.1
vibe --version

Expected output, verified in a clean virtual environment on December 5, 2026:

vibe 3.2.1

Two other install routes exist. With uv, Mistral’s recommended form is:

uv tool install --python 3.14 mistral-vibe

And the one-line installer for macOS and Linux:

curl -LsSf https://mistral.ai/vibe/install.sh | bash

The pip route is the one to use if you would rather not pipe a script from the internet into your shell — it installs the same package, and it is the route this tutorial verifies. If a new terminal says vibe is not found after the uv install, run uv tool update-shell and open a new terminal. If an existing install hangs while upgrading, it is probably running on a Python version some dependency lacks wheels for; reinstall on 3.14 with uv tool install --force --python 3.14 mistral-vibe.

2. Sign in — or don’t, if you run local#

Run vibe in your project. On first launch it offers two ways in: launch a browser to sign in with your Mistral account, or paste an API key. The key is stored in ~/.vibe/.env. You can also run the setup on its own and exit:

vibe --setup

On a headless server there is no browser, so the key is the route there — the browser sign-in opens the sign-in page on the machine Vibe runs on and gives up if there is none. A key works in Free mode, with a paid plan, or with pay-as-you-go enabled; Vibe draws on the plan’s allowance before any pay-as-you-go charges, and pay-as-you-go is off by default.

Settings live in ~/.vibe/config.toml, or per project in .vibe/config.toml. Two settings are worth setting deliberately. Telemetry and crash reporting go off with one line:

enable_telemetry = false

And if you want every tool call to require your say-so, set the default approval policy to ask instead of the default accept-edits, which auto-approves file edits and asks before other actions. Vibe stores trusted folders in ~/.vibe/trusted_folders.toml; in scripts, vibe --trust grants trust for one invocation only.

3. Your first interactive session#

Start in your project root:

cd /path/to/your/project
vibe

You get a chat interface with your codebase as context. Three keys carry most sessions:

  • @ attaches a file. Type @ and a path — autocompletion works as you type — to put a file in front of the model. Images work the same way when the active model supports them.
  • / runs a built-in command. Type / for the picker: /help, /model to switch models, /config, or any command an installed skill exposes.
  • ! runs a shell command yourself, bypassing the agent. The agent sees the command and its output as context for your next message.

Before Vibe edits a file or runs a command, it shows a preview and asks — unless the active approval policy auto-approves. Press Shift+Tab to cycle policies: ask, accept-edits, smart-approve (safe calls run, risky ones prompt), and auto-approve. The footer shows the active model, its thinking level, the working directory, and how much of the context window is used. Give the session a goal with /goal and Vibe keeps working turn after turn until it marks the goal complete or blocked, or hits its token budget.

Try something small and checkable first. Ask it to add a pure function with a test, then run the test yourself. The habit that matters with any coding agent is the same: a task whose result you can verify in seconds, before you hand it the refactor you can’t.

4. Programmatic mode: scripts and CI#

Interactive mode is for exploration. For scripting, Vibe has a headless mode that runs one task and exits:

vibe -p "Refactor the main function in cli/main.py to be more modular."

Programmatic mode never opens the chat interface and disables interactive tools such as the question prompt. Because nobody can answer an approval prompt, it denies any tool call that needs one — so pass --auto-approve (alias --yolo) when the run should approve all tool calls without prompting. The options that matter in practice:

FlagWhat it does
--prompt / -pRun one task and exit; read the prompt from a file with --prompt-file, or pipe it on stdin with -p and no text
--model ALIASUse that model for this run without changing your default
--thinking LEVELThinking level (off, low, medium, high, xhigh, max) for this run only
--max-turns NCap assistant turns — the single most useful bound on run length
--max-tokens NCap total prompt + completion tokens, subagents included
--max-price DOLLARSCap cost; indicative only, since it relies on the prices in your config
--time-limit SECONDSStop the run after a deadline; you can resume the session later
--enabled-tools TOOLRestrict the agent to named tools (globs and re: regex supported); repeat the flag
--output text|json|streamingOutput format; json prints session messages as an array when the run ends
--output-dir DIRWrite export.json (version, config, token usage, cost, stop reason, outcome) plus a session copy, however the run ends

The exit code tells you how the run ended: 0 means the agent finished, 1 means the run couldn’t start (bad flag or config), 2 means the model API or the runtime failed, and 3 means the agent stopped before finishing — a limit was reached, the run was stopped, or the model declined to answer. Combine -p with --continue or --resume SESSION_ID to continue a saved session, and use --worktree to run a session in its own git worktree so the agent’s changes stay apart from your checkout.

A programmer reviewing a code diff proposed by an AI coding assistant on a laptop
AI-generated illustration

5. Run it on your own local model#

This is the part other coding agents don’t offer. Vibe supports any model served behind an OpenAI-compatible API. Mistral’s own docs recommend Devstral Small 2 (24B, tuned for agentic coding) or Mistral Small 4 (119B mixture-of-experts) served with vLLM, and list llama.cpp, LM Studio, and Ollama as alternatives. Vibe ships a provider preset named llamacpp that points at http://127.0.0.1:8080/v1 with no API key — serve a model there, name the preset in your config, and your code never leaves the machine.

Here is the exact setup this tutorial verified. First, serve a model on port 8080. We used llama.cpp’s server with a small quantized model already on disk, Qwen3-1.7B:

llama-server -m Qwen3-1.7B-Q4_K_M.gguf \
  --alias Qwen3-1.7B-Q4_K_M --port 8080 -c 16384 --threads 2 --jinja

Then point Vibe at it. With VIBE_HOME set to a scratch directory so nothing touches your real config, write config.toml:

active_model = "local-qwen3"
enable_telemetry = false
enable_update_checks = false
enable_otel = false

[models.local-qwen3]
name = "Qwen3-1.7B-Q4_K_M"
provider = "llamacpp"
alias = "local-qwen3"
max_context_length = 16384
thinking = "off"
temperature = 0.2
input_price = 0.0
output_price = 0.0

Two gotchas surfaced while verifying this, and both are worth knowing before you try it. First, Vibe refuses a model whose context window is too small — with the server at 4,096 tokens it errors out, because the smallest it accepts is 13,334. Serve at 16,384 or more. Second, the full tool catalog did not fit in a 16k window: Vibe reported that it could not fit the system prompt, tool catalog, and compaction prompt in the token threshold. The fix is to narrow the tools to what the task needs:

vibe -p "Create fib.py in the current directory with an iterative fibonacci(n) function (0-indexed: fibonacci(0) is 0, fibonacci(1) is 1) and a __main__ block that prints fibonacci(10). Then run python3 fib.py and confirm the output is 55." \
  --model local-qwen3 --auto-approve --max-turns 12 --time-limit 540 --trust \
  --enabled-tools read_file --enabled-tools write_file --enabled-tools edit --enabled-tools bash \
  --output-dir ./vibe-run1

The run worked. Vibe wrote fib.py with a correct iterative Fibonacci function, ran python3 fib.py itself, and reported the output — 55, matching the expected result. We confirmed it independently by running the file again. The run’s export.json records 8,490 total tokens (7,679 input, 811 output), $0 cost, and an outcome of deadline: the 540-second time limit stopped the session after the task was already complete. That slowness is the honest caveat — a 1.7B model on two CPU threads took about nine minutes for a task Devstral 2 would finish in seconds. Treat a tiny CPU model as a proof that the plumbing works, not as a daily driver. For real local use, Mistral’s recommended Devstral Small 2 needs roughly 24 GB of VRAM at 4-bit precision, or a machine with enough RAM for CPU offload.

To run fully offline, disable telemetry and update checks as above, and remember that skills, MCP servers, and connectors that reach external systems must be disabled separately — the local provider alone doesn’t stop them. Vibe’s own docs say the same, and it’s the setting people forget.

6. Make it yours: subagents, skills, and modes#

Vibe 2.0’s headline controls are about shaping the agent to your workflow rather than accepting its defaults:

  • Custom subagents. Build specialized agents for targeted jobs — deploy scripts, PR reviews, test generation — and invoke them on demand. Custom agents live in ~/.vibe/agents/NAME.toml; select one with vibe --agent NAME. Subagents also appear in the interactive status rail, where you can open and watch them while they work.
  • Multi-choice clarifications. When your intent is ambiguous, Vibe prompts with options instead of guessing — the single most useful 2.0 behavior for large codebases, where a wrong assumption costs more than a question.
  • Slash-command skills. Load preconfigured workflows with / — deploying, linting, generating docs — instead of retyping the same instructions every session. Project instructions go in AGENTS.md, which Vibe reads automatically.
  • Unified agent modes. Configure custom modes that combine tools, permissions, and behaviors, then switch contexts without switching tools.
  • Sessions and goals. vibe --continue resumes the last session in the directory; vibe --resume opens a picker, and /branch forks the conversation. /goal keeps an interactive session working turn after turn toward an objective (goals aren’t available in programmatic mode).
  • MCP. External tools connect over MCP — manage servers with the vibe mcp subcommand without starting a session.

One more detail worth knowing: Vibe doesn’t watermark the text it generates, and files it writes — including files it commits — carry no Content Credentials. That is a statement about provenance, not a license to skip review: check the diff before you commit, whatever the agent is.

When to use Vibe vs the alternatives#

AgentLicenseModel choiceLocal modelsWhat you pay for
Mistral VibeApache 2.0Mistral cloud, any OpenAI-compatible API, or localYes — built-in presetTokens, or a Le Chat plan
Claude CodeProprietaryAnthropic modelsNoSubscription or API usage
CodexProprietaryOpenAI modelsNoSubscription or API usage
OpenCodeOpen sourceMany providersYesTokens, or your own keys
AiderOpen sourceMany providersYesTokens

Pick Vibe when you want a terminal agent you can inspect and keep, when your code can’t leave your network, or when you already live in Mistral’s ecosystem — Devstral 2 is, by Mistral’s own numbers, a strong coding model at 72.2% on SWE-bench Verified. Pick a vendor agent when you want the tightest integration with that vendor’s frontier model and don’t need the exit ramp. Pick OpenCode or Aider when you want open source with a different workflow — Vibe’s edge over them is the Mistral-tuned default model and the subagent/mode system from 2.0, not the mere fact of being open.

The takeaway#

Mistral Vibe earns its place on your shortlist for one reason: it is the coding agent that lets you leave. Install it in minutes, use Mistral’s cloud while it’s convenient, and know that the same CLI, the same config file, and the same workflows keep working against a model on your own hardware — we ran the whole loop that way, for $0, and the agent wrote correct code and verified it. Start with a small, checkable task. Set --max-turns and --time-limit on every scripted run. And keep the approval policy on accept-edits or stricter until you’ve seen what the agent does with your codebase — the preview-and-confirm loop is the feature, not the friction.