# Vibe Source: /vibe > Vibe is Mistral's unified agent for productivity and coding tasks, built for professional use and available across web, mobile, your code editor, and your terminal. It runs in two modes, each shaped for a different kind of task: - **Work**: the unified experience in the Vibe web and mobile apps. Quick conversations and multi-stage professional tasks (research, drafts, summaries, scheduled runs) happen in the same place, and a **fast/think toggle** switches between quick conversational responses and deeper, agentic workflows. - **Code**: development in your terminal, in VS Code, in the Vibe Desktop app, or as remote cloud sessions. > **Tip:** > > Need help choosing the right mode for your task? See [Choose Work or Code](/vibe/choose-chat-work-code) for a side-by-side comparison. > **Info:** > > **Chat and Work are now one.** Vibe used to split quick conversations (**Chat**) and multi-step agentic work (**Work**) into two tabs, so you had to pick a surface before you could start a task. Since September 22, they're merged into a single experience: one place for every conversation, where the **fast/think toggle** sets how deep Vibe goes — not which tab you're in. The [chat.mistral.ai](https://chat.mistral.ai) URL remains the entry point, and your plan, history, and settings are preserved. > > The rollout is progressive: self-serve Free, Pro, and Teams accounts are migrated first. Enterprise organizations follow with a six-month migration window — administrators pick the migration date in the admin panel or trigger the merge immediately. If you relied on Agents, use [Skills](/vibe/work/web/skills) instead — invoke them with `@`. Onboarding modals walk you through what changed the first time you open the unified experience. ### How Vibe works Across every mode, you interact with Vibe **the same way**: same Mistral models, same patterns, same control. A typical Vibe workflow looks like this: 1. **You describe the outcome you want** in natural language. 2. **Vibe gathers context** from your prompt, attached files, connected tools, or the web. 3. **Vibe plans and acts**: it breaks the task into steps, calls the right tools, and shows its progress in real time. 4. **You review and reuse**: outputs are inspectable, editable, and reusable across sessions. **At every step, you stay in control.** Vibe asks for approval before sensitive actions, shows every tool call, and lets you steer or stop at any point. > **Info:** > > **Temporary Chat** starts a conversation that isn't saved to your history or used to train our models. We only log that a Temporary Chat happened, not its content, and data may be retained where legally required. ### Get started Ready to try? Jump to the dedicated guide for your use case: > **Info:** > > **Looking for the mobile apps?** Download Vibe for [iOS](https://apps.apple.com/us/app/le-chat-by-mistral-ai/id6740410176) or [Android](https://play.google.com/store/apps/details?id=ai.mistral.chat) to use Work on the go. --- # Chat (legacy) Source: /vibe/chat-legacy > Find the documentation of the legacy Chat features and the Work equivalent to use once the Chat tab is gone. These pages document the features of the former Chat tab of Vibe. Chat and Work are now merged into a single experience, so use these pages only if you still have access to the Chat tab. > **Warning:** > > The Chat tab is being removed progressively. Enterprise organizations may still have access during the six-month migration window. ### Legacy features and their Work equivalents The following table lists each legacy Chat feature with the Work feature that replaces it. | Legacy Chat feature | What it does | Use in Work | | ------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | | [Agents](/vibe/chat-legacy/agents) | Configure a specialized assistant once and reuse it across conversations. | [Skills](/vibe/work/web/skills) | | [Think mode](/vibe/chat-legacy/think-mode) | Reason through complex problems step by step and show the full reasoning path. | The fast/think toggle, described in [Get started with Work](/vibe/work/web) | | [Code Interpreter](/vibe/chat-legacy/code-interpreter) | Run Python and TypeScript inside Vibe. | [Code Interpreter in Work](/vibe/work/web/code-interpreter), available to paid users | | [Deep Research](/vibe/chat-legacy/deep-research) | Run multi-step web research and get a structured report with citations. | The Deep Research Skill, in [Skills](/vibe/work/web/skills) | | [Memories](/vibe/chat-legacy/memories) | Let Vibe remember details about you from past interactions. | [Knowledge](/vibe/work/web/knowledge) | ### Next step To learn how the merged experience works, read [Get started with Work](/vibe/work/web). --- # Agents Source: /vibe/chat-legacy/agents > Create, use, and share Agents in the legacy Chat tab: reusable assistants with their own instructions, tools, and knowledge sources. > **Warning:** > > Agents are a legacy Chat feature. The Chat tab is being removed progressively — Enterprise organizations may still have access during the six-month migration window. > > If you no longer have access, use [Skills](/vibe/work/web/skills) instead: reusable instructions, tools, and knowledge sources that you configure once and reuse across tasks. An Agent is a **specialized assistant** you configure once and reuse across conversations. Give it instructions, tools, and knowledge sources, and it handles the rest. > **Tip:** > > When you catch yourself **repeating the same prompts**, attaching the same files, or enabling the same tools every time you start a conversation, that's a good sign you need an Agent. ### Common use cases Agents work best when you need the same instructions, tone, or knowledge applied consistently: - **Brand voice editor**: paste any draft and get it rewritten in your company's tone, with the same formatting rules every time. - **Legal clause checker**: upload a contract and ask the Agent to flag non-standard clauses based on your internal policy [Library](/vibe/work/web/libraries). - **Meeting prep assistant**: share a prospect's website or a briefing doc and get structured talking points, key figures, and open questions. - **Technical FAQ**: attach your product documentation as a [Library](/vibe/work/web/libraries) and share the Agent with your team so anyone can get accurate, sourced answers. - **Translation with context**: an Agent that translates content while respecting your glossary and brand terminology, attached as a [Library](/vibe/work/web/libraries). ### Creating an Agent Creating an Agent is simple and accessible to all users: 1. Select the **Chat** tab in the sidebar. 2. Click `Agents` in the left sidebar. 3. Click `Create Agent` to start from scratch, or pick a **pre-built template** as a starting point. 4. Configure the Agent (see [next section](#configuration)). 5. Test it in the **preview panel** on the right side of the screen. Agents save automatically as you configure them. There's no save button. > **Tip:** > > Templates cover common patterns like summarizers, translators, and code assistants. Start with one and customize it rather than building from scratch. ### Configuration Agent configuration is split into **main settings** and more advanced options. You can always come back and edit these later. **Main settings** Every Agent starts with four fields. - **Name**: use a clear, descriptive name your team can find at a glance. For example, `Customer Support Triage` or `Sales Brief Generator`. - **Description** (optional): a short explanation of what the Agent does, visible in the Agent picker. - **Avatar** (optional): choose from presets or generate a custom one. - **Instructions**: detailed guidance for the Agent's behavior. This is where you define its role, scope, and output format. Type `/` in the field to reference tools and knowledge sources inline. **Guardrails and tone** These settings are optional but can **refine how the Agent communicates**. - **Guardrails**: set boundaries the Agent should respect. For example, *"Always use metric units"* or *"Don't share pricing information outside the approved rate card."* - **Tone and personality**: expand `Tone` to define the Agent's communication style. A customer-facing Agent might need a warm, professional tone, while an internal code review Agent can be more direct. **Tools and knowledge** Agents can be enhanced with **pre-configured tools** and your own **knowledge sources**. **Tools** **Knowledge** ### Using Agents in Chat #### Starting a conversation with an Agent 1. Select the **Chat** tab in the sidebar. 2. Click `+` then select `Agents` or type `/` in the message box. 3. Search for or select an Agent. Its name appears at the top of the chat box. 4. Send your message. The Agent responds according to its configuration. #### Switching Agents Click the dropdown arrow next to the Agent name, or repeat the process above, and select a different Agent. > **Info:** > > Only **one Agent can be active at a time** within a conversation. #### Returning to the default model Click the cross icon next to the Agent name to remove it. The conversation continues with the default Vibe model. You can also start a new chat, which always begins with the default model. ### Writing effective instructions Good instructions make the difference between a generic chatbot and a reliable team tool. Here are a few principles: - **Define the role clearly.** Start with who the Agent is and what it does: *"You are a code reviewer. Focus on Python best practices, security issues, and performance."* - **Specify the output format.** Tell the Agent whether you expect bullet points, JSON, prose, a table, or something else. Include a short example if the format matters. - **Set explicit boundaries.** State what the Agent should not do: *"Don't provide legal advice"* or *"Only reference documents from the attached Library."* - **Reference tools inline.** Type `/` in the instructions field to mention specific tools or knowledge sources. This tells the Agent when and how to use them. - **Iterate in small steps.** Change one thing, test in the preview panel, repeat. Getting instructions right is an iterative process. > **Info:** > > For a broader introduction to prompt writing techniques, see our [prompt engineering guide](/inference/prompting). ### Sharing and permissions By default, a new Agent is **private** (only you can see and use it). #### Sharing with specific people 1. Open the Agent's card on the `Agents` page. 2. Click the sharing status label (`Private`, `Organization`, or `x people`). 3. Search for users or groups and assign a permission level: - **Collaborator**: can use, edit, and delete the Agent. - **Viewer**: can use the Agent in their own conversations but can't edit or delete it. Changes save automatically. Close the modal when you're done. #### Sharing with your entire organization In the same sharing modal, toggle `Entire organization` and choose whether everyone gets Collaborator or Viewer access. > **Note:** > > We don't send notifications when you share an Agent. Let your teammates know so they can start using it. ### Managing Agents #### Duplicating an Agent Open the three-dots menu (`⠇`) on the Agent card and select `Duplicate my Agent`. This creates a new, independent copy you own. Changes to one won't affect the other. > **Tip:** > > Duplicating is also the workaround for transferring an Agent to a colleague. Share it as a Collaborator, ask them to duplicate it, then delete the original if needed. #### Deleting an Agent 1. Open the three-dots menu (`⠇`) on the Agent card. 2. Select `Delete` and confirm. > **Warning:** > > Deleting an Agent is permanent and can't be undone. If the Agent was shared, it becomes unavailable to everyone. > **Note:** > > Agents are available on all plans. If you change or cancel your subscription, your Agents and their sharing settings are preserved. Some tools or knowledge sources may become unavailable on lower-tier plans. ### Agents and the API Agents created in Chat are designed for the chat interface and can't be used programmatically. If you need API access, create Agents through [Studio › Agents](https://console.mistral.ai/build/agents) or the [REST API](/api#tag/beta.agents). Studio Agents can be deployed to Chat and appear in a dedicated section of your Agent list. ### Related features --- # Code Interpreter Source: /vibe/chat-legacy/code-interpreter > Run Python and TypeScript code inside the legacy Chat tab, work with files, and find the native code interpreter that replaces it in Work. > **Warning:** > > Code Interpreter is a legacy Chat feature. The Chat tab is being removed progressively — Enterprise organizations may still have access during the six-month migration window. > > Code Interpreter has been replaced by a native code interpreter in [Work](/vibe/work/web/code-interpreter), available to paid users with the same capabilities. Code Interpreter lets you **run Python and TypeScript directly inside Vibe**. Not a developer? No problem. Describe what you want in plain language, and Vibe generates and executes the code for you. > **Info:** > > Code runs in a **secure, isolated environment** with no internet access. It cannot reach your system or external services. Common data-analysis packages are preinstalled (pandas, numpy, matplotlib). Uploaded files are available for the current conversation only. ### Common use cases Code Interpreter combines the versatility of Vibe with the precision of Python. It's perfect for: - **Data analysis**: explore CSV, XLSX, or JSON files. Summarize, filter, flag outliers, or clean missing values. - **Charts and visuals**: generate line charts, bar charts, pie charts, or any Matplotlib visualization from your data. - **Calculations**: work through formulas, financial models, or unit conversions with verified accuracy. - **File transformations**: convert formats, merge datasets, or export processed results as downloadable files. ### Activation Code Interpreter must be enabled before Vibe can use it. 1. Select the **Chat** tab in the sidebar. 2. Click the `+` icon or type `/` in the chat window. 3. Select `Tools` then enable `Code Interpreter`. The tool stays active for the duration of the conversation and subsequent chats. > **Note:** > > Code Interpreter usage is **subject to rate limits** based on your plan. For details, visit our [pricing page](https://mistral.ai/pricing). ### Running code Describe what you want **in plain language** and Vibe writes and executes the Python code for you. ```txt Load this CSV and show the top 5 rows, then plot sales by month. ``` The code runs in the sandbox and returns tables, figures, or files inline. You can follow up to refine results, adjust filters, or ask for explanations of what the code does. > **Info:** > > Code Interpreter cannot fetch files directly from URLs. If your data is online, download it locally and upload the file. Alternatively, enable [Web search](/vibe/work/web/web-search-open-url) and ask Vibe to fetch the data before running code. ### Working with files Upload files using the `+` button in the chat toolbar. Supported formats include: - **Documents**: PDF, Word (`.docx`, `.doc`), PowerPoint (`.pptx`, `.ppt`), ODT, EPUB, RTF - **Spreadsheets**: Excel (`.xlsx`, `.xls`), CSV, ODS, Numbers - **Images**: PNG, JPEG, WebP, GIF - **Text and markup**: TXT, Markdown, RST, LaTeX - **Data formats**: JSON, JSONL, XML, YAML - **Code files**: Python, JavaScript/TypeScript, Java, Go, Rust, C/C++, Ruby, PHP, SQL, and many more - **Email**: EML, MSG Typical prompts: - *"Summarize this spreadsheet and flag outliers."* - *"Clean this CSV, fix missing values, and export a new file."* - *"Extract all emails from this PDF and give me a CSV."* > **Note:** > > For details and advanced workflows, see the [Files and Canvas](/vibe/work/web/files-and-canvas) article. ### Tips for better results - **Be specific.** For charts or tables, specify column names, filters, and the desired output format. - **Ask for explanations.** Try *"Explain the steps and show the code"* to understand what's happening. - **Iterate.** Follow up with requests to fine-tune the output (e.g., *"Now add a rolling average and label the axes."*) - **Prototype with smaller files.** If you hit a limit, upload a sample to test your approach, then scale up. - **Avoid sharing secrets.** Never share API keys or credentials in the chat or in code. ### Related features - **[Files and Canvas](/vibe/work/web/files-and-canvas)**: edit and refine code, data, and text, and import documents, spreadsheets, and images into your conversation. --- # Deep Research Source: /vibe/chat-legacy/deep-research > Run multi-step web research in the legacy Chat tab, review the search plan, and get a structured report with citations. > **Warning:** > > Deep Research is a legacy Chat feature. The Chat tab is being removed progressively — Enterprise organizations may still have access during the six-month migration window. > > If you no longer have access, use the equivalent: the [Deep Research Skill](/vibe/work/web/skills) in Work, where it works with [Connectors](/vibe/work/web/connectors) and [Canvas](/vibe/work/web/files-and-canvas). Deep Research automates **multi-step web research** in Vibe. It breaks down your question, searches multiple sources, evaluates findings, and generates a structured report with citations, **reducing hours of manual work to minutes**. You can use it for competitive landscape analysis, regulatory reviews, industry trend reports, or any question that benefits from pulling together information across multiple sources. ### How it works Deep Research follows a three-stage process: 1. It creates a **search plan** based on your question. 2. It **browses the web**, gathering information from multiple sources. 3. It synthesizes everything into a structured, cited **report**. Your question can be open-ended (*"What are the latest trends in enterprise AI adoption?"*) or specific (*"Generate a report on renewable energy regulations in the EU for 2024-2025."*). If your query is too broad, Vibe will ask you to **add more context** before starting. ### Starting a research task 1. Select the **Chat** tab in the sidebar. 2. Select the `Research` option (`Fast` is the default) below the message box. 3. Type your question and send it. > **Note:** > > When you enable Research mode, Libraries, Connectors, and Agents are temporarily disabled. They become available again once you switch back to standard chat. ### Reviewing and editing the search plan Before searching, Vibe proposes a step-by-step research plan. You have full control over this plan: - Click `Edit` to add, remove, or reorder steps. - Reply in the chat to suggest changes in natural language. - Click `Start research` when the plan looks right. Editing the plan lets you steer the research toward the sources and angles that matter most for your use case. ### Tracking progress Research runs **as a background task**. A progress widget shows live updates, search summaries, and reasoning **as Vibe works through each step**. You don't need to wait. You can open other conversations and come back when the research is done. To stop a research task early, click `Cancel` in the progress widget and confirm. ### Working with results When research finishes, the report appears in your conversation. It includes: - **Summary**: a concise overview of the key findings at the top. - **Full report**: detailed analysis with supporting arguments, data, and inline citations. - **Sources**: a list of all sources used, so you can verify findings or dig deeper. You can export and share your report: - Click `Save as PDF` to download a formatted version for sharing, printing, or archiving. - Share reports with colleagues using the standard conversation sharing feature. ### Tips for better results - **Be specific in your query.** *"Market trends for residential solar in Western Europe, 2023-2025"* produces a more focused report than *"Tell me about solar energy."* - **Edit the search plan.** Adding or removing steps helps you get exactly the depth and scope you need. - **Use detailed briefs for complex topics.** Include the region, time frame, industry, or angle you care about. The more context you provide, the more relevant the report. ### Related features --- # Memories Source: /vibe/chat-legacy/memories > Let Vibe remember your preferences and context in the legacy Chat tab, and manage, turn off, or replace Memories with Knowledge. > **Warning:** > > Memories is a legacy Chat feature. The Chat tab is being removed progressively — Enterprise organizations may still have access during the six-month migration window. > > If you no longer have access, use the equivalent: [Knowledge](/vibe/work/web/knowledge), which stores a broader range of information and is available in the unified experience. Memories lets Vibe **remember key details about you**, such as your preferences, interests, and working context, based on your past interactions. Instead of repeating yourself every conversation, Memories keeps that information available so responses stay relevant and personalized. ### How it works Vibe can save details in two ways: - **Explicit saving**: ask Vibe to save something specific. For example, *"Remember that I prefer concise answers"* or *"Remember that I work with TypeScript."* - **Automatic saving**: Vibe may also pick up useful details from your conversations on its own. If you mention recurring preferences or context, it might store them to improve future interactions. Saved Memories are recalled automatically when they're relevant to a new conversation. > **Info:** > > Memories only stores information you've explicitly included in your prompts. It won't infer details you haven't communicated. Vibe is also designed not to remember sensitive data such as social security numbers or banking information. ### Enabling Memories You can turn on Memories in two ways: 1. Select the **Chat** tab in the sidebar. 2. Click the `Enable Memories` button in the pop-up that appears the first time you log in. 3. Or open the `Memories` tab under the `Intelligence` menu on the left-hand side of your screen. Click the three dots `...` and toggle `Memories in Vibe` on. You'll see a confirmation message once Memories is active. ### Managing your Memories All your Memories appear in the `Memories` tab, listed from newest to oldest. You have full control over what's stored: - **View**: open the `Memories` tab to see everything Vibe has saved. - **Edit**: click the pencil icon next to a memory, make your changes in the popup, and confirm. - **Delete one**: click the trash icon next to a memory and confirm the deletion. - **Delete all**: click the three dots `...` at the top-right of the `Memories` tab, select `Clear all Memories`, and confirm. This action is irreversible. You can also ask Vibe to remove specific Memories in conversation. For example, *"Forget that I mentioned my location."* ### Turning off Memories Open the `Memories` tab and toggle the Memories button off. > **Warning:** > > Turning off Memories doesn't automatically delete your stored Memories. If you want to remove them, click `Clear all Memories` before deactivating. ### Privacy and data - Memories are private to your account. They're never shared with or sold to anyone, and we use them solely to improve your experience. - Memories are stored for the duration of your subscription. - **Free, Pro, Student, and Team plans**: prompts that include Memories may be used to train our models. You can [opt out](https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-for-training) in your account settings. - **Enterprise plans**: opted out of model training by default. - We don't use Memories data for advertising, ad profiles, or data selling. ### Related features --- # Think mode Source: /vibe/chat-legacy/think-mode > Use Think mode in the legacy Chat tab to have Vibe reason step by step through complex problems, or switch to the fast/think toggle. > **Warning:** > > Think mode is a legacy Chat feature. The Chat tab is being removed progressively — Enterprise organizations may still have access during the six-month migration window. > > If you no longer have access, use the equivalent: the **fast/think toggle** in the unified experience switches between quick conversational responses and extended reasoning. See [Get started with Work](/vibe/work/web). Think mode lets Vibe **reason through complex problems**. Powered by our [Magistral models](https://mistral.ai/news/magistral/), it breaks your question into smaller steps, works through each one, and gives you a clear answer along with the **full reasoning path**. > **Note:** > > This approach is known as *chain-of-thought* prompting: the model reasons explicitly before answering. For the research behind it, see the [original paper](https://arxiv.org/abs/2201.11903). ### How to use 1. Select the **Chat** tab in the sidebar. 2. Select the `Think` mode at the right of the chat window (`Fast` is the default). 3. Enter your prompt and send it as usual. 4. Vibe begins reasoning and displays its thought process in real time. 5. Once complete, Vibe provides the final answer. Think mode stays active until you switch to another mode. You can toggle it at any point in an existing chat. ### When to use Think mode Think mode is ideal for tasks requiring **multi-step logic** or **structured analysis**: - **Planning and strategy**: break down a product launch, prioritize a roadmap, or evaluate hiring plans. - **Debugging production issues**: trace through error chains, compare possible root causes, and narrow down fixes. - **Multi-factor decisions**: weigh options with competing constraints, such as vendor selection or architecture trade-offs. - **Math and quantitative reasoning**: work through financial models, statistical calculations, or proofs. - **Complex code review**: reason about logic flows, edge cases, and potential regressions across a codebase. > **Tip:** > > Not every question benefits from step-by-step reasoning. For simple factual lookups, quick text generation, or straightforward tasks, standard chat is faster and equally accurate. ### Tips for better results - **Be specific in your prompt.** The more context you give, the better the reasoning. Instead of *"What pricing model should we use?"*, try *"Compare freemium vs. usage-based pricing for a B2B SaaS product, considering churn and expansion revenue."* - **Use the reasoning as documentation.** The chain-of-thought output makes a useful artifact for team discussions. Copy it into a [Canvas](/vibe/work/web/files-and-canvas) or share the conversation to give colleagues visibility into how a decision was reached. - **Combine with other tools.** Think mode works alongside [web search](/vibe/work/web/web-search-open-url), [file uploads](/vibe/work/web/files-and-canvas), and [Libraries](/vibe/work/web/libraries) for reasoning based on your own data. ### Related features - **[Deep Research](/vibe/chat-legacy/deep-research)**: for questions that need multi-source web research and a structured report. Now available as a [Skill](/vibe/work/web/skills) in Work. - **[Files and Canvas](/vibe/work/web/files-and-canvas)**: refine and iterate on outputs from Think mode in an editor. - **[Code Interpreter](/vibe/chat-legacy/code-interpreter)**: run code and validate quantitative reasoning. - **[Get started with Work](/vibe/work/web)**: Vibe Work reasons step-by-step automatically when the task calls for it. --- # Choose Work or Code Source: /vibe/choose-chat-work-code > A closer look at each Vibe mode: when to use it, what it does, and where to start. ### Work **Pick Work for conversations and multi-step work alike.** Available in the Vibe web and mobile apps with a chat interface, Work is the unified experience: use the **fast/think toggle** to switch between quick conversational responses and deeper, agentic workflows in the same conversation. It's the right mode when your task needs multiple steps, several sources, or actions in connected tools, and when you want to review the result before using it. Typical tasks: - _"Catch me up on what happened in the Q4 launch Project this week."_ - _"Summarize this 80-page contract and flag the renewal risks."_ - _"Draft replies to my unread emails from the legal team."_ - _"Research the top 5 competitors in our space and create a one-page brief."_ - _"Find the latest customer feedback in Notion, group it by theme, and prepare a slide deck."_ What Work gives you: - **Agentic work across an unbounded number of [Connectors](/vibe/work/web/connectors)** including Gmail, Outlook, Slack, Notion, Linear, GitHub, Atlassian, Google Drive, SharePoint, and Stripe. - Real-time progress and tool-call visibility, with clarifying questions when your prompt is ambiguous. - Approval prompts before sensitive actions (sending email, modifying data, deleting). - [Skills](/vibe/work/web/skills) and [Projects](/vibe/work/web/projects) to make repeated work easier over time. - [Schedule tasks](/vibe/work/web/scheduled-tasks) to run a prompt automatically, once or on a daily, weekly, monthly, or yearly cadence. - **Temporary Chat**: conversations excluded from your history, search, memory, and model training. ### Code **Pick Code when the task depends on a codebase, terminal, IDE, or coding session.** Available as a CLI, a VS Code extension, a desktop app, or remote web sessions, Code is the developer mode where Vibe reads files, edits code, runs commands, and opens pull requests. Typical tasks: - _"Explain how authentication works in this repo."_ - _"Refactor `src/api/handlers/` to use the new error handler pattern."_ - _"Add unit tests for the `parseInvoice` function."_ - _"Run the test suite, fix what fails, and open a PR."_ - _"Continue the session I started in the CLI on the web."_ What Code gives you: - **CLI**: terminal-native, scriptable, ideal for local repos and automation. - **VS Code extension**: inline help, file editing, and chat right in your editor. - **Vibe Desktop**: a desktop app for macOS and Windows that runs cloud sessions and CLI-powered local sessions. - **Remote sessions**: cloud sandbox you can launch from any surface (web, mobile, desktop, IDE, CLI) against a GitHub repo. ### Chat (legacy) The **Chat** tab was the turn-based mode for quick conversations and the features that predate the unification: Agents, Think mode, Code Interpreter, and Memories. Merging it into Work makes Vibe simpler to use: one surface for everything, with the **fast/think toggle** setting the depth instead of a tab choice. It's being removed progressively: self-serve Free, Pro, and Teams accounts migrate to the unified experience first, and Enterprise organizations may still see the Chat tab during a six-month migration window — administrators pick the migration date in the admin panel or trigger the merge immediately. If you still have access, the legacy features keep working as before. If you don't, here's where each one lives now: **Chat features and their unified equivalents:** | Chat feature | Unified equivalent | |---|---| | [Agents](/vibe/chat-legacy/agents): specialized assistants with their own tools and instructions. | Use [Skills](/vibe/work/web/skills) instead; invoke them with `@`. | | [Think mode](/vibe/chat-legacy/think-mode): extended reasoning for problems that need deeper analysis. | The **fast/think toggle** in the unified experience. | | [Deep Research](/vibe/chat-legacy/deep-research): multi-source research with structured, cited reports. | The [Deep Research Skill](/vibe/work/web/skills) in Work. | | [Code Interpreter](/vibe/chat-legacy/code-interpreter): a sandbox for charts and data analysis. | The native [Code Interpreter](/vibe/work/web/code-interpreter) in Work — a sandbox with the same capabilities, available on paid plans. | | [Memories](/vibe/chat-legacy/memories): long-term facts and preferences the assistant remembers across chats. | [Knowledge](/vibe/work/web/knowledge): persistent knowledge that scales to your context and projects. | --- # Vibe Code Source: /vibe/code > What Vibe Code can do in your codebase, how it keeps you in control of its actions, and how to set it up on each surface. Vibe Code is Vibe's **coding mode**. With read/write access to your filesystem, a shell, and a configurable set of tools, it can read files, run commands, write code, and open pull requests on your behalf, under your supervision. Run Vibe Code against a local checkout via the [CLI](/vibe/code/cli) or the [VS Code extension](/vibe/code/vs-code-extension), against a GitHub repository in a remote sandbox via [Vibe Code Web](/vibe/code/web), or do both from a single app with [Vibe Desktop](/vibe/code/desktop) on macOS and Windows. > **Info:** > > You stay in the loop. Vibe Code requests approval before sensitive actions such as shell commands, and can be interrupted at any step. By default, it applies file edits without asking; use the `ask` agent to review those too. Behavior is configurable per agent and per environment, see [Safety, approvals, and permissions](/vibe/code/safety-approvals-permissions). ### Why use Vibe Code Common use cases: - **Write code**: describe what you want to build, and Vibe Code applies changes that follow your project structure and conventions. - **Explore and understand codebases**: ask Vibe Code to inspect files, explain architecture, and trace how systems fit together. - **Review code**: find bugs, logic errors, missing edge cases, and risky changes before they ship. - **Debug**: drop in an error, a failing test, or a stack trace, and let Vibe Code inspect the relevant context and propose a targeted fix. - **Automate development tasks**: delegate repetitive work such as refactors, tests, migrations, setup tasks, and pull request preparation. > **Tip:** > > **Working outside the codebase?** Vibe Code is built primarily for source code work (files, repositories, commands, diffs, pull requests). For tasks that live across apps, documents, chats, meetings, or business tools, [Vibe Work](/vibe/work/web) is usually a better fit. ### Set up Vibe Code Pick the interface that fits your workflow: > **Tip:** > > Not sure where to start? Compare the [CLI, VS Code extension, Vibe Code Web, and Vibe Desktop](/vibe/code/choose-cli-vscode-web-sessions). --- # Choose CLI, VS Code, web, or Desktop sessions Source: /vibe/code/choose-cli-vscode-web-sessions > Compare the Vibe Code CLI, VS Code extension, Vibe Code Web, and Vibe Desktop to choose the surface that fits your task. **One agent, four surfaces.** Vibe Code runs as the CLI, the VS Code extension, Vibe Code Web, and Vibe Desktop. They share a core agent engine, but their runtimes, tools, and prompts can differ. Pick the interface that fits your task; sharing an engine does not imply identical features or configuration across every surface. > **Info:** > > Vibe also implements the [Agent Client Protocol (ACP)](https://agentclientprotocol.com/) and is published in the [ACP registry](https://github.com/agentclientprotocol/registry/tree/main/mistral-vibe), so you can run it in other [ACP-compatible clients](https://agentclientprotocol.com/get-started/clients), including JetBrains IDEs. For setup steps, see [Use Vibe in other IDEs](/vibe/code/use-vibe-in-other-ides). This page focuses on the supported surfaces. ### Get started **CLI** **Pick the CLI when you want Vibe directly in your terminal.** The CLI is the most flexible surface. It runs in any terminal emulator, supports interactive sessions and scripting, and has full access to your shell and working tree. Typical tasks: - *"Refactor `src/api/handlers/` to use the new error handler pattern."* - *"Explain how authentication works in this repo."* - *"Run the test suite, fix what fails, and commit the result."* - Scripted or unattended runs with `vibe --prompt` for CI and automation. [Get started with the CLI](/vibe/code/cli) **VS Code extension** **Pick the VS Code extension when you want Vibe in your editor.** You don't need to install the CLI. The extension runs the same Vibe agent as the CLI through the [Agent Client Protocol](https://agentclientprotocol.com/), and adds **editor context** on top: active file, selection, diffs, and source control, all in the same workspace. Typical tasks: - *"Explain the file I'm currently looking at."* - *"Review this diff for edge cases before I open a pull request."* - *"Refactor this selection to make error handling explicit."* [Get started with the VS Code extension](/vibe/code/vs-code-extension) **Vibe Code Web** **Pick Vibe Code Web for a cloud session on a GitHub repository, straight from your browser.** No local checkout required. Vibe Code Web runs in a managed sandbox, works directly against a GitHub repository, and can prepare branches and pull requests for you. Typical tasks: - *"Inspect and change a repo I don't have cloned locally."* - *"Prepare a branch and open a PR from a remote session."* - Let an agent work autonomously on your codebase while you do something else. [Get started with Vibe Code Web](/vibe/code/web) **Vibe Desktop** **Pick Vibe Desktop to manage local and cloud coding sessions in one macOS or Windows app.** Desktop combines local development capabilities with cloud agent sessions, alongside Work in the same app. Its [local sessions](/vibe/code/desktop/first-coding-task) share the CLI's core engine and session logs without embedding the CLI. Use the integrated browser, terminal, file viewer, and [pull request panel](/vibe/code/desktop/review-changes#check-a-pull-request-s-status) to follow and review work. Linux support is coming soon. Typical tasks: - *"Run a cloud session on a repository I don't have cloned, then a local session on my checkout."* - *"Browse the repo's file tree and open the pull request without leaving the app."* - Keep documentation and dashboards open in the built-in browser while a session runs. [Get started with Vibe Desktop](/vibe/code/desktop) > **Tip:** > > **CLI and VS Code extension share the same configuration and sessions** (agents, skills, MCP servers, profiles, and conversation history). You can start a session in the CLI and resume it in the extension, or the other way around, without losing context. Desktop local sessions share the CLI's core engine and session logs, but their tools and prompts can differ. No separate CLI installation is required. ### What each surface gives you | | CLI | VS Code extension | Vibe Code Web | Vibe Desktop | |---|---|---|---|---| | Local install | Required | Required | None | Required (the app) | | Repository access | Local clone | Local clone | Directly via GitHub | Local clone (local sessions), directly via GitHub (cloud sessions) | | Filesystem and shell access | Local working tree | Local working tree, through ACP | Remote sandbox | Local working tree (local sessions), remote sandbox (cloud sessions) | | Custom agents, skills, MCP servers, and connectors | Yes | Yes | Yes | Yes | | Non-interactive mode | Yes (`vibe --prompt`) | No | No | No | | Session lifetime | Local terminal (shared with VS Code) | Local VS Code (shared with CLI) | Managed cloud | Local (local sessions) or managed cloud (cloud sessions) | | Best fit | Terminal-first development, automation, CI | Editor-native development and visual review | Remote repository tasks without local setup | Cloud and local sessions in one desktop app | --- # Install and setup Source: /vibe/code/cli > Install the Vibe CLI, start it in your project, choose an access path, and verify, update, or reset your setup. Install the Vibe CLI, run `vibe` in your project, and complete the setup prompt. ### Install the CLI **macOS / Linux** Use the one-line installer: ```bash curl -LsSf https://mistral.ai/vibe/install.sh | bash ``` The installer: - Checks whether `uv` is installed and installs it if needed. - Installs or upgrades `mistral-vibe` with `uv tool install` or `uv tool upgrade`, trusting your system's certificate store so it works behind corporate proxies. - Makes the `vibe` and `vibe-acp` commands available, provided your `PATH` is configured. If the installer reports that `vibe` is not on your `PATH`, add the displayed directory to your shell profile and restart your terminal. **Manual install** Use manual installation when you prefer to manage Python tools yourself. Install Vibe with `uv`: ```bash uv tool install --python 3.14 mistral-vibe ``` `--python 3.14` keeps `uv` off Python versions that some of Vibe's dependencies don't support yet, and `uv` downloads Python 3.14 if needed. If an upgrade hangs or fails, reinstall with `uv tool install --force --python 3.14 mistral-vibe`. **Windows** Vibe runs on Windows, but macOS and Linux are the primary supported platforms. Install `uv` first: ```powershell powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` Then install Vibe: ```powershell uv tool install --python 3.14 mistral-vibe ``` > **Tip:** > > **On a different interface?** This page covers the **CLI** specifically. If you'd rather work inside your editor or against a remote repo, jump to the [VS Code extension](/vibe/code/vs-code-extension) or [Vibe Code Web](/vibe/code/web). To run both from one desktop app, see [Vibe Desktop](/vibe/code/desktop). See [Choose CLI, VS Code, web, or Desktop sessions](/vibe/code/choose-cli-vscode-web-sessions) for a side-by-side comparison. ### Start Vibe in your project Open a terminal in your project root and run: ```bash vibe ``` On first launch, Vibe: - Starts with built-in defaults. It writes `~/.vibe/config.toml` only when you save a setting, such as the theme you pick during setup or a change in `/config`. - Walks you through a **setup wizard** to register your API key. ### Choose your access path The setup wizard asks you to sign in or provide an [API key](/vibe/code/cli/api-keys-profiles): - **Launch browser**: sign in with your Mistral account and use your Mistral plan. Vibe Code is included, with usage and rate limits based on your plan and pay-as-you-go settings. - **Use an API key**: generate a key from [Code > Vibe CLI](https://chat.mistral.ai/code/extensions) or use a key from another compatible provider. Paste your API key when prompted. The wizard saves it in your OS keyring, or in `~/.vibe/.env` if no keyring is available. You can also set `MISTRAL_API_KEY` in your shell environment if you prefer not to use the interactive prompt. To sign in to a dedicated or self-hosted deployment, choose **Launch browser**, then **Other**, and enter your console domain. Vibe saves the deployment's URLs to your user `config.toml`. If your administrator pins a console with `VIBE_CUSTOM_CONSOLE_URL`, browser sign-in always uses that console. > **Tip:** > > You can rerun the setup wizard at any time using `vibe --setup`. ### Verify the setup Your setup is ready when: - `vibe --version` returns a version. - `vibe` opens the interactive terminal interface from your project root. - Vibe accepts a prompt without asking for an API key again. Try a small first prompt: ```txt Find TODO comments in this project. ``` ### Update the CLI Vibe checks for a new release once a day and offers to install it at the next launch. To check right away, run: ```bash vibe update ``` `vibe --check-upgrade` does the same. Both commands prompt before installing a newer version, then exit. On Windows, Vibe prints the upgrade command instead: close every Vibe session, then run it. After an update, your next session lists what's new in each release since your last session. Run `/release-notes` to browse the release notes at any time. ### Reset your configuration If the CLI fails to start or behaves unexpectedly after editing the config, move the file aside and restart Vibe. Vibe starts again with its built-in defaults: ```bash mv ~/.vibe/config.toml ~/.vibe/config.toml.bkp vibe ``` ### Prerequisites Before you install the CLI, make sure you have: - **Python 3.12 or later** for manual installation. `uv` downloads it if needed. - *(Optional)* a **Mistral account** to use Mistral-hosted models. The CLI also works fully offline with [local models](/vibe/code/cli/offline-models), or against any compatible API key you provide. If you choose to use Mistral-hosted models, sign in with your Mistral account during setup. For non-Mistral providers or automation, create an API key from [Code > Vibe CLI](https://chat.mistral.ai/code/extensions). The same key works in Free mode, with a paid plan, or with pay-as-you-go enabled. --- # Admin config Source: /vibe/code/cli/admin-config > Distribute models, providers, MCP servers, and tool policies to Vibe Code CLI and VS Code users from the Admin Panel. Admin config, also called **managed config**, lets Organization and Workspace administrators distribute settings for the Vibe Code CLI and the VS Code extension to all users. You define it once in the Admin Panel, and both clients apply it to users in the Organization or Workspace. Use it to distribute models, providers, MCP servers, and tool policies without requiring users to edit `config.toml`. > **Info:** > > Admin config is a **distribution mechanism, not a security control**. It applies settings by default and shows them in `/config`, but users who control their local CLI environment can bypass them. Use it to set safe defaults, not to guarantee access rules: anything users must never reach also needs a server-side control, such as API key or Workspace permissions. > > When admin config can't be applied, for example because it's invalid, sessions run on the user's local configuration instead. See [What users see](#what-users-see). Unlike `config.toml`, admin config isn't edited on the user's machine. The CLI fetches it over HTTP and keeps a copy in `~/.vibe/managed_config_cache.json`. It never writes admin config to `config.toml`. Admin config is available at two scopes: - **Organization level**: configure it in [Admin Panel › Vibe › Preferences](https://admin.mistral.ai/vibe/preferences). It applies to users in every Workspace that doesn't set its own. - **Workspace level**: open [Admin Panel › Administration › Workspaces](https://admin.mistral.ai/organization/workspaces), select a Workspace, and open `Settings`. A Workspace can use the Organization-level configuration, replace it with its own, or turn admin config off for its users. The server doesn't merge the two configurations. Each user receives one, chosen by the user's Workspace: | Workspace-level configuration | What users in the Workspace receive | |---|---| | Not set, or set to inherit | The Organization-level configuration | | Enabled | The Workspace-level configuration only. Settings defined only at the Organization level don't apply. | | Disabled | No admin config, even when the Organization has one | ### Minimum client versions Support for admin config starts with these client versions: | Client | Minimum version | |---|---| | **Vibe Code CLI** | `2.24.2` | | **VS Code extension** | `1.16` | Earlier clients don't request admin config or apply its settings. Upgrade every client before you distribute an admin config. ### How it works 1. In [Admin Panel › Vibe › Preferences](https://admin.mistral.ai/vibe/preferences), or in a Workspace's `Settings`, enter a TOML configuration under `Vibe Code Clients managed config`. 2. The CLI calls the managed-config endpoint with the user's Mistral API key. A session starts on the copy the CLI already holds, and waits for the endpoint, a few seconds at most, only when there's no copy yet. The CLI checks for changes every 10 minutes in the background. `/reload` fetches it right away. 3. If admin config is enabled, its values take precedence over every other configuration source. The session follows them from its first message: starting agent, connectors, MCP servers, and tools. A change reaches open sessions at their next turn. ### Permissions Managing admin config requires the `manage_code_config` role-based access control (RBAC) permission at the Organization scope. Organization administrators can delegate admin config management without granting full administrator access. Workspace administrators can manage the configuration of their own Workspace. ### Enable the feature > **Warning:** > > We recommend validating your configuration in a test Organization before distributing it to all users. ### Activation by deployment type The activation process depends on the deployment type: | Deployment | How to activate | |---|---| | **Serverless** | No activation needed. The feature is available to every Organization. | | **Dedicated (private cloud)** | Contact your account team. Mistral enables the feature flag when available or sets its value in the deployment configuration. | | **Self-hosted** | Contact your account team to request activation through the Helm chart. This option is available on request. | > **Info:** > > **Dedicated and self-hosted deployments** require `/whoami` to return the correct Vibe and API domains. See [Troubleshooting](#troubleshoot-dedicated-and-self-hosted-deployments) for validation steps. ### Precedence Admin config is the **highest-priority** layer. It takes precedence over command-line flags, environment variables, and both project and user `config.toml`: ```txt admin config > agent settings > CLI flags > VIBE_* env vars > project config.toml > user config.toml ``` This precedence means the admin-provided values take effect for users by default, without them needing to update their own `config.toml`. ### What admins can set Admin config accepts most of the same keys as [`config.toml`](/vibe/code/cli/configuration), for example: - Active model, models, and providers. - MCP servers, and whether users can use MCP servers at all. - Whether users can auto-approve every tool call. - Connectors, and enabled/disabled tools, agents, and skills. - The starting agent. - Telemetry, update check, and notification toggles. ```toml active_model = "mistral-medium-3.5" enable_update_checks = false disabled_tools = ["bash"] ``` > **Warning:** > > A `[[providers]]` entry replaces the built-in provider with the same name entirely. Don't redefine the built-in `mistral` provider unless you set every field it needs, including `backend = "mistral"` and an `api_base` that ends with `/v1`. A top-level `auto_compact_threshold` applies only to models that don't set their own, and Mistral Large 4 and Mistral's model catalog set their own. To apply one value to every model, add a `[[models]]` entry for each model, with its `name`, `provider`, and `auto_compact_threshold`: ```toml [[models]] name = "mistral-large-4-0" provider = "mistral" auto_compact_threshold = 200000 ``` ### Enforce enterprise defaults A common use is giving everyone in the organization ready-to-use models out of the box. Instead of each user manually setting up providers and models, admins ship the right model and provider once, pointed at your enterprise endpoint with the correct backend, base URL, and headers. Users get a working setup on first launch, with nothing to configure. ```toml active_model = "mistral-large-enterprise" [[providers]] name = "acme-enterprise" backend = "mistral" api_base = "https://mistral.acme.internal/v1" api_key_env_var = "ACME_MISTRAL_API_KEY" api_style = "openai" [providers.extra_headers] "x-acme-tenant" = "engineering" [[models]] name = "mistral-large-2411" provider = "acme-enterprise" alias = "mistral-large-enterprise" ``` Here the model `mistral-large-2411` is served through the `acme-enterprise` provider, exposed to users under the alias `mistral-large-enterprise`, which is set as the active model. The credential is still supplied locally via the `ACME_MISTRAL_API_KEY` environment variable. ### Restrict selectable models Use the top-level `allowed_models` key to limit which models users can select. It takes a list of patterns. Each pattern matches the model's canonical API name: the `name` field of a `[[models]]` preset or a built-in model ID. This is the model name sent to the inference API, so giving a model a different `alias` doesn't change what patterns match. Patterns support three matching modes: | Pattern mode | Example | |---|---| | Exact name | `"mistral-large-latest"` | | Glob | `"mistral-vibe-cli-*"` | | Regular expression, prefixed with `re:` | `"re:^mistral-(large\|medium)-"` | When the list contains at least one pattern, only matching models are selectable in the model picker. This restriction applies to both the Vibe Code CLI and the VS Code extension. An empty or missing list has no effect. ```toml active_model = "mistral-large-enterprise" allowed_models = ["mistral-vibe-cli-*"] [[models]] name = "mistral-vibe-cli-latest" provider = "mistral" alias = "mistral-large-enterprise" ``` Combine `allowed_models` with the models you distribute: ship the `[[models]]` presets users need, and filter out every other model. > **Warning:** > > If no configured model matches `allowed_models`, the CLI rejects the entire admin config. Every pattern should match at least one distributed or built-in model name. `allowed_models` restricts which models the Vibe Code clients offer and run. It doesn't restrict API access: enforce access at the provider or API key level to limit which models a user can reach. ### Block MCP servers An empty `mcp_servers` list in admin config doesn't remove the servers users add themselves. To block MCP servers, set `enable_mcp` to `false`: ```toml enable_mcp = false ``` With `enable_mcp = false`, the Vibe Code clients: - Refuse to add, remove, enable, or disable MCP servers, for example with `vibe mcp` or `/mcp`. - Refuse to sign in to or out of OAuth MCP servers. - Load no tools from MCP servers, including servers provided by plugins. Users who try one of these actions see a message that their administrator disabled MCP servers. The clients enforce this setting, so like the rest of admin config, it isn't a security boundary. [Connectors](/vibe/code/cli/connectors) have a separate setting, `enable_connectors`. ### Block connectors To block every [connector](/vibe/code/cli/connectors), including the built-in web search, set `enable_connectors` to `false`: ```toml enable_connectors = false ``` To block one connector, add a `[[connectors]]` entry with the connector's name, as listed in `/connectors`: ```toml [[connectors]] name = "web_search" disabled = true ``` To block only some of a connector's tools, list them in the entry's `disabled_tools`, without the connector prefix: ```toml [[connectors]] name = "web_search" disabled_tools = ["weather_search"] ``` In the top-level `enabled_tools` and `disabled_tools` keys and in `[tools.]` blocks, a connector tool is named `connector__`: ```toml disabled_tools = ["connector_web_search_*"] [tools.connector_web_search_weather_search] permission = "ask" ``` > **Warning:** > > Session logs show connector tools as `connector_.`, with a dot, for example `connector_web_search.weather_search`. Rules written with the dot match no tool. Use the underscore form, `connector_web_search_weather_search`. ### Set the starting agent Set `default_agent` to choose the agent every session starts in, and `enabled_agents` or `disabled_agents` to limit the agents users can switch to. Both lists take agent name patterns: exact names, globs, or regular expressions prefixed with `re:`. ```toml default_agent = "ask" disabled_agents = ["auto-approve"] ``` Sessions never run in an agent the admin config excludes. If a user asks for one, for example with `--agent`, the session starts in `default_agent` instead, and Vibe shows a notice. ### Block auto-approve To stop users from skipping approval prompts with the auto-approve mode, set `enable_auto_approve` to `false`: ```toml enable_auto_approve = false ``` With `enable_auto_approve = false`, the Vibe Code CLI: - Hides the `auto-approve` agent and every custom agent with `safety = "yolo"`. A session whose `--agent` or `default_agent` names one of them starts in another agent instead, as for any [agent the admin config excludes](#set-the-starting-agent). - Ignores `--auto-approve` and `--yolo`, and shows a warning that approval prompts stay on. It also ignores `bypass_tool_permissions = true`. [Per-tool permissions](/vibe/code/safety-approvals-permissions#set-per-tool-permissions) still apply: a tool set to `always` in `[tools.]`, or a command in its `allowlist`, still runs without approval. Like the rest of admin config, this setting isn't a security boundary. ### Pin the sign-in console To make users sign in to your organization's console, set the `VIBE_CUSTOM_CONSOLE_URL` environment variable on their machines, to a URL or a domain: ```bash export VIBE_CUSTOM_CONSOLE_URL="console.acme.internal" ``` Browser sign-in in the CLI and the VS Code extension then uses that console, and users can't change it. Signing in with an API key stays available. ### Secrets Admin config never contains literal secrets. Credential fields must reference an environment variable (for example, `api_key_env_var = "MISTRAL_API_KEY"`), never the key itself. Literal API keys, tokens, or passwords are rejected on the server. ### What users see When admin config is active, users in the Vibe Code CLI notice the following: - Admin-managed settings are read-only in `/config`: users can't edit or reset them. The settings editor's **Where it's set** panel lists the administrator as a source. - There is no startup banner or global indicator. - Starting a session waits for admin config, a few seconds at most, only when the CLI holds no copy yet. The CLI never writes admin config to the local `config.toml`. - If the fetch fails, the session uses the last admin config received in the past 7 days, or runs without admin config. - Admin config changes reach open sessions at their next turn, within about 10 minutes, or right away after `/reload`. Settings the administrator removed stop applying, and tools, connectors, MCP servers, or agents it disables go away. A new starting agent applies from the next session. - If the CLI can't find a Mistral API key, it skips admin config. - If the admin config can't be applied, the CLI tries the last admin config it received, then falls back to the user's local configuration, with no admin config at all. It shows: `Your administrator-managed configuration could not be applied: `. This happens when the admin config is invalid or doesn't fit the user's setup, for example a `[[models]]` entry whose `provider` isn't defined, or a `system_prompt_id` the user's project doesn't provide. ### Stop applying admin config To stop applying admin config, **submit an empty configuration**. Users who can't reach the managed-config endpoint keep the last configuration they received for up to 7 days. ### Troubleshoot dedicated and self-hosted deployments If users in dedicated or self-hosted deployments don't receive admin config, check the endpoints and domain values. #### Check endpoint access The client needs to reach two authenticated endpoints: - `/api/vibe/whoami` returns the tenant's Vibe and API domains in `vibe_base` and `api_base`. - `/api/v1/code/managed-config` returns the admin config response. The client derives `vibe_base_url` from the `vibe_base` value returned by `/whoami`. Set the URLs for the user's deployment, make sure `MISTRAL_API_KEY` is available in the environment, and run both requests from the user's environment: ```bash CONSOLE_BASE_URL="https://console.mistral.ai" VIBE_BASE_URL="https://chat.mistral.ai" curl --silent --show-error --fail-with-body \ --header "Authorization: Bearer ${MISTRAL_API_KEY}" \ "${CONSOLE_BASE_URL}/api/vibe/whoami" curl --silent --show-error --fail-with-body \ --header "Authorization: Bearer ${MISTRAL_API_KEY}" \ "${VIBE_BASE_URL}/api/v1/code/managed-config" ``` For dedicated and self-hosted deployments, replace both URL values with the deployment's console and Vibe origins. - If either request fails to connect, check the deployment's DNS, TLS, and network configuration. Contact your account team or Mistral support if the endpoint remains unavailable. - If either request returns `401` or `403`, verify the user's API key and access. - If both requests return a successful HTTP status, continue with the domain checks. #### Check the `/whoami` domains The `/whoami` response must contain the expected `vibe_base` and `api_base` origins. The client stores a valid `vibe_base` value as `vibe_base_url` in the user's `config.toml` and uses it to build the managed-config URL. Sign-in replaces the provider's `api_base` with the one `/whoami` returns. If users reach the API through a proxy with another URL, set `preserve_api_base = true` on the provider to keep its configured `api_base`. If `/whoami` returns an incorrect domain, contact Mistral support to correct the server configuration. If the response is correct but the client doesn't fetch admin config, investigate the Vibe Code client. #### Apply fixes for your deployment type | Deployment | How fixes are delivered | |---|---| | **Serverless** | Mistral includes the fix in a platform release. | | **Dedicated** | Request a redeployment of the dedicated instance. | | **Self-hosted** | Update to a self-hosted release. For critical issues, contact Mistral support to discuss a hotfix. | --- # Agents Source: /vibe/code/cli/agents > Use the built-in agents of the Vibe Code CLI, or define custom agents and subagents with their own prompts, models, tools, and approvals. Agents are **configuration overrides** applied on top of the global config. They bundle a system prompt, a compaction prompt, an active model, an available tool set, and approval rules. The CLI ships with several built-in agents, and you can define your own. ### Built-in agents | Agent | Behavior | |---|---| | `ask` | Asks for approval before running tools. Formerly named `default`. | | `accept-edits` | **Default agent.** Auto-approves file edits in the working directory. Still asks for approval for other actions (for example, shell commands). | | `smart-approve` | Classifies each tool call, runs the ones it judges safe, and asks for approval before risky ones. See [Smart approve](/vibe/code/safety-approvals-permissions#smart-approve). | | `auto-approve` | Auto-approves all tool execution. Use **only in a trusted, sandboxed environment**: this agent can run arbitrary commands such as `rm -rf` against any path Vibe can reach. Unavailable when your administrator sets [`enable_auto_approve = false`](/vibe/code/cli/admin-config#block-auto-approve). | | `lean` | Specialized agent for the [Lean 4](https://lean-lang.org/) proof assistant. Install with `/leanstall` from inside the CLI, and remove it with `/unleanstall`. | > **Note:** > > Vibe has no built-in `plan` agent. If your config sets `default_agent = "plan"` and you don't have a custom agent named `plan`, Vibe shows a warning and starts sessions with `ask` instead. To keep a planning workflow, [create your own plan agent](#create-a-plan-agent). The agent can also delegate work to **subagents**, for example to explore a large codebase without filling its own context. You can't select subagents with `--agent`. See [Custom subagents](#custom-subagents). ### Select an agent Pick an agent at launch: ```bash vibe --agent ask vibe --agent auto-approve ``` In interactive sessions, switch agents on the fly with `Shift+Tab`. Set the default agent in `config.toml`: ```toml default_agent = "ask" ``` `default_agent` applies to both interactive and programmatic (`--prompt`) sessions. To approve every tool call for one run, pass `--auto-approve` (or its alias `--yolo`). A new session on `ask`, `accept-edits`, or `smart-approve` then starts on `auto-approve`, which you can leave with `Shift+Tab`. Other agents and resumed sessions keep their agent, with every call approved. Vibe ignores these flags when your administrator sets `enable_auto_approve = false`. ### Custom agents Create custom agents in `~/.vibe/agents/` (user-level) or `./.vibe/agents/` (project-level) by adding a `.toml` file. Set the agent's kind with `agent_type`: - `agent_type = "agent"` (default): **user-facing**. Selectable via `vibe --agent ` or `Shift+Tab`. - `agent_type = "subagent"`: **delegation-only**. Spawned by the agent when it delegates work. Not selectable by the user. Run a custom agent with its filename: ```bash vibe --agent redteam ``` The CLI looks for `redteam.toml` in the agents directory and applies its configuration. The name `main` is reserved, so don't name an agent file `main.toml`. Example: a read-only red-team review agent. ```toml # ~/.vibe/agents/redteam.toml agent_type = "agent" display_name = "Red team" description = "Read-only audit agent for security review." safety = "safe" active_model = "mistral-medium-3.5" system_prompt_id = "redteam" disabled_tools = ["edit", "write_file"] [tools.bash] permission = "ask" [tools.read_file] permission = "always" ``` > **Note:** > > The `safety` field changes the color of the agent's mode label on the input box in the CLI to signal the agent's safety level. Options are `safe`, `neutral`, `destructive`, `smart`, and `yolo`. It is a **visual hint only** and does not enforce permissions, so pair it with appropriate `enabled_tools`, `disabled_tools`, and per-tool permissions. The one exception: when `enable_auto_approve` is `false`, Vibe hides every agent with `safety = "yolo"`. The `system_prompt_id` value names a Markdown file in `./.vibe/prompts/` (trusted folders only) or `~/.vibe/prompts/`. The example above expects `redteam.md`. A custom agent's prompt applies only if you select the agent before your first message, with `--agent` or `Shift+Tab`. If you switch agents later, the new agent's tools, permissions, and model apply, but the prompt changes only after `/clear`. #### Create a plan agent To explore a codebase and agree on a plan before any file changes, define a read-only agent named `plan`: ```toml # ~/.vibe/agents/plan.toml display_name = "Plan" description = "Explores the codebase and proposes a plan before any change." safety = "safe" disabled_tools = ["edit", "write_file"] instructions = """ Explore the codebase and propose a step-by-step implementation plan. Don't modify any file until the user approves the plan. """ [tools.bash] permission = "ask" ``` Start with `vibe --agent plan`, or set `default_agent = "plan"`. The agent can read files and run read-only shell commands, and asks before any other command. Once you approve the plan, press `Shift+Tab` to switch to `accept-edits` and ask the agent to implement it. The instructions above stay in the conversation and allow the change once you approve. ### Custom subagents Subagents run independently and return **text-only results** to the parent agent. The agent spawns them when it wants to delegate exploration or background work. Without a custom subagent, it can spawn a generic subagent that uses the same tools as itself and follows the instructions the agent writes for its task. Create a custom subagent by setting `agent_type = "subagent"`. The `description` tells the agent when to use it: ```toml # ~/.vibe/agents/research.toml agent_type = "subagent" display_name = "Research" description = "Read-only subagent for research tasks." safety = "safe" enabled_tools = ["read_file", "skill"] ``` Subagents can't ask the user questions. A subagent can use only the built-in tools its file allows, not MCP, connector, or plugin tools, and never with broader permissions than the parent agent. A custom subagent runs on its `active_model`, or on the session's model when unset. If Vibe can't load a subagent file, for example because its `description` is empty, it reports the issue instead of skipping the file silently. A custom subagent's `[tools.]` rules, such as `permission` and `allowlist`, apply on top of the session's rules: they can make the subagent more restricted than the session, never less. To limit the skills it can load, set `enabled_skills` or `disabled_skills` in its file, as in [`config.toml`](/vibe/code/cli/skills#enable-disable-or-filter-skills). By default, the agent can run up to 32 subagents at once. Past that limit, Vibe closes the subagent that has waited longest to make room. Change this limit with `max_subagents` and `max_concurrent_subagents` in `config.toml`. To stop the agent from spawning subagents, set `enable_subagents = false` in `config.toml`. ### AGENTS.md support The CLI loads `AGENTS.md` files into context to follow user and project-specific agent instructions: 1. **User-level**: `~/.vibe/AGENTS.md` (or in `$VIBE_HOME` if you set it). 2. **Project-level**: every `AGENTS.md` from the current working directory up to the root of the [trusted folder](/vibe/code/safety-approvals-permissions#trusted-folders). When instructions conflict, the file closest to the working directory wins. For example: ```txt / dir_1/ AGENTS.md <- never loaded: location is not trusted dir_2/ <- trusted AGENTS.md <- loaded dir_3/ AGENTS.md <- loaded, takes priority over dir_2/AGENTS.md project/ <- cwd (no AGENTS.md here) ``` Additionally, the CLI will auto-discover new `AGENTS.md` files when reading files in sub-directories. --- # API keys and profiles Source: /vibe/code/cli/api-keys-profiles > Create a Mistral API key, give it to the Vibe Code CLI, check which credentials it uses, and switch between accounts or providers. Vibe Code CLI needs a **Mistral API key** to call hosted models. This page covers how to create the key, give it to the CLI, and switch keys between accounts or providers. > **Info:** > > **Browser-based sign-in is enabled by default** when your config targets a model with a Mistral provider. The flow provisions and stores credentials for you, so no API key is needed for typical Mistral-provider setups. This page remains useful for non-Mistral providers, automation, troubleshooting, or when you want to use a custom API key. ### Where to create your API key Create your key from [Code › Vibe CLI](https://chat.mistral.ai/code/extensions). The same key works in Free mode, with a paid plan, or with pay-as-you-go enabled. > **Tip:** > > **Keep keys safe:** > > - **Use the least-privileged key** needed for the task. > - **Rotate keys regularly** and revoke unused ones from the console. > - **Never paste API keys** into prompts, logs, screenshots, or support tickets. ### Give the API key to the CLI The CLI supports **three ways** to provide your key. When more than one is set, the CLI uses the first key it finds, in this order: your shell environment, then `~/.vibe/.env`, then your OS keyring (for example, macOS Keychain or Windows Credential Manager), where the setup flow saves keys. #### 1. Interactive setup (recommended) On first run, the CLI starts a setup flow if it cannot find a key: ```bash vibe ``` You can also rerun the setup at any time: ```bash vibe --setup ``` The setup flow saves your key to your OS keyring for future sessions. If no keyring is available, it saves the key to `~/.vibe/.env`, readable only by you. #### 2. Environment variable Export the key in your shell: ```bash export MISTRAL_API_KEY="your_mistral_api_key" ``` Environment variables take precedence over values stored in `~/.vibe/.env` and in the keyring. When a key set in your shell would override the key you save, the setup flow warns you. #### 3. `.env` file You can also edit `~/.vibe/.env` directly: ```bash MISTRAL_API_KEY=your_mistral_api_key ``` The CLI loads `~/.vibe/.env` automatically on startup. > **Note:** > > The `.env` file is for **credentials only**. General CLI configuration belongs in `config.toml`. See [Configuration](/vibe/code/cli/configuration). ### Check which credentials Vibe uses Run `/status` in a session to see the active model and provider, which credential source is in use, and which sources it overrides. Run `/whoami` to see your signed-in account, Workspace, plan, API key scope, and the credential source in use (shell, `.env`, or keyring). ### Switch between accounts or providers The CLI supports multiple providers and models through **presets** in `config.toml`. Use this to switch between, for example, a Mistral key for production work and a key from another OpenAI-compatible provider for experiments. Define a provider preset and a model preset: ```toml [[providers]] name = "openrouter" api_base = "https://openrouter.ai/api/v1" api_key_env_var = "OPENROUTER_API_KEY" api_style = "openai" backend = "generic" [[models]] name = "mistralai/devstral-2512:free" provider = "openrouter" alias = "devstral-openrouter" temperature = 0.2 input_price = 0.0 output_price = 0.0 ``` Set the active model: ```toml active_model = "devstral-openrouter" ``` Then export the matching API key: ```bash export OPENROUTER_API_KEY="your_openrouter_api_key" ``` You can also change the active model at any time inside the CLI with `/config` or `/model`. ### Plan and billing notes Mistral plans include monthly usage that is shared across Studio, the API, and Vibe Code. Vibe Code uses this included monthly usage before any pay-as-you-go charges apply. After included monthly usage is exhausted, what happens next depends on your Organization settings: - **Pay-as-you-go off**: Vibe Code can stop until the next billing period. - **Pay-as-you-go on**: Vibe Code keeps working, and additional usage draws from your [prepaid credits](/admin/billing-usage/billing#credits). When your balance reaches zero, Vibe Code stops until you add credits. Pay-as-you-go is off by default. Some Pro plans purchased through partners (Google, Apple, Free Mobile, Orange) cannot enable pay-as-you-go. On those plans, Vibe Code stops once included monthly usage is exhausted. --- # Commands and shortcuts Source: /vibe/code/cli/commands-shortcuts > Control a Vibe session from the terminal with built-in slash commands and keyboard shortcuts. Use **slash commands** and **keyboard shortcuts** to control a Vibe session without leaving the terminal. ### Slash commands Type `/` in the CLI prompt to open the slash-command picker. Autocomplete suggests matching commands as you type. The table below lists the built-in commands. > **Tip:** > > [Skills](/vibe/code/cli/skills) can also expose themselves as slash commands. If you see a `/` command that isn't in this list, it probably comes from a local skill (check `~/.vibe/skills/` or your project's `.vibe/skills/`), or from a [plugin](/vibe/code/cli/plugins) when its name has a `plugin-name:` prefix. | Command | Alias | Description | |---|---|---| | `/branch` | `/fork` | Fork the current conversation into a new resumable session, leaving this session unchanged. Resume the copy with `vibe --resume `. | | `/clear` | `/new` | Start a new conversation. Optionally pass a prompt to seed it. | | `/compact` | | Compact conversation history by summarizing. Optionally pass instructions to guide the summary | | `/config` | | Edit config settings | | `/context` | | Show what fills the context window (system prompt, tool definitions, skills, conversation) and estimated tokens per category. Also opens when you click the footer's token counter | | `/copy` | | Copy the last agent message to the clipboard | | `/data-retention` | | Show data retention information | | `/debug` | | Toggle debug console | | `/exit` | `:q`, `:quit`, `exit`, `quit` | Exit the application | | `/goal` | | Set a goal Vibe keeps working on across turns until it's done. Without an argument, show the goal. Subcommands: `edit`, `pause`, `resume`, `clear`. See [Work toward a goal](/vibe/code/cli/work-with-cli#work-toward-a-goal) | | `/help` | | Show help message | | `/leanstall` | | Install the Lean 4 agent (leanstral) | | `/log` | | Show path to current interaction log file | | `/log-level` | | Change the log level for this session or persist it to config.toml. | | `/loop` | | Schedule a recurring prompt in plain language, for example `/loop every two minutes check the build`. Without an argument, open the loop manager: press `n` to add a loop or `d` to delete one. While the session is idle, the row above the input shows the next loop | | `/mcp` | `/connectors` | Browse MCP servers and connectors. Pass a name to list its tools. Subcommands: `add`, `status`, `login`, `logout`. See [MCP servers](/vibe/code/cli/mcp-servers#browse-mcp-servers-from-the-cli) | | `/model` | | Select the active model. Press `/` to search the list. Press `Enter` to save it to your config, or `s` to use it for this session only | | `/paste-image` | | Paste an image from the OS clipboard into the prompt. macOS only | | `/plugins` | | Display the plugins this session is running. See [Plugins](/vibe/code/cli/plugins#manage-plugins-in-a-session) | | `/pr` | | Show this session's pull requests and merge requests. Press `c` to open the first failing CI check, or `f` to draft a prompt that fixes what blocks the PR | | `/proxy-setup` | | Configure proxy and SSL certificate settings | | `/raw` | | Show agent messages as raw Markdown, so a selection copies their source text. Pass `on` or `off`, or nothing to toggle. Lasts for the current session | | `/release-notes` | `/whatsnew` | Browse the release notes of every Vibe version | | `/reload` | | Reload configuration, agent instructions, and skills from disk | | `/reload-plugins` | | Re-pin this session's plugins and report what changed. See [Pinned plugins](/vibe/code/cli/plugins#pinned-plugins) | | `/rename` | | Rename the current session | | `/resume` | `/continue` | Browse, resume, or delete saved sessions | | `/retry` | | Retry a failed or interrupted response; optionally pass additional instructions | | `/rewind` | | Rewind to a previous message (or press Esc twice) | | `/skills` | | Browse and manage skills | | `/status` | | Display agent statistics, model and provider details, and the credential source in use | | `/theme` | | Select theme | | `/thinking` | | Select the thinking level. Press `Enter` to save it to your config, or `s` to use it for this session only | | `/trusted-folders` | | List trusted and untrusted folders. Press `Enter` to move a folder to the other list, `f` to forget it, or `a` to trust a new folder. See [Trusted folders](/vibe/code/safety-approvals-permissions#trusted-folders) | | `/unleanstall` | | Uninstall the Lean 4 agent | | `/voice` | | Turn voice mode (dictation with `Ctrl+T`) and the experimental narrator on or off | | `/whoami` | | Display the Mistral signed-in user, workspace, plan, and credential source | ### Keyboard shortcuts > **Warning:** > > Some shortcuts may not work in every combination of terminal emulator, SSH session, or terminal multiplexer (such as tmux). See [Terminal support](/vibe/code/cli/terminal-support) for recommended terminals and workarounds. | Shortcut | Action | |---|---| | `Enter` | Submit the message. | | `Ctrl+J`, `Alt+Enter`, or `Shift+Enter` | Insert a new line. `Shift+Enter` works only in terminals that report it. | | `Ctrl+C` | If text is selected, copy it. Otherwise, clear the input. With an empty input, deny the pending approval, remove the newest queued message, or interrupt the agent. When nothing is running, press twice to quit. | | `Ctrl+D` | Delete the character to the right. With an empty input, press twice to quit, or once when `ask_confirmation_on_exit = false`. | | `Ctrl+Z` | Suspend the CLI (macOS and Linux). | | `Escape` | Interrupt the current operation or close the open dialog. | | `Escape` twice | Open rewind to go back to a previous message. With text in the input, clear the input instead. | | `Ctrl+O` | Toggle tool output. | | `Ctrl+G` | Edit the current input in an external editor. | | `Ctrl+N` | Focus the status rail; press a letter to open an item. | | `Ctrl+S` | Outside history search, stash the input draft and clear the input. The draft comes back after you send your next message. Press `Ctrl+S` again to swap the input with the stash. | | `Ctrl+R` | Search your prompt history. `Up`/`Ctrl+R` move to older matches, `Down`/`Ctrl+S` to newer ones, `Enter` loads the match into the input, and `Escape` restores your draft. | | `Ctrl+T` | Start or stop voice recording when voice mode is on. `Escape` cancels the recording. | | `Ctrl+Y` | Copy the current selection (macOS and Linux). With nothing selected, paste back the text last deleted with `Ctrl+K`, `Ctrl+U`, `Ctrl+W`, or `Alt+D`. | | `Ctrl+Shift+C` or `Cmd+C` | Copy the current selection. | | `Shift+Tab` | Cycle through agents. | | `Shift+Up` | Scroll the chat up. | | `Shift+Down` | Scroll the chat down. | | `Cmd+\` or `Alt+\` | Toggle the todo list panel. | | `Ctrl+\` | Toggle the debug console. | To edit the prompt with vim Normal and Insert modes, set `vim_keybindings = true`. The input starts in Insert mode, and `Escape` switches to Normal mode. To interrupt the agent from Insert mode, press `Ctrl+C`. You can also click tool approval options, question options, and picker entries, and drag scrollbars with the mouse. Click the model on the input box's top border to open `/model`, or the token counter in the footer to open `/context`. Click a tool group, a tool call, or a "Thought" row to expand or collapse it. When you scroll, the prompt of the current exchange stays pinned at the top of the chat: click it to scroll back to it. Drag to select text: double-click selects a word, and triple-click selects a paragraph. Vibe copies the selection when you release the mouse, unless you set `autocopy_to_clipboard = false`. To select and copy with your terminal instead, set `enable_mouse_capture = false` (see [Select and copy text](/vibe/code/cli/terminal-support#select-and-copy-text)). --- # Configuration Source: /vibe/code/cli/configuration > Find, open, and validate the config.toml files of the Vibe Code CLI, and set agents, models, MCP servers, skills, tools, and hooks. The Vibe Code CLI is configured through a **`config.toml` file**. This page explains where the file lives, how to open it, and the most common settings you'll touch. > **Info:** > > For an exhaustive list of every key in `config.toml` and the agent-definition files, see the [Configuration reference](/vibe/code/cli/configuration-reference). ### Configuration file locations The CLI merges two `config.toml` files: 1. **Project-level**: the closest `.vibe/config.toml`, found by walking up from the working directory, without going past your home directory. 2. **User-level**: `~/.vibe/config.toml`. Project settings override the same user settings, and anything the project file doesn't set comes from the user file. Project configuration is loaded only when its folder is [trusted](/vibe/code/safety-approvals-permissions#trusted-folders). `/config` saves changes to the user file by default. Use **Save to** in the settings editor to save to the project file or to the current session only. ### Open your configuration file Open `~/.vibe/config.toml` with your default editor: ```bash # macOS open ~/.vibe/config.toml # Linux xdg-open ~/.vibe/config.toml # Windows (PowerShell) Invoke-Item ~\.vibe\config.toml ``` You can also open the configuration menu from inside a session with the `/config` slash command. ### Check your configuration At startup, Vibe warns about settings it doesn't use, such as a misspelled key, and suggests the right name. To refuse to start instead, for example in CI, set `strict_config = true` or `VIBE_STRICT_CONFIG=1`. To validate `config.toml` in your editor, `vibe config schema` prints a JSON schema of every setting. ### Vibe home directory By default, the CLI stores its configuration and state in `~/.vibe/`. Override the location with the `VIBE_HOME` environment variable: ```bash export VIBE_HOME="/path/to/custom/vibe/home" ``` `VIBE_HOME` affects the location of: - `config.toml`: main configuration. - `.env`: API keys and provider credentials. - `agents/`: custom agent profiles. - `prompts/`: custom system prompts. - `skills/`: custom skills. - `plugins/`: user-level [plugins](/vibe/code/cli/plugins). - `logs/`: session and application logs. Vibe no longer loads custom Python tools from `~/.vibe/tools/` or `./.vibe/tools/`, and shows a warning at startup for each file there. To keep a tool, ask Vibe to turn it into a [skill](/vibe/code/cli/skills). ### Working directory Use `--workdir` to point the CLI at a project that is not your current directory: ```bash vibe --workdir /path/to/project ``` Use `--add-dir` to give the agent access to an extra directory for a single session. Repeat the flag for several directories. Vibe trusts each directory for the session, loads its `AGENTS.md` and `.vibe/` configuration, and lets the agent read and edit files there without the outside-workdir prompt. ### Common configuration sections `config.toml` accepts many top-level keys and table sections. The most common ones are listed here, each one linking to a dedicated page. #### Default agent Set the default agent: ```toml default_agent = "ask" ``` This applies to both interactive and programmatic sessions. When unset, Vibe uses `accept-edits`. See [Agents](/vibe/code/cli/agents). #### Providers and models Define provider presets, model presets, and the active model. Vibe ships with several built-in models. `/model` lists them, grouped by where they come from: your organization's admin configuration, experiments, the model catalog, then your own configuration. The following chat-capable models are available through Mistral's API (la Plateforme). Use the **model ID** as the `name` value in a `[[models]]` block with `provider = "mistral"`, then select it with `/model` or `active_model`: | Model | Model ID | Best for | |---|---|---| | Mistral Large 4 | `mistral-large-4-0` | Flagship reasoning and code | | Z.ai GLM 5.3 | `zai-glm-5-3` | Advanced reasoning and code | | Z.ai GLM 5.3 Flash | `zai-glm-5-3-flash` | Fast multimodal reasoning and code | | Mistral Medium 3.5 | `mistral-medium-latest` | Balanced reasoning and code | Vibe uses Mistral Large 4 by default. To stay on Mistral Medium 3.5, or if your own Mistral server doesn't offer Large 4, set `active_model` to its built-in alias, `"mistral-medium-3.5"`. You can also pin a specific version by using its versioned model ID instead of a `-latest` alias (for example, `mistral-medium-3-5` instead of `mistral-medium-latest`). See the [models overview](/models) for all available versions. To use a model through a third-party provider such as OpenRouter, define a custom provider and model preset: ```toml active_model = "ml4-openrouter" [[providers]] name = "openrouter" api_base = "https://openrouter.ai/api/v1" api_key_env_var = "OPENROUTER_API_KEY" api_style = "openai" backend = "generic" [[models]] name = "mistralai/mistral-large-4-0" provider = "openrouter" alias = "ml4-openrouter" ``` See [API keys and profiles](/vibe/code/cli/api-keys-profiles). Third-party model servers must report token usage in streamed replies (`stream_options.include_usage`). For a model Vibe doesn't know, set `max_context_length` in its preset. See [Models](/vibe/code/cli/configuration-reference#models-models). #### MCP servers Add Model Context Protocol servers under `mcp_servers`. See [MCP servers](/vibe/code/cli/mcp-servers). #### Skills Enable, disable, or add skill paths: ```toml skill_paths = ["/path/to/custom/skills"] enabled_skills = ["code-review", "test-*"] disabled_skills = ["experimental-*"] ``` `enabled_skills` and `disabled_skills` interact as follows: - If `enabled_skills` is **set and non-empty**, only skills whose name matches a pattern in that list are available. - Otherwise, every discovered skill is available, minus any skill whose name matches a pattern in `disabled_skills`. See [Skills](/vibe/code/cli/skills). #### Tool permissions and filters Restrict which tools the agent can use: ```toml enabled_tools = ["serena_*"] disabled_tools = ["bash"] ``` Tool filters support **exact names**, **glob patterns**, and **regex** with the `re:` prefix. Per-tool permissions can also be set in `[tools.]` blocks. See [Safety, approvals, and permissions](/vibe/code/safety-approvals-permissions#per-tool-permissions). To refuse file and shell access outside the working directory instead of asking each time, set `outside_workdir = "deny"`. See [Access outside the working directory](/vibe/code/safety-approvals-permissions#access-outside-the-working-directory). #### Hooks Run your own shell commands at points in a session, such as before or after tool calls, before or after each turn or model call, or when a session starts or ends, to gate, audit, or rewrite agent behavior. Declare hooks in a separate `hooks.toml` file. See [Hooks](/vibe/code/cli/hooks). #### Update and telemetry settings Control update checks, notifications, and telemetry: ```toml enable_update_checks = true enable_notifications = true enable_telemetry = true ``` | Setting | Default | Details | |---|---|---| | `enable_update_checks` | `true` | Vibe checks for a new release once a day and offers to install it at the next launch. **We strongly recommend keeping this enabled** so you always run the latest fixes. You can also run `vibe update` at any time. | | `enable_notifications` | `true` | Rings the terminal bell and updates the terminal title when Vibe finishes a task or needs your input (for example, when an approval prompt is waiting) while the terminal isn't focused. Your terminal may show this as a system notification. | | `enable_telemetry` | `true` | Sends anonymous usage and error telemetry to Mistral. Used to improve the product (crash diagnostics, feature usage, performance). No prompts, file contents, or model outputs are sent. Disable if you require an offline-only setup. A project `.vibe/config.toml` or an agent file can turn it off, but not back on. When your Mistral provider's `api_base` is outside `mistral.ai`, as with a self-hosted deployment, Vibe never sends crash reports to Mistral. | #### Corporate certificate authorities By default, Vibe validates HTTPS certificates against its bundled certificate roots. It applies strict validation rules, so a private certificate authority (CA) that lacks some standard extensions can be rejected. If your organization installs its CA in the operating system trust store, tell Vibe to use that store: ```toml enable_system_trust_store = true ``` This setting also applies to `vibe update`, so updates work behind TLS-inspecting proxies. Vibe also loads the certificates in the `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables as additional trust anchors. To configure a proxy and certificates from inside a session, run `/proxy-setup`. ### Admin-managed configuration Your Organization or Workspace administrators can distribute a Vibe Code CLI configuration to all users. Admin-managed settings take precedence over command-line flags, environment variables, and the project and user `config.toml` files. When admin config is active: - Admin-managed settings are read-only in `/config`: you can't edit or reset them. The settings editor's **Where it's set** panel lists your administrator as a source. - Sessions follow admin config from their first message. The CLI never writes it to your local `config.toml`. - If admin config can't be applied, for example because it's invalid or doesn't fit your project, the session runs on your local configuration instead. The CLI shows: `Your administrator-managed configuration could not be applied: `. ### Configuration precedence When the same setting is defined in multiple places, the CLI applies them in this order, from **highest to lowest priority**: 1. **Admin config**, when your Organization or Workspace provides one. See [Admin config](/vibe/code/cli/admin-config). 2. **The active agent's settings**, from its agent file. See [Agents](/vibe/code/cli/agents). 3. **Command-line flags** (for example, `--enabled-tools`) and changes saved to the current session from `/config`. 4. **`VIBE_` environment variables**, which override the config key of the same name (for example, `VIBE_ACTIVE_MODEL`). 5. **Project** `.vibe/config.toml`. 6. **User** `~/.vibe/config.toml`. --- # Configuration reference Source: /vibe/code/cli/configuration-reference > Look up every key accepted by config.toml and agent files, from providers and models to MCP servers, tool permissions and sensitive files. An exhaustive index of every key accepted by `config.toml` and the agent-definition files. Keys are grouped by section, each linking to the page that explains the concept in depth. Use this as a lookup; use [Configuration](/vibe/code/cli/configuration) to learn how the file works. ### Top-level keys All keys live at the root of `config.toml` unless noted. | Key | Type | Default | Description | |---|---|---|---| | `default_agent` | string | `"accept-edits"` | Agent used when you don't pass `--agent`, in interactive and programmatic sessions. See [Agents](/vibe/code/cli/agents) | | `active_model` | string | | Model alias currently in use. Set to a `[[models]]` `alias` or a built-in model ID | | `allowed_models` | array<string> | | Allow-list of model name patterns (exact, glob, or `re:` regex), matched against the model names sent to the inference API, not their aliases. When non-empty, only matching models are selectable | | `compaction_model` | table | | Model that summarizes the conversation during `/compact` and automatic compaction, at its own thinking level. Must use the active model's provider; otherwise Vibe warns and uses the active model. Defaults to the active model | | `auto_compact_threshold` | number | | Token count that triggers automatic compaction for models that don't set their own. A model's own `auto_compact_threshold` always wins, including the one built into Mistral Large 4 and the ones Mistral's model catalog sets. Must be positive and fit the model's context window. When unset, Vibe derives it from each model's context window | | `compaction_max_output_tokens` | number | `0` | Output token cap for compaction requests, on any provider. Vibe keeps it within the compaction model's maximum output and the room its context window leaves. `0` sends a cap only to providers that require one | | `compaction_reasoning_limit_tokens` | number | `32000` | Approximate reasoning tokens after which Vibe abandons the first compaction request for a shorter fallback request. `0` disables the limit | | `agent_max_output_tokens` | number | `0` | Output token cap for agent and subagent requests, on any provider. Vibe keeps it within the model's maximum output and the room its context window leaves. `0` sends a cap only to providers that require one | | `output_limit_retries` | number | `6` | Number of times per turn Vibe discards an answer cut off at the output token limit and asks for it again, with feedback asking for a shorter response. `0` ends the turn on the first cut-off answer | | `vision_model` | table | | Vision-capable model that describes attached images when the active model doesn't support images. Defaults to any vision-capable model on the provider of the active model. Set it to use a model from another provider | | `enabled_agents` | array<string> | | Allow-list of agent name patterns. When non-empty, only matching agents are available | | `disabled_agents` | array<string> | | Deny-list of agent name patterns, applied when `enabled_agents` is empty | | `agent_paths` | array<string> | | Extra directories to discover custom agents from | | `system_prompt_id` | string | `"cli"` | System prompt to use. Set it to the name of a Markdown file in `~/.vibe/prompts/` or `.vibe/prompts/`, without the `.md` extension | | `compaction_prompt_id` | string | `"compact"` | Prompt used to summarize the conversation during compaction. Resolved like `system_prompt_id` | | `title_prompt_id` | string | `"session_title"` | Prompt used to generate session titles. Resolved like `system_prompt_id` | | `skill_paths` | array<string> | | Extra directories to discover skills from. See [Skills](/vibe/code/cli/skills) | | `enabled_skills` | array<string> | | Allow-list of skill name patterns (exact, glob, or `re:` regex). When non-empty, only matching skills load | | `disabled_skills` | array<string> | | Deny-list of skill name patterns, applied when `enabled_skills` is empty | | `disabled_plugins` | array<string> | | Names of installed plugins to turn off. A disabled plugin stays installed but adds nothing to sessions. See [Turn plugins on or off](/vibe/code/cli/plugins#turn-plugins-on-or-off) | | `enabled_plugins` | array<string> | | Names of off-by-default plugins to turn on. `disabled_plugins` wins when a plugin is in both lists | | `enabled_tools` | array<string> | | Allow-list of tool name patterns. See [Safety, approvals, and permissions](/vibe/code/safety-approvals-permissions#per-tool-permissions) | | `disabled_tools` | array<string> | | Deny-list of tool name patterns, applied after `enabled_tools` | | `outside_workdir` | string | `"ask"` | `"ask"` prompts before a file or shell tool reaches outside the working directory. `"deny"` refuses the call, and the agent keeps working. See [Access outside the working directory](/vibe/code/safety-approvals-permissions#access-outside-the-working-directory) | | `enable_mcp` | boolean | `true` | Allows MCP servers. When `false`, Vibe blocks adding, removing, enabling, signing in to, and loading tools from MCP servers, including servers provided by plugins. See [Admin config](/vibe/code/cli/admin-config#block-mcp-servers) | | `enable_connectors` | boolean | `true` | Allows [connectors](/vibe/code/cli/connectors), including the built-in web search. See [Block connectors](/vibe/code/cli/admin-config#block-connectors) | | `enable_auto_approve` | boolean | `true` | Allows the auto-approve mode. When `false`, Vibe hides the `auto-approve` agent and every custom agent with `safety = "yolo"`, and ignores `--auto-approve`, `--yolo`, and `bypass_tool_permissions`. Per-tool permissions still apply. Meant for [admin config](/vibe/code/cli/admin-config#block-auto-approve) | | `enable_subagents` | boolean | `true` | Lets the agent delegate work to subagents. See [Agents](/vibe/code/cli/agents#custom-subagents) | | `max_subagents` | number | `32` | Maximum number of subagents alive at once. Past this limit, Vibe closes the subagent that has waited longest to make room. Each session can create at most 128 subagents | | `max_concurrent_subagents` | number | `32` | Maximum number of subagents running at the same time | | `enable_background_processes` | boolean | `true` | Lets the agent run commands in the background. When `false`, commands run to completion in the foreground. On macOS and Linux, what a shell command starts with `&` stops when the command exits | | `enable_update_checks` | boolean | `true` | Checks once a day for a new release and offers to install it | | `enable_notifications` | boolean | `true` | Rings the terminal bell and updates the terminal title when Vibe finishes or needs your input while the terminal isn't focused | | `enable_telemetry` | boolean | `true` | Sends anonymous usage and error telemetry to Mistral. Disable for offline-only setups. A project config or agent file can turn it off, but not back on | | `enable_system_trust_store` | boolean | `false` | Validates HTTPS certificates against the operating system trust store instead of Vibe's bundled roots. See [Corporate certificate authorities](/vibe/code/cli/configuration#corporate-certificate-authorities) | | `max_goal_token_budget` | number | | Highest token budget a [`/goal`](/vibe/code/cli/work-with-cli#work-toward-a-goal) can set. A goal set without a budget gets this one. When unset, goals can have any budget or none | | `api_stream_idle_timeout` | number | `300` | Seconds of silence, once the model starts answering, before Vibe treats the response as stalled and retries it | | `ask_confirmation_on_exit` | boolean | `true` | Asks for a second `Ctrl+D` before quitting. `Ctrl+C` always asks | | `autocopy_to_clipboard` | boolean | `true` | Copies text to the clipboard when you release a mouse selection | | `enable_mouse_capture` | boolean | `true` | Captures the mouse for clicks, scrolling, and selection. Set to `false` to select and copy with your terminal instead. See [Select and copy text](/vibe/code/cli/terminal-support#select-and-copy-text) | | `show_dangerous_directory_warning` | boolean | `true` | Warns at startup when Vibe runs in a risky folder, such as your home directory | | `show_thinking_nodes` | boolean | `true` | Shows the model's reasoning in the chat, as a collapsible "Thought" row | | `enable_file_autocomplete` | boolean | `true` | Suggests files as you type an `@` mention. When `false`, Vibe also skips building the file index in the background | | `file_watcher_for_autocomplete` | boolean | `true` | Refreshes `@` file suggestions and picks up new or edited skills when files change. When `false`, Vibe builds the file index once without watching the filesystem | | `cursor_blink` | boolean | `true` | Blinks the input cursor. Set to `false` for a steady cursor | | `vim_keybindings` | boolean | `false` | Edits the prompt with vim Normal and Insert modes. The input starts in Insert mode, and `Escape` switches to Normal mode | | `enable_sticky_prompt` | boolean | `true` | Pins the prompt of the current exchange at the top of the chat while you scroll. Click it to scroll back to it | | `enable_pr_monitoring` | boolean | `true` | Tracks the pull requests and merge requests of the session with `gh` or `glab`, shows their status in the footer, and lists them in `/pr` | | `theme` | string | `"auto"` | Terminal theme. `auto` follows the terminal background or the OS light or dark preference. `mistral-dark` and `mistral-light` use the Mistral brand palette. Change it with `/theme` | | `show_subagent_status_list` | boolean | `true` | Shows the list of running subagents above the prompt | | `worktree_limit` | number | `15` | Maximum number of recent Vibe-managed git worktrees kept locally | | `worktree_copy_on_write` | boolean | `true` | macOS only. Creates new worktrees of a trusted repository from a template checkout, so they take less disk space and are created faster. Sets `extensions.worktreeConfig` in the repository's `.git/config`. Vibe renames `experimental_worktree_copy_on_write` to this key at startup | | `log_level` | string | `"WARNING"` | Log level for `~/.vibe/logs/vibe.log`: `DEBUG`, `INFO`, `WARNING`, `ERROR`, or `CRITICAL`. Change it with `/log-level` | | `strict_config` | boolean | `false` | Refuses to start when the configuration has settings Vibe doesn't use, such as misspelled keys. See [Check your configuration](/vibe/code/cli/configuration#check-your-configuration) | | `experimental_enable_mistral_mcp_connector` | boolean | `false` | Experimental. Adds the built-in Mistral MCP connector and its tools to [connectors](/vibe/code/cli/connectors) | | `experimental_enable_model_catalog` | boolean | `false` | Experimental. Fetches Mistral's curated model catalog at session start and adds its models to the model list. Your `[[models]]` presets still override their settings. When you haven't picked a model, Vibe runs the catalog's recommended model, unless an experiment assigns you another one | | `[[providers]]` | table array | | Provider presets. Fields listed below. See [API keys and profiles](/vibe/code/cli/api-keys-profiles) | | `[[models]]` | table array | | Model presets. Fields listed below. See [API keys and profiles](/vibe/code/cli/api-keys-profiles) | | `[[mcp_servers]]` | table array | | MCP server definitions. Fields listed below. See [MCP servers](/vibe/code/cli/mcp-servers) | | `[utility_models]` | table | | Models for background tasks such as the smart approve classifier and session titles. Fields listed below | | `[session_logging]` | table | | Session storage settings. Fields listed below | `displayed_workdir`, `context_warnings`, `raise_on_compaction_failure`, `include_model_info`, `include_prompt_detail`, `api_connect_timeout`, `api_write_timeout`, and `api_pool_timeout` are deprecated. Vibe still accepts them in existing files, but they have no effect. `enable_auto_update` has no effect either: use `enable_update_checks`. Vibe also ignores `experimental_enable_pr_monitoring` and `experimental_enable_pr_discovery`: use `enable_pr_monitoring`. Vibe no longer loads custom Python tools, and removes `tool_paths` from `config.toml` at startup. ### Providers (`[[providers]]`) One `[[providers]]` table per provider preset. | Key | Type | Default | Description | |---|---|---|---| | `name` | string | Required | Provider preset identifier, referenced by a `[[models]]` `provider` | | `api_base` | string | Required | Base URL for the provider's API | | `api_key_env_var` | string | | Environment variable name holding the API key. Secrets must use this form in admin config | | `api_style` | string | `"openai"` | API style: `"openai"`, `"openai-responses"`, `"reasoning"`, `"anthropic"`, or `"vertex-anthropic"` | | `backend` | string | `"generic"` | Backend type: `"generic"` or `"mistral"` | | `region` | string | | Google Cloud region for Vertex AI (`api_style = "vertex-anthropic"`). Requires `project_id` | | `project_id` | string | | Google Cloud project for Vertex AI (`api_style = "vertex-anthropic"`) | | `preserve_api_base` | boolean | `false` | Keeps the configured `api_base` when sign-in or `/reload` would replace it with the one your deployment advertises. Use it when you reach the API through a proxy. See [Check the `/whoami` domains](/vibe/code/cli/admin-config#check-the-whoami-domains) | | `[providers.extra_headers]` | table | | Subtable of extra HTTP headers, for example `"x-acme-tenant" = "engineering"` | ### Models (`[[models]]`) One `[[models]]` table per model preset. | Key | Type | Default | Description | |---|---|---|---| | `name` | string | Required | Model ID, for example `mistral-medium-latest` | | `provider` | string | Required | References a `[[providers]]` `name` | | `alias` | string | `name` | Local alias used by `active_model`. Defaults to `name` when omitted | | `display_name` | string | `alias` | Label shown in the model picker. Falls back to `alias` when unset | | `temperature` | number | `0.2` | Sampling temperature | | `top_p` | number | | Nucleus sampling, between `0` (excluded) and `1`. Unset leaves the provider's default | | `max_output_tokens` | number | | The model's maximum output tokens. Providers that require an output limit, such as Anthropic, receive it as the cap unless `agent_max_output_tokens` or `compaction_max_output_tokens` is set | | `input_price` | number | | Per-million input token cost, used to cap costs in programmatic mode | | `output_price` | number | | Per-million output token cost, used to cap costs in programmatic mode | | `cached_input_price` | number | | Per-million cached input token cost. Omit to bill cached input at `input_price` | | `thinking` | string | | Default thinking level for the model: `off`, `low`, `medium`, `high`, `xhigh`, `max`, or a level from `thinking_levels`. Vibe sends it to the provider as written, with a warning when it's none of these. When unset, the model's lowest level | | `thinking_levels` | array<string> | | Thinking levels `/thinking` offers for this model, lowest first. Can include levels specific to the provider, such as `["low", "turbo"]`. When omitted, the model's known levels | | `supports_images` | boolean | | Whether the model is vision-capable. When `true`, you can `@`-mention images | | `max_context_length` | number | | Context window in tokens. Drives automatic compaction | | `auto_compact_threshold` | number | | Token count that triggers automatic compaction. Overrides the top-level `auto_compact_threshold` and the default, derived from `max_context_length` | When these fields are unset, Vibe takes them from the provider or from its list of known models. For an unknown model, it assumes a 262,144-token context window and shows a warning. ### Utility models (`[utility_models]`) Models for background tasks, one key per task. Each value is the `alias` of a `[[models]]` preset, or `"active"` to use the session's model. When a key is unset, Vibe uses a small, fast Mistral model if your Mistral provider serves one, and the session's model otherwise. If an alias doesn't match a configured model, or `allowed_models` excludes it, Vibe shows a warning and uses that automatic selection instead. | Key | Type | Default | Description | |---|---|---|---| | `smart_approve` | string | Automatic | Model that classifies tool calls for the `smart-approve` agent. See [Choose the smart approve model](/vibe/code/safety-approvals-permissions#choose-the-smart-approve-model) | | `title` | string | Automatic | Model that generates session titles | ### Session logging (`[session_logging]`) Controls where Vibe saves sessions. `--continue`, `--resume`, and `/resume` need saved sessions. See [Work with the CLI](/vibe/code/cli/work-with-cli#continue-or-resume-sessions). | Key | Type | Default | Description | |---|---|---|---| | `enabled` | boolean | `true` | Saves sessions to disk | | `save_dir` | string | `~/.vibe/logs/session` | Directory where sessions are saved | | `generate_titles` | boolean | `true` | Generates session titles in the background. When `false`, Vibe shows the first message instead | ### MCP servers (`[[mcp_servers]]`) One `[[mcp_servers]]` table per server. Required fields depend on the `transport` (`http`, `streamable-http`, or `stdio`). | Key | Type | Default | Description | |---|---|---|---| | `name` | string | Required | Short alias; prefixes this server's tool names | | `transport` | string | Required | One of `http`, `streamable-http`, or `stdio` | | `url` | string | | Base URL for HTTP transports | | `command` | string | | Command for the stdio transport | | `args` | array<string> | | Arguments for the stdio transport | | `env` | table | | Environment variables passed to the stdio process | | `startup_timeout_sec` | number | `10` | Seconds to wait for the server to start | | `tool_timeout_sec` | number | `60` | Seconds to wait for a tool call to complete | | `disabled` | boolean | `false` | Hides all tools from this server. `/mcp` toggles it | | `disabled_tools` | array<string> | | Tool names, without the server prefix, to hide from this server | | `[mcp_servers.auth]` | table | | Authentication for HTTP transports. Fields listed below | The `[mcp_servers.auth]` table sets how Vibe authenticates to an HTTP server: | Key | Type | Default | Description | |---|---|---|---| | `type` | string | `"static"` | `"static"` for headers or an API key, `"oauth"` for browser sign-in | | `headers` | table | | `static` only. Extra HTTP headers | | `api_key_env` | string | | `static` only. Env var holding the API key. Distinct from providers' `api_key_env_var` | | `api_key_header` | string | `"Authorization"` | `static` only. Header name to set with the API key | | `api_key_format` | string | `"Bearer {token}"` | `static` only. Format string for the header value | | `scopes` | array<string> | Required for `oauth` | `oauth` only. OAuth scopes to request. Pass an empty list to accept the server's default | | `client_id` | string | | `oauth` only. Pre-registered public client ID, with `http://127.0.0.1:/callback` as its redirect URI. Can't be combined with `client_metadata_url`. Without either, Vibe registers a client dynamically | | `client_metadata_url` | string | | `oauth` only. HTTPS URL of a client metadata document, with a path other than `/`. The document must list `http://127.0.0.1:/callback` in `redirect_uris`. Used only if the server advertises `client_id_metadata_document_supported`; otherwise Vibe registers a client dynamically. Can't be combined with `client_id` | | `redirect_port` | integer | `47823` | `oauth` only. Local port for the sign-in callback, from `1024` to `65535`. Change it if `47823` is already in use | Vibe still accepts `headers`, `api_key_env`, `api_key_header`, and `api_key_format` at the top level of `[[mcp_servers]]` and treats them as static authentication. ### Connectors (`[[connectors]]`) One `[[connectors]]` table per [connector](/vibe/code/cli/connectors) you want to change. `/connectors` writes these entries when you enable or disable a connector or tool. | Key | Type | Default | Description | |---|---|---|---| | `name` | string | Required | Connector name, as listed in `/connectors` (for example, `web_search`) | | `disabled` | boolean | `false` | Hides all tools from this connector | | `disabled_tools` | array<string> | | Tool names, without the connector prefix, to hide from this connector | ### Per-tool permissions (`[tools.]`) `` is a built-in tool (`read_file`, `bash`, etc.), an MCP tool named `{server_name}_{tool_name}`, or a connector tool named `connector_{connector_name}_{tool_name}`. One block per tool. | Key | Type | Default | Description | |---|---|---|---| | `permission` | string | | `"always"` to auto-allow the tool, `"ask"` to prompt before use, `"never"` to block it | | `allowlist` | array<string> | Read-only commands for `bash` | Allowed without approval. For `bash`, command prefixes such as `["git status", "pnpm test"]`. For `read_file`, `write_file`, and `edit`, globs matched against absolute paths, such as `["/home/me/project/docs/*"]`. Replaces the default list | | `denylist` | array<string> | Interactive commands for `bash` | Always denied. For `bash`, command prefixes such as `["rm -rf"]`. For `read_file`, `write_file`, and `edit`, globs matched against absolute paths. Replaces the default list | | `sensitive_patterns` | array<string> | `["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~"]` for file tools; `["sudo"]` for `bash` and `windows_shell` | Asks for approval on a matching file or command, even when `permission = "always"`. Setting this list **replaces** the defaults. See [Sensitive file protection](#sensitive-file-protection-sensitive_patterns) | | `sensitive_file_patterns` | array<string> | Same `.env` globs as the file tools | Shell tools only. Asks for approval before a shell command reads a matching file, even when the command is allowlisted. `[]` turns the check off. See [Sensitive file protection](#sensitive-file-protection-sensitive_patterns) | | `outside_workdir` | string | Top-level `outside_workdir` | `"ask"` or `"deny"` for this tool's access outside the working directory. Overrides the top-level setting | | `default_timeout` | number | | Shell tools only. Default command timeout, in seconds. Without `max_timeout_seconds`, at most `300` | | `max_timeout_seconds` | number | | Shell tools only. Longest command timeout the agent can request, in seconds. Set it together with `default_timeout` | ### Sensitive file protection (`sensitive_patterns`) `sensitive_patterns` makes Vibe ask for approval before a tool uses a sensitive file or runs a sensitive command, even when the tool's `permission` is `"always"`. Each approval covers one file for the rest of the session. Approving one sensitive file doesn't approve the others. Patterns match differently depending on the tool: - `read_file`, `write_file`, `edit`: patterns are globs matched **case-insensitively against the resolved absolute file path**, for example `"**/.env"` or `"**/secrets/**"`. - `bash`, `windows_shell`: patterns match the **first token of the command only** (default `["sudo"]`), so they cannot distinguish subcommands such as `git commit` from `git status`. On Windows, shell patterns are matched with alias resolution. Shell tools also check the files a command reads against their `sensitive_file_patterns`, the `.env` globs by default. A command such as `cat .env` asks for approval even when `cat` is allowlisted. When Vibe can't tell which files a command reads, for example with variables, recursive reads, or `sh -c`, the approval covers only that exact command. > **Warning:** > > Setting `sensitive_patterns` **replaces** the built-in defaults instead of adding to them. To keep the default protection for `.env` and `.envrc` files, include the six defaults in your list, as in the following example. The following configuration keeps the defaults and adds a `secrets` directory: ```toml [tools.read_file] sensitive_patterns = ["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~", "**/secrets/**"] ``` Each tool has its own list. Set `sensitive_patterns` separately for `read_file`, `write_file`, and `edit`. The agent searches files through the shell, so searches follow the shell tool's `sensitive_file_patterns`. #### Evaluation order For file-based tools, Vibe evaluates permissions in this order: 1. Scratchpad: always allowed 2. `denylist`: always denied 3. `allowlist`: always allowed (takes precedence over `sensitive_patterns`) 4. `sensitive_patterns`: ask 5. Outside the working directory: ask (or deny, per `outside_workdir`) 6. Otherwise: the tool's default `permission` #### Limitations `sensitive_patterns` asks for approval. It doesn't block access, so keep these limits in mind: - Only the `denylist` blocks access. To enforce a hard block, run Vibe in a sandbox. - The `sensitive_patterns` of the file tools don't apply to shell tools, which use their own `sensitive_file_patterns`. A script or program the agent runs can still read any file. - A session approval with a wildcard can also cover reads of sensitive files. - `--yolo` and `bypass_tool_permissions` skip every approval prompt, including these ones. To prevent this, [block auto-approve](/vibe/code/cli/admin-config#block-auto-approve) in the admin configuration. #### Example admin configuration To apply the same patterns to every user, set them in the [admin configuration](/vibe/code/cli/admin-config). The following example keeps the defaults and adds custom patterns for each tool: ```toml [tools.read_file] sensitive_patterns = ["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~", "**/secrets/**", "**/*.pem"] [tools.write_file] sensitive_patterns = ["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~", "**/secrets/**", "**/*.pem"] [tools.edit] sensitive_patterns = ["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~", "**/secrets/**", "**/*.pem"] [tools.bash] sensitive_patterns = ["sudo"] sensitive_file_patterns = ["**/.env", "**/.env.*", "**/.env~", "**/.envrc", "**/.envrc.*", "**/.envrc~", "**/secrets/**", "**/*.pem"] ``` ### Agent definition files These keys live in `~/.vibe/agents/.toml` or `./.vibe/agents/.toml`, **not in `config.toml`**. They define custom agents and subagents. Most top-level keys above (`active_model`, `enabled_tools`, `disabled_tools`, `[tools.*]` blocks) can also be set inside an agent file to override the global config for that agent. | Key | Type | Default | Description | |---|---|---|---| | `agent_type` | string | `"agent"` | `"agent"` (user-facing, selectable via `--agent`) or `"subagent"` (delegation-only) | | `display_name` | string | | Human-readable label | | `description` | string | | Free-text description. Required for subagents | | `instructions` | string | | Prompt text written inline. For an agent, appended after the system prompt. For a subagent, replaces the `system_prompt_id` prompt | | `safety` | string | `"neutral"` | Visual hint: `safe`, `neutral`, `destructive`, `smart`, or `yolo`. Changes the color of the agent's mode label on the input box; does not enforce permissions. `enable_auto_approve = false` hides `yolo` agents | | `system_prompt_id` | string | | Names a Markdown prompt file in `./.vibe/prompts/` (trusted folders only) or `~/.vibe/prompts/`, without the `.md` extension | | `active_model` | string | | Model alias for this agent or subagent (same key as global config) | | `enabled_tools` | array<string> | | Tool allow-list for this agent | | `disabled_tools` | array<string> | | Tool deny-list for this agent | See [Agents](/vibe/code/cli/agents) for built-in agents and full examples. ### Environment variables Not `config.toml` keys, but part of the configuration model. See [Configuration precedence](/vibe/code/cli/configuration#configuration-precedence) for where `VIBE_` variables sit. | Variable | Purpose | |---|---| | `VIBE_HOME` | Overrides the `~/.vibe/` home directory for all state (config, prompts, agents, skills, logs) | | `VIBE_` | Overrides the top-level config key ``, for example `VIBE_ACTIVE_MODEL`. Use `__` for nested keys. Vibe ignores and logs a value it can't parse | | `VIBE_STRICT_CONFIG` | Set to `1` for the same effect as `strict_config = true` | | `VIBE_TERMINAL_KEY` | Names the terminal that `--continue` follows. Set it to an empty value to ignore the terminal. See [Continue or resume sessions](/vibe/code/cli/work-with-cli#continue-or-resume-sessions) | | `VIBE_CUSTOM_CONSOLE_URL` | Set by administrators to pin the console used for browser sign-in. See [Pin the sign-in console](/vibe/code/cli/admin-config#pin-the-sign-in-console) | | `MISTRAL_API_KEY` | Primary Mistral API key | | `_API_KEY` | API key referenced by a `[[providers]]` `api_key_env_var` (for example `OPENROUTER_API_KEY`) | See [Configuration precedence](/vibe/code/cli/configuration#configuration-precedence) and [Admin config](/vibe/code/cli/admin-config) for how these layers combine. --- # Connectors Source: /vibe/code/cli/connectors > Use Mistral-managed connectors in the Vibe Code CLI, compare them with MCP servers, and list, enable or disable them in a session. Connectors give the Vibe Code CLI access to **supported first-party and third-party services** from inside a coding session. Unlike [MCP servers](/vibe/code/cli/mcp-servers), which you wire up yourself, Connectors are **Mistral-managed integrations**. > **Info:** > > For the full list of supported connectors and what each one can do, see [Connectors in Vibe Work](/vibe/work/web/connectors). Vibe Code and Vibe Work share the same integrations. ### Connectors vs. MCP servers Both expose tools to Vibe, but they're operated differently. Pick whichever fits the service you want to connect: | | Connectors | MCP servers | |---|---|---| | **Configured by** | Mistral, as integrated services | You, with `vibe mcp add` or in `config.toml` | | **Auth model** | Account or service login | OAuth sign-in, headers, environment variables, or API keys | | **Discoverability** | Curated, listed in the CLI | Anything that speaks MCP | | **Best for** | Common services with managed integrations | Custom tools, private servers, experimental tools | ### Manage connectors Connectors are detected and configured automatically. You can list, enable, disable, and inspect them from inside a CLI session. List all connectors and MCP servers: ```txt /connectors ``` (`/connectors` is an alias for `/mcp`.) From the list, with a connector highlighted: | Key | Action | |---|---| | `Enter` | Show the connector's tools, or connect it if it isn't connected. Connectors that need no sign-in, such as DeepWiki, connect directly | | `e` / `d` | Enable or disable the highlighted connector, or the highlighted tool in the tool list | | `r` | Refresh the list | | `/` | Search | | `Escape` | Go back or close | Vibe saves these choices to your configuration. When you connect, disconnect, or revoke a connector, every open session picks up the change at its next turn, without a restart. Pass a name to inspect the tools exposed by a specific connector: ```txt /connectors fetch_server ``` If `/connectors` says your API key only gives access to shared connectors, run `vibe --setup` and create a new API key from the link it shows to use your personal connectors. To turn off connectors entirely, set `enable_connectors = false` in `config.toml`. Your administrator can also block connectors in [admin config](/vibe/code/cli/admin-config#block-connectors). ### Stay in control - **Review what each connector can access** before authenticating. - **Prefer read-only or scoped access** when the task doesn't need write permissions. - **Revoke unused connectors** from the relevant service when you no longer need them. --- # Hooks Source: /vibe/code/cli/hooks > Run shell commands at points in the Vibe Code CLI lifecycle to block, audit or rewrite tool calls, prompts and model responses with hooks.toml. Hooks run your own shell commands at points in the Vibe Code CLI's lifecycle to **gate, audit, or rewrite** agent behavior. Use them to block dangerous tool calls or messages, rewrite tool arguments or prompts, add context for the model, check each model response, force the agent to retry an answer, or get notified when Vibe needs you. Declare them in a `hooks.toml` file and they take effect on the next run. ### Configuration file locations Hooks are declared in `hooks.toml`. The CLI looks in this order: 1. `./.vibe/hooks.toml` in the working directory (**project-level**, loaded first, **trusted folders only**). 2. `~/.vibe/hooks.toml` in your home directory (**user-level**, loaded second). When the same `name` appears in both files, the **project entry wins**. Project-level hooks load only when the working directory is [trusted](/vibe/code/safety-approvals-permissions#trusted-folders). Subagents inherit the parent's hook configuration, so policies apply transitively. #### Plugin hooks A [plugin](/vibe/code/cli/plugins) can declare hooks in its `ai.mistral.vibe/hooks.toml` file, with the same fields as `hooks.toml`. Vibe prefixes each one with the plugin name, such as `release-tools:audit-bash`, and lists it in `/plugins`. Plugin hooks run like the hooks in `hooks.toml`. For each event, hooks run in this order: `./.vibe/hooks.toml`, project plugins, `~/.vibe/hooks.toml`, then user plugins. A plugin hook runs in the session's [pinned copy](/vibe/code/cli/plugins#pinned-plugins) of the plugin, with `PLUGIN_ROOT` and `PLUGIN_DATA` set as for the plugin's MCP servers. Hooks in plugins written for Claude Code or Kimi Code don't run: Vibe reports them as not supported. ### Declare a hook Each hook is a `[[hooks]]` table: ```toml [[hooks]] name = "deny-rm-rf" type = "pre_tool" match = "bash" command = "uv run python /path/to/guard-bash" timeout = 60.0 strict = false description = "Reject dangerous shell commands." ``` | Field | Required | Details | |---|---|---| | `name` | yes | Unique identifier. Used to deduplicate between project and user files. | | `type` | yes | One of `pre_tool`, `post_tool`, `pre_agent`, `pre_llm`, `post_llm`, `post_agent`, `notification`, `session_start`, `session_end`. | | `command` | yes | Shell command to spawn. Receives the hook payload on `stdin`. On Windows, runs in Git Bash when available, otherwise in PowerShell, like the `bash` tool. | | `match` | no | What the hook runs for: the tool name for tool hooks, the agent name for `pre_agent`, `pre_llm`, `post_llm`, and `post_agent`, the notification type for `notification`, the source for `session_start`, and the reason for `session_end`. fnmatch glob, or regex with the `re:` prefix. Case-insensitive. Default: every value. | | `timeout` | no | Seconds before the hook is killed. Default: `60`. | | `strict` | `pre_tool`, `post_tool`, `pre_agent`, `pre_llm`, `post_llm` | When `true`, parse and runtime failures become denials (`pre_tool`), text clears (`post_tool`), blocked messages (`pre_agent`), or ended turns (`pre_llm`, `post_llm`) instead of warnings. Default: `false`. | | `description` | no | Free text shown in diagnostics. | ### Hook contract Vibe starts each hook with a UTF-8 JSON object on `stdin` that contains the session context: `session_id`, `parent_session_id`, `transcript_path`, `cwd`, and `hook_event_name`. Each hook type adds its own fields (see below). Hooks respond through their **exit code** and **stdout**. Use `stderr` for diagnostics and debug logs. | Exit / stdout | Effect | |---|---| | Exit `0`, empty `stdout` | Passthrough. | | Exit `0`, valid JSON object on `stdout` | Structured response (see fields below). | | Exit `0`, non-empty but non-conforming `stdout` | Hook failure. Warning by default; deny, clear, or block under `strict = true`. | | Non-zero exit, timeout, or spawn failure | Hook failure. Diagnostic taken from `stderr` (fallback to `stdout`, then the exit code). | Universal top-level fields in the JSON response: - **`system_message`** (string, optional) — shown to the user in the UI. - **`decision`** (`"allow"` | `"deny"`, optional, default `"allow"`) — the effect of `"deny"` depends on the hook type. - **`reason`** (string, optional) — accompanies `decision: "deny"`. - **`hook_specific_output`** (object, optional) — event-specific payload. Unknown JSON fields are tolerated at every level (forward-compatible). Fields that are not meaningful for the current hook type are silently ignored. On macOS and Linux, Vibe stops whatever a hook starts in the background with `&` when the hook exits. To leave a process running, start it in a new session: `setsid cmd &` on Linux, or `perl -MPOSIX -e 'POSIX::setsid(); exec @ARGV' cmd &` on macOS, which has no `setsid` command. ### `pre_tool` Fires per tool call, **before** the user permission prompt. The first deny skips the remaining `pre_tool` hooks for that call. **Receives** (in addition to the session context): `tool_name`, `tool_call_id`, `tool_input` (the model's raw arguments). `tool_name` is the full tool name, such as `file_system.bash`, or `mcp_.` for MCP tools, for example `mcp_linear.create_issue`. `match` accepts both full and short names, so `match = "bash"` works. Commands the agent starts in the background go through `process_start` instead of `bash`, so match both in shell guards: `match = "re:bash|process_start"`. To act when the agent starts a subagent, use `match = "agents_spawn"`. **Can return**: - `decision: "deny"` + `reason` — denies the tool call; `reason` becomes the tool error that the LLM sees. - `hook_specific_output.tool_input` (object) — **full replacement** of the model's arguments. The replacement is re-validated against the tool's schema; a validation failure becomes a synthesized denial. Rewrites compose left-to-right across hooks. The rewritten arguments are also what the permission prompt displays, what the tool runs with, and what subsequent LLM turns see on the assistant message. - `system_message` — shown in the UI only. ### `post_tool` Fires per tool call **if and only if the tool body actually ran**. It doesn't fire when the tool never ran: `pre_tool` denial, denial at the approval prompt, or permission set to `never`. **Receives** (in addition to the session context): - `tool_name`, `tool_call_id` - `tool_input` (post-rewrite) - `tool_status` — `success` or `failure`. A shell command that exits with an error code still counts as `success`. - `tool_output` — structured result dict; `null` on failure - `tool_output_text` — the running text the LLM will see, mutable by prior hooks - `tool_error` - `duration_ms` — not reported yet (always `0`) **Can return**: - `decision: "deny"` + `reason` — replaces `tool_output_text` with `reason`. The pipeline continues; subsequent hooks see the replacement. - `hook_specific_output.additional_context` (string) — **appended** (with a `\n` separator) to `tool_output_text`. Composes with a same-hook deny: deny replaces first, then `additional_context` is appended to the replacement. - `system_message` — shown in the UI only. ### `pre_agent` Fires once per turn, after you send a message and **before** the model reads it. `match` selects the agent whose turn starts, such as a subagent named `reviewer`, or `main` for the main agent. The first deny skips the remaining `pre_agent` hooks. **Receives** (in addition to the session context): `agent_name`, `turn_id`, and `prompt`, the text you typed. Attachments aren't included. **Can return**: - `decision: "deny"` + `reason` — blocks the message: the turn ends and the model never sees it. - `hook_specific_output.prompt` (string) — replaces the text the model receives. Your transcript still shows what you typed, and attachments are kept. Rewrites compose across hooks. - `hook_specific_output.additional_context` (string) — adds text after your message, for the model only. It stays in the conversation for later turns. - `system_message` — shown in the UI only. ### `pre_llm` Fires **before each call to the model**. A turn that uses tools calls the model several times, so keep this hook fast. `match` selects the agent whose turn it is, as for `pre_agent`. The first deny skips the remaining `pre_llm` hooks. **Receives** (in addition to the session context): `agent_name`, `turn_id`, and `model`, the active model alias. **Can return**: - `decision: "deny"` + `reason` — doesn't call the model: the turn ends, and `reason` becomes its answer. - `system_message` — shown in the UI only. ### `post_llm` Fires **after each model response**, before Vibe acts on it, including responses that only call tools. `match` selects the agent whose turn it is. `post_agent` still runs afterwards on the final answer. **Receives** (in addition to the session context): `agent_name`, `turn_id`, `response_text`, `tool_calls` (each with `tool_name`, `tool_call_id`, and `tool_input`), `finish_reason`, and `usage`, the response's token counts. **Can return**: - `decision: "deny"` + `reason` — discards the response, so its tools don't run, and asks the model to try again with `reason` as feedback. The first deny skips the remaining `post_llm` hooks. Shares the budget of **3 retries per turn** with `post_agent` hooks. - `system_message` — shown in the UI only. ### `post_agent` Fires after every assistant turn that ends without pending tool calls, for the main agent and its subagents. Set `match` to run the hook only after a given agent, such as a subagent named `reviewer`, or `match = "main"` to run it only after the main agent. **Receives** (in addition to the session context): `agent_name`, the name of the agent that finished its turn; `turn_id`; and `response_text`, the agent's final answer. Vibe saves the answer to the transcript at `transcript_path` only after every `post_agent` hook accepts it, so read it from `response_text`. **Can return**: - `decision: "deny"` + `reason` — `reason` is injected as a new user message asking the agent to retry. Capped at **3 retries per turn** across all `post_agent` and `post_llm` hooks; after that, Vibe accepts the answer. If a `post_agent` hook fails, Vibe accepts the answer and shows a warning. - `system_message` — shown in the UI only. When a `post_agent` or `post_llm` retry would exceed `--max-turns`, the turn fails with a message naming the hook. ### `notification` Fires when Vibe needs you or when a turn ends. Use it to send a desktop or chat notification. `match` selects the notification type: - `approval_requested` — a tool call waits for your approval. The payload adds `tool_name`. - `question_asked` — the agent asks you a question. - `turn_completed` — the main agent finished its turn. - `turn_failed` — the main agent's turn failed. **Receives** (in addition to the session context): `notification_type`, `message` (a short human-readable summary), and `agent_name`. The hook runs in the background: Vibe doesn't wait for it and ignores its output. It doesn't fire when you interrupt the agent. ### `session_start` Fires when a session starts. `match` selects the source: `startup` for a new session, `resume`, `clear` after `/clear`, or `fork` when a rewind forks to a new session. It doesn't fire for subagents. **Receives** (in addition to the session context): `source`, `agent_name`, and `model`. **Can return**: - `hook_specific_output.additional_context` (string) — adds text to your next message, for the model only. Use it to load project context at the start of a session. With several hooks, Vibe joins their texts in order. - `system_message` — shown as the hook's line in the conversation. You can type right away: your first message waits for the hooks before it reaches the model. A `session_start` hook can't block the session. If it fails, Vibe shows a warning and the session continues without its context. ### `session_end` Fires when a session ends. `match` selects the reason: `exit` when you quit Vibe, `clear` after `/clear`, or `other`, for example when you switch to another session. It doesn't fire after a crash. **Receives** (in addition to the session context): `reason`. The hook runs in the background and Vibe ignores its output. When you quit, Vibe waits up to 2 seconds in total for the `session_end` and `notification` hooks still running, then stops them. ### Example: format files after each edit This hook runs [Ruff](https://docs.astral.sh/ruff/) on every Python file the agent creates or edits. When the formatter changes the file, the hook tells the agent, so its next edit starts from the formatted content. `./.vibe/hooks.toml`: ```toml [[hooks]] name = "format-python" type = "post_tool" match = "re:edit|write_file" command = "python ./.vibe/hooks/format.py" description = "Format Python files with Ruff after each edit." ``` `./.vibe/hooks/format.py`: ```python import json import subprocess import sys from pathlib import Path payload = json.load(sys.stdin) if payload.get("tool_status") != "success": sys.exit(0) path = Path(payload["tool_input"]["file_path"]) if path.suffix != ".py": sys.exit(0) before = path.read_text() subprocess.run(["ruff", "format", "--quiet", str(path)], check=True) if path.read_text() != before: print(json.dumps({ "hook_specific_output": { "additional_context": f"{path} was reformatted with ruff. Read it again before you edit it.", }, })) ``` To format other languages, change the extension check and the command, for example `prettier --write` for TypeScript. If the formatter fails, for example on a syntax error, Vibe shows a warning and the agent's edit stays as it is. --- # MCP servers Source: /vibe/code/cli/mcp-servers > Add MCP servers to the Vibe Code CLI from the command line or config.toml, sign in to OAuth servers, and control their tool permissions. MCP servers extend the Vibe Code CLI with **external tools** through the [Model Context Protocol](https://modelcontextprotocol.io). You add them with the `vibe mcp add` command, the `/mcp add` slash command, or directly in `config.toml` under `mcp_servers`. Their tools then become available to Vibe like any built-in tool. MCP servers are **user-configured**. For Mistral-managed integrations, see [Connectors](/vibe/code/cli/connectors) instead. > **Info:** > > Your administrator can block MCP servers with `enable_mcp = false` in [admin config](/vibe/code/cli/admin-config#block-mcp-servers). In that case, Vibe refuses to add, remove, enable, or sign in to MCP servers, and loads no MCP tools. ### Supported transports | Transport | Use it when | |---|---| | `http` | The server is reachable over standard HTTP. | | `streamable-http` | The server is reachable over HTTP and supports streaming responses. | | `stdio` | The server is a local process you start from a command. | ### Add an MCP server from the command line `vibe mcp add` writes the server to your user `config.toml` without starting a session. For a remote server that uses OAuth, pass its name and URL. Vibe opens your browser to sign in: ```bash vibe mcp add linear --url https://mcp.linear.app/mcp ``` Pass `--no-login` to save the server without signing in, and `--scope` (repeatable) to request specific OAuth scopes. For a remote server that uses an API key or static headers, pass `--api-key-env` or `--header`: ```bash vibe mcp add mistralai \ --url https://api.mistral.ai/mcp \ --api-key-env MISTRAL_API_KEY ``` For a local server, use the `stdio` transport. Repeat `--arg` for each argument and `--env` for each environment variable: ```bash vibe mcp add fetch_server --transport stdio --command uvx --arg mcp-server-fetch ``` Remove a server with `vibe mcp remove `. Removing an OAuth server also deletes its stored tokens. Run `vibe mcp add --help` for all options. You can also add an OAuth server from inside a session with `/mcp add `. It accepts the same `--name`, `--scope`, `--transport`, and `--no-login` options: ```txt /mcp add https://mcp.linear.app/mcp ``` ### Add an MCP server in `config.toml` Append a `[[mcp_servers]]` table to `config.toml`. Required fields depend on the transport. **HTTP** ```toml [[mcp_servers]] name = "my_http_server" transport = "http" url = "http://localhost:8000" [mcp_servers.auth] type = "static" headers = { "X-Client" = "vibe" } api_key_env = "MY_API_KEY_ENV_VAR" api_key_header = "Authorization" api_key_format = "Bearer {token}" ``` **Streamable HTTP** ```toml [[mcp_servers]] name = "my_streamable_server" transport = "streamable-http" url = "http://localhost:8001" [mcp_servers.auth] type = "static" api_key_env = "MY_API_KEY_ENV_VAR" api_key_header = "X-API-Key" api_key_format = "{token}" ``` **OAuth** ```toml [[mcp_servers]] name = "linear" transport = "streamable-http" url = "https://mcp.linear.app/mcp" [mcp_servers.auth] type = "oauth" scopes = [] ``` Sign in with `/mcp login linear` from a session. An empty `scopes` list accepts the server's default scopes. See [Sign in to OAuth servers](#sign-in-to-oauth-servers) for how sign-in works. **Local process (stdio)** ```toml [[mcp_servers]] name = "fetch_server" transport = "stdio" command = "uvx" args = ["mcp-server-fetch"] env = { "DEBUG" = "1", "LOG_LEVEL" = "info" } ``` ### Common fields | Field | Purpose | |---|---| | `name` | Short alias for the server. Used as a prefix in tool names. | | `transport` | One of `http`, `streamable-http`, or `stdio`. | | `url` | Base URL for HTTP transports. | | `command` / `args` | Command and arguments for the stdio transport. | | `env` | Environment variables passed to the server process (stdio). | | `startup_timeout_sec` | How long to wait for the server to start. Default: `10` seconds. | | `tool_timeout_sec` | How long to wait for a tool call to complete. Default: `60` seconds. | | `[mcp_servers.auth]` | Authentication for HTTP transports: `type = "static"` with `headers` or `api_key_env`, or `type = "oauth"` with `scopes`. | Vibe still accepts `headers`, `api_key_env`, `api_key_header`, and `api_key_format` directly in `[[mcp_servers]]`, and treats them as static authentication. Don't combine them with an `[mcp_servers.auth]` table. See the [configuration reference](/vibe/code/cli/configuration-reference#mcp-servers-mcp_servers) for every field. ### Sign in to OAuth servers OAuth works with the `http` and `streamable-http` transports. `stdio` servers run locally and don't use OAuth. `vibe mcp add` starts the sign-in as soon as it adds an OAuth server, that is, an HTTP server added without `--header` or `--api-key-env`. `/mcp add` only adds OAuth servers and also starts the sign-in. If you skipped it with `--no-login`, or if Vibe reports that a server needs authentication, run `/mcp login ` from a session. `/mcp status` shows the sign-in state of each server. During sign-in, Vibe gives you the authorization URL and can open it in your browser. After you approve access, the browser redirects to `http://127.0.0.1:/callback`, which is `http://127.0.0.1:47823/callback` by default. This address must reach the machine where Vibe runs. If Vibe runs on a remote machine over SSH, forward the callback port before you sign in, then open the URL in your local browser: `ssh -L 47823:127.0.0.1:47823 `. Use your `redirect_port` instead of `47823` if you changed it. Vibe stores the tokens in your OS keyring, not in `config.toml`. `/mcp logout ` deletes them. If you change the server's `url`, `scopes`, `client_id`, or `client_metadata_url`, Vibe stops using the stored tokens, and you need to run `/mcp login ` again. These optional fields in `[mcp_servers.auth]` control the OAuth client: | Field | Purpose | |---|---| | `client_id` | Pre-registered public client ID. Register `http://127.0.0.1:47823/callback` as its redirect URI, with your `redirect_port` instead of `47823` if you changed it. Without `client_id` or `client_metadata_url`, Vibe registers a client with the server dynamically. | | `client_metadata_url` | HTTPS URL of a client metadata document, with a path other than `/`. The document must list `http://127.0.0.1:/callback` in `redirect_uris`. Used only if the server advertises `client_id_metadata_document_supported`. Otherwise, Vibe registers a client dynamically. Can't be combined with `client_id`. | | `redirect_port` | Local port for the sign-in callback. Default: `47823`. Change it if `47823` is already in use on your machine. | In headless environments without an OS keyring, such as CI, Vibe can't store OAuth tokens. Use static authentication with `api_key_env` instead. ### Tool naming and permissions MCP tools are exposed under the pattern `{server_name}_{tool_name}`. Configure permissions per tool just like built-in tools: ```toml [tools.fetch_server_get] permission = "always" [tools.my_http_server_query] permission = "ask" ``` You can also restrict which MCP tools are active using `enabled_tools` and `disabled_tools`: ```toml # Only enable serena's tools enabled_tools = ["serena_*"] # Disable every tool from the fetch_server server disabled_tools = ["fetch_server_*"] ``` Filters support **exact names**, **glob patterns**, and **regex** with the `re:` prefix. ### How Vibe loads MCP servers Vibe keeps the tools of MCP servers and connectors from their last load and refreshes them in the background, so your messages don't wait for servers to start. If a server can't load or needs a sign-in, Vibe shows a warning that names it. ### Browse MCP servers from the CLI From a CLI session: ```txt /mcp ``` Pass a server name to list its tools: ```txt /mcp fetch_server ``` `/mcp` also accepts these subcommands: | Subcommand | Action | |---|---| | `/mcp add ` | Add an OAuth server and sign in. See [Add an MCP server from the command line](#add-an-mcp-server-from-the-command-line). | | `/mcp status` | Show the status of each server. | | `/mcp login ` | Sign in to an OAuth server. | | `/mcp logout ` | Sign out of an OAuth server. | > **Note:** > > `/connectors` is an alias for `/mcp`. --- # Using offline models Source: /vibe/code/cli/offline-models > Deploy Devstral or another model behind an OpenAI-compatible API, for example with vLLM, and point the Vibe Code CLI at your local server. The Vibe Code CLI supports **any model served behind an OpenAI-compatible API**. You can deploy Devstral on your own infrastructure and point the CLI at it. Useful when you need local inference, restricted internet access, or full control over where your code is sent. ### Recommended models We recommend either of these open models for local usage: - **[Devstral Small 2](https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512)**: dense 24B, tuned for agentic and code tasks. Lighter hardware footprint. - **[Mistral Small 4](/models/mistral-small-4-0-26-03)**: 119B mixture-of-experts with 6.5B active parameters. Hybrid reasoning and coding model with a 256k context. ### Hardware For decent performance on long contexts, we recommend deploying at **FP8 precision** with a context length of around **128k**: - **H100** or **A100** GPU for FP8 / 128k. - **RTX 4090** or any **24 GB VRAM** GPU for 4-bit precision with a 32k context length. - **CPU offload** also works on any machine with enough RAM, but it is significantly slower. Adjust precision and context length based on the model and the hardware you have. > **Note:** > > The figures above are sized for Devstral Small 2 (24B dense). Mistral Small 4 (119B mixture-of-experts) needs significantly more VRAM to hold the weights: plan on at least one H100 80GB at FP8, more for long contexts. ### Deploy with vLLM We recommend [vLLM](https://github.com/vllm-project/vllm) to serve Devstral. Start Devstral Small 2 on port 8080: ```bash vllm serve mistralai/Devstral-Small-2-24B-Instruct-2512 \ --tool-call-parser mistral \ --enable-auto-tool-choice \ --port 8080 ``` Port 8080 matches Vibe's built-in `llamacpp` provider preset. If you serve on another port, set `api_base` to match. Useful flags: - `--tensor-parallel-size` to use multiple GPUs. - `--dtype` to use a lower precision. - `--max-model-len` to reduce the context length. ### Other deployment options Devstral runs on any inference framework that exposes an OpenAI-compatible API. Some popular choices: - **[vLLM](https://github.com/vllm-project/vllm)** *(recommended)* - **[llama.cpp](https://github.com/ggerganov/llama.cpp)** - **[LM Studio](https://lmstudio.ai/)** - **[Ollama](https://ollama.com)** ### Point the CLI at your local server Vibe doesn't ship a built-in local model. Once your server is running, add a provider and a model preset for it in `config.toml`. See [API keys and profiles](/vibe/code/cli/api-keys-profiles) and [Configuration](/vibe/code/cli/configuration) for the preset syntax. A minimal example for a local OpenAI-compatible server on port 8080: ```toml active_model = "devstral-local" [[providers]] name = "local" api_base = "http://localhost:8080/v1" api_style = "openai" backend = "generic" [[models]] name = "mistralai/Devstral-Small-2-24B-Instruct-2512" provider = "local" alias = "devstral-local" ``` Keep `active_model` above the first `[[...]]` table, otherwise TOML attaches it to that table. Leave `api_key_env_var` unset when your server doesn't require an API key. Set `max_context_length` in the `[[models]]` preset to your server's context length. Your server must also report token usage in streamed replies (`stream_options.include_usage`). Vibe also includes a provider preset named `llamacpp` that points at `http://127.0.0.1:8080/v1` without an API key. To use it, set `provider = "llamacpp"` in your `[[models]]` preset instead of defining your own provider. To switch between your local model and hosted models during a session, run `/model`. ### Stay in control - **Validate output quality** on representative tasks before relying on the local model for edits. - Keep your local server **on a private network** when possible. - **Confirm what data leaves the machine** when you mix local and remote tools (MCP, connectors). ### Run fully offline If you chose offline models for privacy reasons, you may also want to **disable telemetry and any background network calls**. Set the following in `~/.vibe/config.toml`: ```toml enable_telemetry = false enable_update_checks = false ``` With these settings and a local provider configured above, the CLI does not contact `mistral.ai` or any other external service. Skills, MCP servers, and connectors that reach external systems must be disabled separately. Review `enabled_tools`, `disabled_tools`, `mcp_servers`, and your connectors list. --- # Plugins Source: /vibe/code/cli/plugins > Bundle skills, MCP servers, knowledge, subagents and hooks into a plugin directory with a plugin.json manifest, and share it with your team. > **Warning:** > > Plugin support is experimental and under active development. The plugin format and the features on this page will change, and an update can break existing plugins. A plugin is a **directory that bundles extensions** for Vibe Code: skills, MCP servers, knowledge folders, subagents, and more. Use plugins to share a complete setup with your team, or to install one from another source, without merging it into your own `config.toml`, skills, and agent files. Vibe reads plugins in the [Agent Plugins 1.0](https://agent-plugins.org) format. Every plugin has a `plugin.json` manifest. Vibe-specific components live in an `ai.mistral.vibe/` directory and need the `ai.mistral.vibe` extension in the manifest. Vibe ships one built-in plugin, `vibe`, which provides skills such as `/vibe:skill-creator`, `/vibe:worktree`, and `/vibe:import`. Run `/vibe:import` to bring your instructions, skills, subagents, hooks, MCP servers, and permissions over from Claude Code, Codex, or OpenCode. ### Plugin locations Each subdirectory of a plugins directory is one plugin: | Scope | Location | Loaded | | -------- | ----------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | Project | `./.vibe/plugins//` in the working directory, and in directories added with `--add-dir` | Working directory: only when [trusted](/vibe/code/safety-approvals-permissions#trusted-folders). `--add-dir` directories: always | | User | `~/.vibe/plugins//` (or `$VIBE_HOME/plugins/`) | Always | | Built-in | Shipped with Vibe | Always | When two plugins share a `name`, the project plugin wins over the user plugin, which wins over the built-in one. If two plugins with the same name sit at the same scope, Vibe loads neither. ### Create a plugin This example creates a user-level plugin with one skill. 1. Create the plugin directory and its skill directory: ```bash mkdir -p ~/.vibe/plugins/release-tools/skills/changelog ``` 2. Create `~/.vibe/plugins/release-tools/plugin.json`: ```json { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "release-tools", "version": "1.0.0", "description": "Skills for cutting releases." } ``` 3. Create `~/.vibe/plugins/release-tools/skills/changelog/SKILL.md`: ```markdown --- name: changelog description: Draft a changelog entry from the commits since the last release tag. --- # Draft a changelog entry 1. Find the latest release tag with `git describe --tags --abbrev=0`. 2. List the commits since that tag. 3. Group the changes under Added, Changed, and Fixed. ``` 4. Start a new session, or run `/reload-plugins` in a running one. 5. Run `/plugins` and check that `release-tools` is listed. Run the skill with `/release-tools:changelog`. The skill prefix is the plugin's `name`. The plugin's tools use a **namespace** instead. Vibe derives it from the name: it replaces every character other than letters, digits, `_`, and `$` with `_`, and adds a leading `_` when the name starts with a digit. To choose your own, set `toolNamespace` in the [Vibe extension](/vibe/code/cli/plugins#vibe-extension). ### Plugin layout Only `plugin.json` is required: ```txt release-tools/ ├── plugin.json # Manifest (required) ├── mcp.json # MCP servers ├── libraries.json # Python and Node libraries (Vibe extension) ├── connectors.json # Required connectors (Vibe extension) ├── skills/ │ └── changelog/ │ └── SKILL.md └── ai.mistral.vibe/ # Vibe-specific components (Vibe extension) ├── hooks.toml ├── knowledge/ │ └── release-policy/ │ └── KNOWLEDGE.md └── agents/ └── release-checker.toml ``` Without the `ai.mistral.vibe` extension in `plugin.json`, Vibe loads only `skills/` and `mcp.json` and ignores the other components. Every path must stay inside the plugin directory. A file or symbolic link that resolves outside it is rejected. ### Manifest (`plugin.json`) ```json { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "release-tools", "version": "1.0.0", "description": "Skills, reference material, and a subagent for cutting releases.", "author": { "name": "Example Team", "url": "https://example.com" }, "license": "MIT", "keywords": ["release"], "extensions": { "ai.mistral.vibe": { "schemaVersion": 1, "displayName": "Release tools", "toolNamespace": "release" } } } ``` | Field | Required | Details | | ----------------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | | `$schema` | yes | Exactly `https://agent-plugins.org/schemas/1.0.0/plugin.schema.json`. Vibe rejects other schema versions. | | `name` | yes | 1 to 64 characters: lowercase letters, digits, `.`, and `-`. Starts and ends with a letter or digit, and contains no `--` or `..`. Identifies the plugin. | | `version` | no | Shown in `/plugins`. | | `description` | no | Shown in `/plugins`. Vibe also lists it in the agent's context, so describe what the plugin is for. | | `author` | no | Object with optional `name`, `email`, and `url`. | | `homepage`, `repository`, `license` | no | Strings. | | `keywords` | no | List of strings. | | `extensions` | no | Extension blocks keyed by extension ID. Vibe reads `ai.mistral.vibe`. | Vibe ignores any other top-level field or unknown extension field, and shows a warning for it in `/plugins`. ### Vibe extension The `extensions."ai.mistral.vibe"` block turns on hooks, knowledge, subagents, libraries, and connectors for the plugin: | Field | Required | Details | | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `schemaVersion` | yes | `1`. | | `displayName` | no | Title of 1 to 100 characters. `name` stays the plugin's identity. | | `toolNamespace` | no | Namespace for the plugin's tools. Must be a valid identifier: letters, digits, `_`, and `$`, not starting with a digit. Defaults to the plugin name with other characters replaced by `_`. Vibe prefixes skills, knowledge, and subagents with the plugin name instead. | | `defaultEnabled` | no | `false` keeps the plugin off until its name is in `enabled_plugins`. Defaults to `true`. See [Turn plugins on or off](/vibe/code/cli/plugins#turn-plugins-on-or-off). | | `toolOverrides` | no | Renames a tool (`name`) or sets its exposure (`exposure`: `programmatic`, `direct`, or `direct_and_programmatic`). Keys have the form `/`, such as `tracker/create_issue`. In the current version, overrides only change the tool catalog shown in `/plugins`, not the tools the agent sees. | These namespaces are reserved: `agent`, `agents`, `collaboration`, `file_system`, `process`, `self`, `skill`, `subagent`, and `vibe`. Vibe doesn't load a plugin whose namespace is reserved, and it doesn't load any of the plugins that share a namespace. ### What a plugin can ship #### Skills Place each skill in `skills//SKILL.md`. The format is the same as for [standalone skills](/vibe/code/cli/skills#skill-format), and the `name` in the frontmatter must match the directory name. Vibe exposes each skill as `:`. A user-invocable skill becomes the slash command `/:`. To filter plugin skills with `enabled_skills` or `disabled_skills`, use the same name, such as `release-tools:*`. #### MCP servers Declare MCP servers in `mcp.json` at the plugin root: ```json { "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", "mcpServers": { "release-notes": { "type": "stdio", "command": "./bin/release-notes-server", "args": ["--cache", "${PLUGIN_DATA}/cache"], "env": { "LOG_LEVEL": "info" } }, "tracker": { "type": "streamable-http", "url": "https://mcp.example.com/mcp", "headers": { "X-Team": "release" } } } } ``` The `$schema` must be exactly `https://agent-plugins.org/schemas/1.0.0/mcp.schema.json`, and `mcpServers` is the only other top-level key. If either rule fails, for example an `mcp.json` copied from a Claude Code `.mcp.json` without adding `$schema`, Vibe loads none of the file's servers. | Transport | Fields | | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `stdio` | `command` (required): a bare executable found on `PATH`, such as `node` or `uvx`, or a path inside the plugin that starts with `./`. `args`, `env`, and `cwd` are optional. | | `streamable-http` | `url` (required) and static `headers`. | Vibe doesn't support the `sse` transport in plugins. Keep these rules in mind: - `${PLUGIN_ROOT}` (the plugin directory) and `${PLUGIN_DATA}` (a writable data directory that Vibe creates for the plugin) expand in `args`, `env` values, and `cwd`, but not in `command`. - Vibe sets `PLUGIN_ROOT` and `PLUGIN_DATA` in the server's environment. Don't define them in `env`. - `cwd` must start with `./`, `${PLUGIN_ROOT}`, or `${PLUGIN_DATA}`. Without it, the server runs in the plugin directory. Plugin servers appear in `/mcp`, tagged with their plugin, and you sign in to them with `/mcp login `. If an MCP server in your `config.toml` has the same name, Vibe disables the plugin's server and shows a warning, so the two never share credentials. See [MCP servers](/vibe/code/cli/mcp-servers). #### Knowledge A knowledge folder holds reference material that the agent reads when it's relevant, such as policies, runbooks, or API notes. Place each folder in `ai.mistral.vibe/knowledge//`, with a `KNOWLEDGE.md` entry point and any other files the entry point refers to: ```markdown --- name: release-policy description: Versioning rules, release branches, and freeze windows for this team. display_name: Release policy --- # Release policy - Follow semantic versioning. - Cut releases from `release/.` branches. ``` | Field | Required | Details | | -------------- | -------- | ------------------------------------------------------------------------------------ | | `name` | yes | Must match the folder name. Lowercase letters, digits, and `-`, up to 64 characters. | | `description` | yes | 5 to 300 characters. The agent decides from it whether to read the folder. | | `display_name` | no | Up to 100 characters. | | `icon` | no | Up to 16 characters. | Vibe copies each folder into the plugin's data directory and lists it in the agent's context as a read-only folder named `:`, with its description and the path of its `KNOWLEDGE.md`. Vibe doesn't add the content itself to the context: the agent reads `KNOWLEDGE.md` when a folder is relevant to the task. A plugin can ship up to 100 knowledge folders. Each `KNOWLEDGE.md` is limited to 256 KB, and knowledge folders can't contain symbolic links. #### Subagents Define subagents in `ai.mistral.vibe/agents/.toml`, one file per subagent. Use a lowercase, hyphenated file name, such as `code-reviewer.toml`. Vibe names the subagent `:`: ```toml # ai.mistral.vibe/agents/release-checker.toml schema_version = 1 agent_type = "subagent" display_name = "Release checker" description = "Checks that a branch is ready to release and reports blockers." safety = "safe" instructions = "Check the changelog, version numbers, and CI status. Don't modify files." enabled_tools = ["read_file", "bash"] [tools.bash] permission = "ask" ``` | Field | Required | Details | | --------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `schema_version` | yes | `1`. | | `agent_type` | yes | `"subagent"`. Plugins can't define user-selectable agents. | | `description` | yes | 1 to 300 characters. Tells the agent when to delegate to this subagent. | | `display_name` | no | Up to 100 characters. | | `safety` | no | `safe`, `neutral` (default), `destructive`, or `yolo`. | | `instructions` | no | Instructions for the subagent. | | `active_model` | no | Model alias the subagent runs on. Defaults to the session's model. | | `enabled_tools`, `disabled_tools` | no | Tool names, without duplicates. | | `[tools.]` | no | `permission` (`always`, `ask`, or `never`), `allowlist`, and `denylist`. They apply on top of the session's rules, as for [custom subagents](/vibe/code/cli/agents#custom-subagents). | Plugin subagents follow the same rules as [custom subagents](/vibe/code/cli/agents#custom-subagents). A plugin can ship up to 128 subagent files of up to 64 KB each. #### Hooks A plugin can declare hooks in `ai.mistral.vibe/hooks.toml`, with the same fields as a [`hooks.toml` file](/vibe/code/cli/hooks#declare-a-hook). Vibe prefixes each hook name with the plugin name, such as `release-tools:audit-bash`. A plugin can declare up to 128 hooks, in a file of up to 64 KB. Plugin hooks run with the hooks from your `hooks.toml` files, in the session's [pinned copy](#pinned-plugins) of the plugin, with `PLUGIN_ROOT` and `PLUGIN_DATA` set. See [Plugin hooks](/vibe/code/cli/hooks#plugin-hooks) for the order. A running session keeps the hooks it started with: after `/reload-plugins`, hook changes apply to new sessions. #### Libraries Declare Python and Node libraries in `libraries.json` at the plugin root: ```json { "schemaVersion": 1, "python": { "release_utils": "./python/release_utils" }, "node": { "@example/release-utils": "./node/release-utils" } } ``` Each key is the import name, and each value is a path inside the plugin that starts with `./`. A Python library is a package directory or a single `.py` file, and a Node library is a directory. Vibe copies the libraries to the plugin's data directory and adds them to `PYTHONPATH` and `NODE_PATH` for the commands the agent runs, so scripts in the plugin's skills can import them. Node libraries need Node.js on your machine. If two plugins declare the same import name, Vibe loads neither library. #### Connectors Declare the [connectors](/vibe/code/cli/connectors) and connector tools that the plugin relies on in `connectors.json` at the plugin root: ```json { "schemaVersion": 1, "connectors": [{ "id": "github", "tools": ["list_issues", "create_issue"] }] } ``` A declaration doesn't connect anything. Vibe checks the declared connectors against your account and reports any that aren't available. Connect them as described in [Connectors](/vibe/code/cli/connectors). ### Manage plugins in a session | Command | Action | | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `/plugins` | Browse the plugins of the current session. Select one to see its author, version, location, scope, format, pinned digest, and components. Files that Vibe couldn't load, whether a whole plugin or a single component, appear under **Not loaded** with the reason, as do warnings such as ignored unknown fields. Press `/` to search and `r` to reload. | | `/reload-plugins` | Read the plugin directories again, switch the session to what they contain now, and report the plugins that were added (`+`), removed (`-`), or updated (`~`). | `/reload` doesn't reload plugins. Both plugin commands run only while the agent is idle. #### Turn plugins on or off To turn off an installed plugin without removing it, list its `name` in `disabled_plugins` in `config.toml`. A disabled plugin stays on disk but adds nothing to your sessions: ```toml disabled_plugins = ["release-tools"] ``` A plugin can ship off by default by setting `"defaultEnabled": false` in its [Vibe extension](/vibe/code/cli/plugins#vibe-extension). Turn it on with `enabled_plugins`. When a plugin is in both lists, `disabled_plugins` wins. The built-in `vibe` plugin can't be turned off. Start or resume a session, or run `/reload-plugins`, to apply a change. #### Pinned plugins When a session starts, Vibe **pins** the content of each plugin it loads. The session keeps using that content until you run `/reload-plugins`: - Editing, upgrading, or removing a plugin on disk doesn't change a running session. Run `/reload-plugins` to pick up the change, or start a new session. - A resumed session uses the plugin content it pinned, even if a plugin has changed since. When plugins were added, removed, turned on, or turned off since the session last ran, Vibe pins the current set again when you resume it. - MCP servers and connectors aren't pinned: Vibe reconnects to them when a session starts, resumes, or reloads, so their tools can differ. ### Trust and security A plugin can start local MCP servers and add tools, instructions, and reference material to your sessions. Review a plugin the same way you review code before you install it. - **Project plugins** in `./.vibe/plugins/` load only when you trust the working directory. Vibe loads project plugins from directories added with `--add-dir` without asking, so add only directories you trust. - **User plugins** in `~/.vibe/plugins/` load in every session, in every project. - Plugin MCP servers follow the same rules as configured MCP servers. When your administrator sets [`enable_mcp = false`](/vibe/code/cli/admin-config#block-mcp-servers), Vibe doesn't load them either. - Plugins don't change approvals. Tools from plugins go through the same [agents and per-tool permissions](/vibe/code/safety-approvals-permissions) as other tools. ### Plugins for other agents Vibe also loads plugins written for other coding agents. It detects the format from these markers: | Format | Marker | What Vibe loads | | ----------- | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- | | Claude Code | `.claude-plugin/plugin.json` | Skills and MCP servers | | Codex | `.codex-plugin/plugin.json` | Skills and MCP servers | | Kimi Code | `kimi.plugin.json` or `.kimi-plugin/plugin.json` | Skills and MCP servers | | OpenCode | `.opencode/` content or `opencode.json` | Skills and MCP servers declared in `opencode.json`. Vibe doesn't run executable OpenCode plugins or custom tools. | A `plugin.json` with the Agent Plugins 1.0 `$schema` takes precedence over these markers. If a directory has markers for more than one other format, Vibe doesn't load it. Write new plugins in the Agent Plugins 1.0 format. ### Troubleshooting **The plugin doesn't appear in `/plugins`.** The session started before you created the plugin, the plugin is in a project that isn't trusted, or the plugin is turned off. Run `/reload-plugins`, check that the working directory is [trusted](/vibe/code/safety-approvals-permissions#trusted-folders), and check that the plugin isn't in `disabled_plugins`. A plugin that sets `"defaultEnabled": false` also needs its name in `enabled_plugins`. **A file appears under Not loaded.** Vibe couldn't load that plugin or component, or loaded it with a warning, such as an unknown field it ignored. The reason appears next to the file. Common causes for a whole plugin: a `$schema` other than the 1.0.0 URL, a `name` with uppercase letters or `--`, a reserved namespace, two plugins with the same name in the same scope, or two plugins with the same namespace. Fix the cause, then run `/reload-plugins`. **Knowledge, subagents, or libraries are missing.** `plugin.json` has no `ai.mistral.vibe` extension, or the extension is invalid, for example because `schemaVersion` is missing. Add the extension and reload. **A subagent file is rejected.** Plugin subagent files use snake_case keys, such as `schema_version` and `agent_type`. Vibe rejects camelCase keys, such as `schemaVersion`, and any unknown key. **A plugin MCP server doesn't start.** Check `command` and `cwd`. `command` must be a bare executable name or start with `./`, and `cwd` must start with `./`, `${PLUGIN_ROOT}`, or `${PLUGIN_DATA}`, so absolute paths and `.` are rejected. Also check that `mcp.json` has the exact 1.0.0 `$schema` and only `mcpServers`, and that no MCP server in `config.toml` uses the same name. ### Next steps - Write the skills your plugin ships: [Skills](/vibe/code/cli/skills). - Configure and sign in to MCP servers: [MCP servers](/vibe/code/cli/mcp-servers). - Define subagents and their tools: [Agents](/vibe/code/cli/agents#custom-subagents). - Enforce policies with hooks: [Hooks](/vibe/code/cli/hooks). --- # Skills Source: /vibe/code/cli/skills > Write SKILL.md files to add reusable workflows and custom slash commands to Vibe Code, and choose where skills load from. Skills are **reusable instruction sets** that extend Vibe Code with new workflows and custom slash commands. Vibe follows the [Agent Skills specification](https://agentskills.io/specification), so skills you write here are portable to other agents that adopt the same spec. ### Skill format A skill is a **directory containing a `SKILL.md` file**. The file starts with YAML frontmatter and continues with the skill instructions in Markdown. ```markdown --- name: code-review description: Perform automated code reviews. license: MIT compatibility: Requires git user-invocable: true allowed-tools: - read_file - ask_user_question --- # Code review skill This skill helps analyze code quality and suggest improvements. ``` Common frontmatter fields: - **`name`**: used to invoke the skill. - **`description`**: shown in the skill list. Up to 1,024 characters. - **`user-invocable`**: defaults to `true`, which exposes the skill as a slash command in the CLI and the VS Code extension. Set to `false` to hide it from the slash picker. The agent can still load it. - **`disable-model-invocation`**: set to `true` to stop the agent from loading the skill on its own. You can still run it with `/skill-name`. - **`allowed-tools`**: lists the tools the skill expects to use. Vibe reads this field but doesn't enforce it: a skill can call any tool the active agent allows. ### Skill locations The CLI discovers skills from several locations, in order: 1. **Custom paths** defined in `config.toml` → `skill_paths = ["/path/to/custom/skills"]` 2. **Project-level** skills in `./.vibe/skills/` or `./.agents/skills/` when the working directory is [trusted](/vibe/code/safety-approvals-permissions#trusted-folders). 3. **User-level** skills in `~/.vibe/skills/` or `~/.agents/skills/`. A running session picks up skills you add or edit in these locations. If a change doesn't show up, run `/reload`. ### Enable, disable, or filter skills Use patterns to control which skills load: ```toml enabled_skills = ["code-review", "test-*"] disabled_skills = ["experimental-*"] ``` Skill filters support **exact names**, **glob patterns**, and **regex** with the `re:` prefix, just like tool filters. If `enabled_skills` is non-empty, it acts as an allow-list; otherwise every discovered skill is available minus those matched by `disabled_skills`. To turn skills on or off without editing the file, run `/skills`. It lists your installed skills with their scope and source, and shows the content of the highlighted skill. - Press `/` to search. - Press `Space` to turn the highlighted skill on or off. Vibe updates `disabled_skills` for you. You can't toggle plugin skills, skills that a pattern in `disabled_skills` matches, or any skill while `enabled_skills` is set. ### Custom slash commands Skills are the recommended way to add your own slash commands. `user-invocable` defaults to `true`, so the skill name becomes available with `/skill-name` autocompletion in the CLI prompt, and in the [VS Code extension](/vibe/code/vs-code-extension/commands-slash-commands#slash-commands) slash picker too. In the `/` menu, each skill's description starts with its scope: `project`, `user`, or `vibe`. A skill named like a built-in command isn't listed. Type `/skill-name` followed by your request, for example `/code-review focus on error handling`. Vibe adds the skill's instructions to your message. ### Plugins [Plugins](/vibe/code/cli/plugins) are packages that bundle skills with other extensions, such as MCP servers, hooks, and subagents. Vibe loads them from `~/.vibe/plugins/` and, in trusted folders, from `./.vibe/plugins/`. Vibe prefixes plugin skills with the plugin name, for example `/vibe:skill-creator`. Run `/plugins` to list the plugins in your session, and `/reload-plugins` to pick up changes. ### Stay in control - **Review a skill before enabling it** if it can call write-capable tools. - To limit what a skill can do, **restrict the agent's tools and permissions**. `allowed-tools` doesn't restrict anything. - Keep project-specific skills in `./.vibe/skills/` so collaborators can review them in code review. --- # Terminal support Source: /vibe/code/cli/terminal-support > Choose a recommended terminal for the Vibe CLI and work around missing features in tmux, SSH sessions, IDE terminals and Windows. The Vibe CLI runs in any modern terminal emulator, but terminals don't all support the same features. When a terminal lacks a feature, Vibe keeps working and falls back to a simpler behavior. This page lists what Vibe uses, which terminals we recommend, and how to work around missing features. ### Recommended terminals We test Vibe most on these terminals and support them best, so we recommend them: | Operating system | Terminal | |---|---| | macOS | [Ghostty](https://ghostty.org/), [Kitty](https://sw.kovidgoyal.net/kitty/) | | Linux | [Ghostty](https://ghostty.org/), [Kitty](https://sw.kovidgoyal.net/kitty/) | | Windows | [Windows Terminal](https://aka.ms/terminal) | This isn't a full compatibility list. Vibe can work very well in other terminals too, but some features may behave differently. See [Notes by environment](#notes-by-environment) for known differences. ### Terminal features Vibe uses | Feature | What Vibe uses it for | Without it | |---|---|---| | Enhanced keyboard reporting ([Kitty keyboard protocol](https://sw.kovidgoyal.net/kitty/keyboard-protocol/)) | Tells `Shift+Enter`, `Cmd` shortcuts, and other modified keys apart from plain keys. | `Shift+Enter` submits instead of inserting a new line. Use `Ctrl+J`. | | Mouse reporting | Clicking options and links, scrolling the chat, dragging the scrollbar, and selecting text. | Use the keyboard to navigate and `Shift+Up` or `Shift+Down` to scroll. | | Clipboard access | Copying selections and `/copy` output. Vibe uses `pbcopy` on macOS, `clip` on Windows, and `wl-copy`, `xclip`, or `xsel` on Linux. Over SSH, it uses the OSC 52 escape sequence instead. | Copy fails. Select text with your terminal's native selection instead (see [Select and copy text](#select-and-copy-text)). | | Focus reporting | Ringing the bell and updating the terminal title only when the terminal isn't focused. Pausing the cursor blink while unfocused. | Vibe can't tell when you switch away, so it doesn't send bell notifications. | | Background color query (OSC 11) | Picking a light or dark theme when `theme = "auto"`. | Vibe uses your OS light or dark setting. Pick a theme with `/theme`. | | 24-bit color | Rendering themes and syntax highlighting in full color. Vibe enables it when `COLORTERM` is `truecolor` or `24bit`, and always on Windows. | Vibe falls back to the 256-color palette. | | Bracketed paste | Pasting multiline text as one message. | Each pasted line can be sent as a separate message. On Windows, where this feature isn't available, Vibe groups fast keystrokes into one paste instead. | ### Notes by environment #### macOS Terminal and iTerm2 - Neither terminal enables enhanced keyboard reporting, so `Shift+Enter` submits the message. Press `Ctrl+J` to insert a new line. - In iTerm2, hold `Option` while dragging to use iTerm2's own selection instead of Vibe's. #### WezTerm WezTerm doesn't enable enhanced keyboard reporting by default, so `Shift+Enter` submits the message. Press `Ctrl+J` to insert a new line. #### GNOME Terminal and other VTE-based terminals - Install `wl-copy` (Wayland), `xclip`, or `xsel` so Vibe can copy to the clipboard. - These terminals ignore OSC 52, so copying from Vibe over SSH doesn't reach your local clipboard. Use `Shift` and drag to select with the terminal instead. #### Windows - Run Vibe in Windows Terminal. Other Windows consoles, such as Git Bash's default window (mintty), may not handle every key. - Image paste and `/paste-image` are macOS only. #### tmux, screen, and Zellij - Vibe runs in the alternate screen, so the multiplexer's scrollback and copy mode don't contain the conversation. Scroll inside Vibe with `Shift+Up` and `Shift+Down`, or with the mouse wheel when Vibe captures the mouse. - Vibe skips background color detection inside a multiplexer and uses your OS setting. Pick a theme with `/theme` if it doesn't match. - Inside tmux, Vibe copies through tmux's own clipboard forwarding, which also fills the tmux paste buffer, so you don't need to enable passthrough unless tmux's `set-clipboard` option is `off`. Over SSH, your local terminal must support OSC 52 for copied text to reach your clipboard. - When tmux's `mouse` option is off, the default in older tmux versions, Vibe acts as if `enable_mouse_capture = false`: your terminal's selection and copy work without holding a modifier key, but clicks and the mouse wheel may not reach Vibe. Add `set -g mouse on` to `~/.tmux.conf` to let Vibe handle the mouse. Vibe shows a warning about this at startup; press `Ctrl+N` to hide it for good. - tmux may not forward `COLORTERM`. If colors look washed out, set `COLORTERM=truecolor` before running Vibe. - Some modified keys don't pass through every multiplexer. Use the alternative shortcuts in [Commands and shortcuts](/vibe/code/cli/commands-shortcuts#keyboard-shortcuts), such as `Ctrl+J` for a new line. #### SSH sessions Over SSH, Vibe copies through OSC 52 instead of a local clipboard tool. Your local terminal must support OSC 52 for copied text to reach your clipboard. #### IDE terminals Terminals built into VS Code, Cursor, and JetBrains IDEs can keep some shortcuts for the editor, so the key never reaches Vibe. Use the alternative shortcuts in [Commands and shortcuts](/vibe/code/cli/commands-shortcuts#keyboard-shortcuts), or change the IDE's terminal keybindings. ### Select and copy text Vibe captures the mouse, so dragging selects text in Vibe and copies it when you release the button. Set `autocopy_to_clipboard = false` to turn off automatic copying. To use your terminal's native selection instead, hold a modifier while dragging: - `Shift` in most terminals, including Ghostty, Kitty, WezTerm, GNOME Terminal, and Windows Terminal. - `Option` in iTerm2. - `Fn` in macOS Terminal. To always use your terminal's selection, set `enable_mouse_capture = false` in `/config`, or set the `VIBE_ENABLE_MOUSE_CAPTURE=false` environment variable. Depending on the terminal, clicks in Vibe may then stop working. Scroll the chat with `Shift+Up` and `Shift+Down`. Right-click paste may not work while Vibe captures the mouse. Paste with your terminal's keyboard shortcut instead, such as `Cmd+V` or `Ctrl+Shift+V`. See [Commands and shortcuts](/vibe/code/cli/commands-shortcuts#keyboard-shortcuts) for the full list of shortcuts, and the [Configuration reference](/vibe/code/cli/configuration-reference) for the settings mentioned on this page. ### Report a terminal issue If a key or display problem persists, [open an issue](https://github.com/mistralai/mistral-vibe/issues) and include: - The terminal name and version. - Your operating system. - Whether you run Vibe inside tmux, screen, Zellij, an SSH session, or an IDE terminal. - The output of `vibe --version`. --- # Work with the CLI Source: /vibe/code/cli/work-with-cli > Use the Vibe Code CLI in interactive or programmatic mode: reference files, run slash and shell commands, and review changes before they apply. Once the CLI is installed and your API key is set, you're ready for day-to-day work. The CLI runs in **two modes**: *interactive* for chat and exploration, and *programmatic* for scripting and CI. ### Start the CLI in your project Navigate to your project root and run: ```bash vibe ``` You can also start with an initial prompt: ```bash vibe "Refactor the main function in cli/main.py to be more modular." ``` The CLI launches a terminal chat interface. From there, you can iterate on coding tasks, reference files, run shell commands, and switch agents without leaving the terminal. ### Interactive mode Interactive mode is the default. Use it for exploration, multi-step tasks, and any work that benefits from review and follow-up. #### Reference files with `@` Prefix a path with `@` to attach a file to your prompt. The CLI provides autocompletion as you type: ```txt > Read the file @src/agent.py and suggest improvements. ``` To attach an image, `@`-mention it or paste its file path. On macOS, you can also paste an image from the clipboard with `Ctrl+V` or `/paste-image`. Images work when the active model supports them or when a `vision_model` is configured. Otherwise, the model receives `[Image]` and a link to the image file instead. When the active model supports images, the agent can also open an image file from your project with `read_file` and see it, for example a screenshot or a diagram you ask it to look at. #### Run built-in commands with `/` Type `/` to open the slash-command picker with autocompletion. Use it for built-in commands like `/help`, `/model`, `/config`, or any command exposed by an installed skill. See [Commands and shortcuts](/vibe/code/cli/commands-shortcuts) for the full list. ```txt > /model ``` #### Run shell commands with `!` Prefix a command with `!` to run it directly in your shell, bypassing the agent: ```txt > !ls -l ``` The agent sees the command and its output as context for your next message. Commands that Vibe runs on your machine, whether the agent's shell commands or your `!` commands, get `VIBE_SESSION=1` in their environment. Scripts can check it to detect that they run under Vibe. #### Send messages while the agent works Press `Enter` while the agent works to queue a message. Vibe sends all queued messages together when the turn ends. To hand them to the agent before the turn ends, press `Enter` again with an empty input. When the agent only waits for subagents or background commands, your message reaches it at once. Press `Up` to select a queued message, then `Enter` to edit it or `Backspace` to remove it. `Escape` interrupts the agent and pauses the queue; press `Enter` to send the paused messages. Shell (`!`) commands and most slash commands need an idle agent: while it works, Vibe refuses them with a notice above the input. Read-only commands such as `/status`, display settings such as `/theme`, and `/branch` run right away. The **» Queued** header above queued messages shows the queue's keys: `Enter` to steer the agent with them, and `Ctrl+C` to cancel the last queued message. #### Useful in-session shortcuts | Shortcut | Action | |---|---| | `Shift+Tab` | Cycle through agents (ask, accept-edits, smart-approve, auto-approve). | | `Ctrl+O` | Toggle the tool output view. | | `Ctrl+G` | Edit the current input in an external editor. | | `Ctrl+R` | Search your prompt history. | | `Escape` | Interrupt the current operation. | See [Commands and shortcuts](/vibe/code/cli/commands-shortcuts) for the full list of slash commands and shortcuts. The top border of the input box shows the active model and its thinking level. Click the model to open `/model`. The footer shows the working directory and how much of the context window is used. When the directory is shortened, click the copy icon after it to copy the whole path. Click the token counter to open `/context`. With a Mistral plan and a Mistral model, the footer also shows how much of your organization's monthly Vibe Code usage is spent, if you're allowed to see it. Without pay-as-you-go, the gauge turns yellow, then red, as usage nears the limit. With pay-as-you-go, it reads `PAYG`. #### Status rail The status rail sits at the right of the loading line, above the input box. It shows one chip per item, each a count then a name, separated by `·`: | Chip | Shows | |---|---| | `◐ 1 agent` | Subagents. | | `▪ 2 tasks` | Background tasks. | | `● PR #123` | The session's pull or merge request, or `● 2 PRs` when there are several. The dot is green when mergeable, red when action is needed or the PR is closed, purple when merged, and grey when it's a draft or waiting. A bold label means a new PR or a status change you haven't seen yet. | | `▶ goal 4m` | The goal: the time spent while it runs, `‖ goal paused` when paused, and `✓ goal` once complete. | | `≡ 2/5` | The todo list: done items over total. | A dimmed `Ctrl+N to navigate` hint leads the rail. On narrow terminals, chips shrink to short forms, such as `◐ 1`, before any is dropped. Press `Ctrl+N` to focus the rail. Each chip then shows a letter: `s` subagents, `b` background tasks, `p` pull requests, `g` goal, `t` todo list. Press a letter to open that item's window in place of the input box. The letters disappear after one key. To move step by step instead, use `Left`/`Right` or `Tab`/`Shift+Tab`, then press `Enter`. `Escape` goes back. `Ctrl+N` also works while a picker such as `/model` or `/context` is open: it closes the picker first. You can also click a chip to open its window, and click it again to close it. Each window has its own keys: - **Subagents**: `Enter` views the highlighted subagent. - **Background tasks**: `s` stops the highlighted task. - **Pull requests**: the same list and keys as `/pr`. - **Goal**: `p` pauses or resumes, `e` edits, and `c` clears the goal. - **Todo list**: `Up`/`Down` scroll. To hide the PR chip, set `enable_pr_monitoring = false`. #### Work toward a goal Give the session a goal with `/goal`, and Vibe keeps working on it, turn after turn, until it's done: ```txt > /goal make every test in tests/api pass ``` While the goal is active and the agent is idle, Vibe starts the next turn on its own, after any queued messages. The goal stops when the agent marks it complete or blocked, or when it reaches its token budget. Press `Escape` to pause it. Run `/goal` without an argument to see the goal's status, tokens used, and time spent. `/goal edit` changes the objective and the token budget, and `/goal pause`, `/goal resume`, and `/goal clear` manage it. `max_goal_token_budget` in `config.toml` caps a goal's token budget, and is the budget of a goal set without one. A resumed session brings its goal back paused, and Vibe offers to resume it. Goals aren't available in programmatic mode. ### Programmatic mode Programmatic mode is built for **scripting, CI jobs, and any non-interactive use**. Use the `--prompt` (`-p`) flag to run a single task and exit: ```bash vibe --prompt "Analyze the codebase" --max-turns 5 --output json ``` You can also read the prompt from a file with `--prompt-file PATH`, or pipe it on stdin with `-p` and no text. Programmatic mode doesn't start the chat interface and disables interactive tools such as the question prompt. It runs with your `default_agent` (`accept-edits` unless you change it). Nobody can answer an approval prompt, so Vibe denies any tool call that needs one. To approve every tool call, pass `--auto-approve` (or its alias `--yolo`): ```bash vibe --prompt "Fix the failing tests" --auto-approve ``` If your administrator sets [`enable_auto_approve = false`](/vibe/code/cli/admin-config#block-auto-approve), Vibe ignores `--auto-approve`. Allow the tools the run needs with [`permission = "always"`](/vibe/code/safety-approvals-permissions#set-per-tool-permissions) or an [`allowlist`](/vibe/code/safety-approvals-permissions#bash-allow-and-deny-lists) instead. Useful options: - `--model ALIAS` runs a new session on that model without changing your `active_model`. - `--thinking LEVEL` runs a new session at that thinking level, such as `low` or `high`, without saving it. - `--system-prompt-file PATH` replaces Vibe's own instructions in the system prompt with the file's text. Project context and `AGENTS.md` files still follow it. - `--max-turns N` caps the number of assistant turns. **Recommended** to bound run length. - `--max-tokens N` caps the total prompt and completion tokens for the run, subagents included. - `--max-price DOLLARS` caps the cost of the run, subagents included. A model without a price counts as free, so its calls never count toward the limit. - `--time-limit SECONDS` stops the run after a deadline. You can resume the session later. `SIGTERM` stops a run the same way. - `--enabled-tools TOOL` restricts which tools the agent can use, and disables all others. Supports exact names, glob patterns (`bash*`), and regex with the `re:` prefix (`re:^serena_.*$`). Repeat the flag for several tools. - `--disabled-tools TOOL` disables tools after `--enabled-tools` filtering. Repeat the flag for several tools. - `--output text|json|streaming` sets the output format. `text` (default) prints the final answer, `json` prints the session messages as a JSON array when the run ends, and `streaming` prints one JSON object per message as the run progresses. - `--output-dir DIR` writes an `export.json` file (Vibe version, effective config, token usage, cost, stop reason, and outcome) and a copy of the session to `DIR`, however the run ends. The export also lists each subagent with its status, model, token usage, cost, and steps, and copies its session. Before it exits, a programmatic run waits for the subagents its last turn left running. `--time-limit` and other stops interrupt them. Vibe reports each denied tool call on stderr, and in the `warnings` of `export.json` when you pass `--output-dir`. If the agent finishes without an answer, Vibe says so on stderr. > **Warning:** > > `--max-price` relies on the model prices in your config file, which can be missing or outdated. Treat the reported cost as **indicative only**, not as a hard budget limit. The exit code tells you how the run ended: | Exit code | Meaning | |---|---| | `0` | The agent finished. | | `1` | The run couldn't start, for example because of an invalid flag or config. | | `2` | The model API or the runtime failed. | | `3` | The agent stopped before finishing: a limit was reached, the run was stopped, or the model declined to answer. | ### Choose how the CLI handles approval The CLI ships with several built-in agents. By default, it uses `accept-edits`. Pick another one with `--agent`: ```bash vibe --agent ask vibe --agent smart-approve vibe --agent auto-approve ``` Switch agents mid-session (interactive mode only) with `Shift+Tab`. Set the default agent for interactive and programmatic sessions in `config.toml`: ```toml default_agent = "ask" ``` See [Agents](/vibe/code/cli/agents) for the full list and behavior. ### Review changes before they apply For tasks with substantial file edits or shell commands, the CLI: 1. Shows a **preview** of the change or command before running it. 2. **Asks for confirmation**, unless the active agent auto-approves. 3. **Displays the result** after each step. > **Tip:** > > Use the `ask` agent when you want to review every tool call, file edits included, before it runs. See [Agents](/vibe/code/cli/agents). ### Trust folders The CLI checks whether the current working directory is trusted before loading project-level configuration, skills, or agent files. The first time you run the CLI in **interactive mode** from a new directory that contains trustable files, it asks you to confirm the folder. Trust enforcement applies in **both** interactive and programmatic modes, but the confirmation prompt only appears interactively. In programmatic mode, use `vibe --trust` to grant temporary trust for the current invocation only. Vibe stores trusted folders in `~/.vibe/trusted_folders.toml`. Run `/trusted-folders` to review or change them; changes apply the next time Vibe starts. When you start Vibe in your home directory or another risky folder, it shows a warning at startup. To hide it, set `show_dangerous_directory_warning = false`. ### Continue or resume sessions The CLI can pick up where you left off: - `vibe --continue` (or `-c`) resumes the last session of this terminal in the current directory, or the directory's most recent session when this terminal has none there. - `vibe --resume` opens a picker of past sessions. - `vibe --resume SESSION_ID` resumes a specific session. Pass the full ID or the 8-character short ID that Vibe shows. In programmatic mode, combine `-p` with `--continue` or `--resume SESSION_ID` to continue a saved session. - `/resume` (or `/continue`) inside a session opens the same picker. Press `d` twice to delete the highlighted session. - `/branch` forks the current conversation into a new session that you can resume later, and leaves the current session unchanged. - `/rewind` (or `Escape` twice on an empty input) goes back to an earlier message so you can edit it and continue from there. A resumed or continued session keeps the agent and model it last ran on, even if your `default_agent` changed or you pass another `--agent`. Switch agents inside the session to change it. If that agent is no longer available, Vibe uses `--agent` or your `default_agent` instead. The picker, `--continue`, and `--resume` without an ID only list sessions started in the current directory. `--resume SESSION_ID` works from anywhere. To choose which terminal `--continue` follows, set `VIBE_TERMINAL_KEY` to a name of your own. Set it to an empty value to resume the directory's most recent session from any terminal. Session continuation requires session logging, which is enabled by default. If resume stops working after editing your configuration, make sure logging is still enabled in `~/.vibe/config.toml`: ```toml [session_logging] enabled = true ``` ### Work in a git worktree Use `--worktree` to run a session in its own [git worktree](https://git-scm.com/docs/git-worktree), so the agent's changes stay apart from your current checkout: ```bash vibe --worktree my-feature ``` Vibe creates the worktree under `~/.vibe/worktrees/` on a branch named `my-feature`, or reuses it if it already exists. Without a name, Vibe names the worktree after your prompt. Put the prompt first, because `--worktree` reads the next argument as the name: ```bash vibe "Fix the login bug" --worktree ``` When an interactive session ends, Vibe removes a worktree it created if it holds no changes, and asks you otherwise. Programmatic runs leave the worktree in place. On macOS, Vibe creates new worktrees of a trusted repository from a template checkout, so they take less disk space and are created faster. Vibe keeps one template checkout per repository under `~/.vibe/worktrees/.templates` and sets `extensions.worktreeConfig` in the repository's `.git/config`. To create regular checkouts instead, set `worktree_copy_on_write = false`. `--worktree` trusts the worktree for that run, so you don't need `--trust`. Combine it with `-c` or `--resume` to resume a session started in that worktree. --- # Code on Desktop Source: /vibe/code/desktop > What Vibe Desktop does on macOS and Windows: run coding sessions locally or in a cloud sandbox, follow the agent, and review the result. Vibe Desktop brings coding and agent sessions together in one app for **macOS** and **Windows**. Linux support is coming soon. Work on a local repository or in a cloud sandbox, follow the agent's progress, and review the result in the same interface. Desktop combines the local development capabilities of the [Vibe CLI](/vibe/code/cli) with the cloud-session workflow of [Vibe Code Web](/vibe/code/web). Local sessions share the CLI's core agent engine and session logs. Desktop does **not** embed or run the CLI itself, and no separate CLI installation is required. Tools, their implementations, and prompts can differ between interfaces. ### Choose where to work A **session** is a conversation opened against a repository. Choose the environment that fits your task: **Local sessions** Work on your machine with your local files, shell, services, and development environment. Choose this when you already have a checkout or need to test against local dependencies. Start with [Your first coding task](/vibe/code/desktop/first-coding-task). For independent tasks in the same repository, [worktrees](/vibe/code/desktop/parallel-tasks#isolate-edits-with-worktrees) keep file changes separate. **Cloud sessions** Work in an isolated cloud sandbox against repositories connected to a project, rather than in your local checkout. See the shared cloud guides for [Projects](/vibe/code/web/projects), [Sessions](/vibe/code/web/sessions), [Sandbox environment](/vibe/code/web/sandbox-environment), and [Limits and lifecycle](/vibe/code/web/limits-and-lifecycle). Local-session behavior should not be inferred from the cloud sandbox documentation. ### From a task to a reviewed change **Start a task → Follow the work → Review the result.** Add parallel work and conversation organization when you need them. --- # Your first coding task Source: /vibe/code/desktop/first-coding-task > Fix one failing test in a local repository with Vibe Desktop, from opening a session to following the investigation and reviewing the result. Start with a small change you can verify: fix one failing test in a repository on your machine. This walkthrough takes you from opening a conversation to reviewing the result. A worktree, delegated agent, or pull request is not required for this first task. ### Open your repository 1. Install Vibe Desktop for macOS or Windows and sign in with your Mistral account. 2. Switch to **Code**. 3. Start a **local session** against the repository you want to work on. The agent reads and edits files in that checkout and runs commands in your development environment. You do **not** need to install the Vibe CLI: Desktop and the CLI share a core agent engine and session logs, but Desktop does not embed or launch the CLI application. Tools, tool implementations, and prompts can differ. If you do not have a local checkout, choose a cloud session instead. See [Choose where to work](/vibe/code/desktop#choose-where-to-work) and the [cloud-session setup](/vibe/code/web). The example below uses a local session. > **Tip:** > > **Projects group related work together**, helping you organize sessions for a repository or task. ### Describe the failing test Choose a real failing test from your project. Include its name, file path, error output, and test command when you know them. For example, adapt this prompt to your repository: ```txt The authentication test rejects a valid login. Reproduce the failure with the project's test command, identify the cause, and make the smallest fix. Do not weaken the test or change unrelated behavior. Run the relevant tests and explain the result. Leave the changes uncommitted for me to review. ``` Paste the actual failure below your prompt. A specific problem gives the agent a clear starting point and gives you a way to check whether the change solves it. ### Follow the investigation Read the file edits, commands, and results in the conversation. Respond to approval requests and questions; the agent may need you to clarify expected behavior or approve a command. If it starts changing unrelated code, interrupt it and redirect the task. For example: ```txt Keep this change limited to the failing authentication test and its cause. Explain why any additional file needs to change before editing it. ``` To inspect a file or run your own command, see [Follow and inspect work](/vibe/code/desktop/follow-work). Check which conversation is selected before using its panels. ### Review the result 1. Read the agent's explanation of the failure and its fix. 2. Open **+ → Git Changes** to inspect the diff, and **+ → Files** to read the changed files. 3. Confirm the change addresses the expected behavior without weakening the test or including unrelated edits. 4. Check the test command and its output. Run the relevant tests yourself in **+ → Terminal** if needed. A successful test run is evidence for the fix, not a substitute for reviewing it. If a test could not run, ask what prevented it and resolve that limitation before treating the change as ready. You now have a reviewed local change. Commit it when you are satisfied; create a pull request only if your workflow calls for one. Continue with [Review changes and pull requests](/vibe/code/desktop/review-changes) for delivery and PR review. ### What to do next - [Follow and inspect work](/vibe/code/desktop/follow-work) when you need files, terminal output, or reference pages beside the conversation. - [Work on parallel tasks](/vibe/code/desktop/parallel-tasks) when another task needs its own checkout or delegated conversation. - [Organize your conversations](/vibe/code/desktop/organize-conversations) as your ongoing work grows. --- # Follow and inspect work Source: /vibe/code/desktop/follow-work > Follow the agent's progress in Vibe Desktop, inspect files and command output in panels, and run your own commands beside the work. Once you have [started a task](/vibe/code/desktop/first-coding-task), use the conversation to follow the agent's investigation and the panels to inspect its evidence. Keep files, command output, and reference pages beside the work instead of switching applications. ### Read progress and respond The conversation shows the agent's file edits, commands, and results. Read its questions and approval requests before answering. If the work drifts from your request, interrupt the agent and explain what needs to change. An agent's summary is not the same as a command result. Check the actual output when you need to know whether a test, build, or other command succeeded. ### Select the right conversation **The right panel belongs to the selected conversation**. Its browser pages, terminal, file viewer, background processes, and pull request views are session-specific, including for nested sub-sessions. Select the conversation that owns the work before opening a file, running a command, stopping a process, or inspecting a PR. Switching conversations changes the panel context. Separate session environments do not automatically mean separate Git checkouts. Two local conversations in the same checkout still share files. Use [worktrees](/vibe/code/desktop/parallel-tasks#isolate-edits-with-worktrees) when tasks need file isolation. ### Inspect repository files Open **+ → Files** from the upper-right controls: 1. Expand folders in the repository's file tree to locate a file. 2. Select the file to open its contents in the viewer. 3. Check the file name, repository path, and line numbers for text files. Files appear as tabs in the panel. Keep several files open, switch between them, or close a tab with its close control. You can also keep a file beside a [background command's output](/vibe/code/desktop/follow-work#follow-background-commands). Use this view to explore the code before prompting or inspect a file the agent changed. To read a web page rather than a repository file, use the [browser](/vibe/code/desktop/follow-work#keep-reference-pages-beside-the-work). To inspect the diff, continue with [Review changes](/vibe/code/desktop/review-changes#inspect-the-diff). ### Run your own commands Open **+ → Terminal** from the upper-right controls to run commands alongside the conversation. In a local session, commands run in your local development environment. Check the selected conversation, repository, and working directory first, especially if the task uses a worktree. Use the terminal to reproduce a failure, run a project's tests, or inspect the result independently. Choose the command appropriate to your project rather than assuming every repository uses the same tools. ### Follow background commands Builds, development servers, and file watchers can keep running while the conversation continues. Ask Vibe to start a command in the background when other steps can proceed independently. For a project that uses `pnpm build`, for example: ```txt Start pnpm build in the background. While it runs, review the changes, then check the build output and report the result. ``` The conversation shows a **Started a background process** entry with the command name. Click the command to open its output in a panel tab. You can also open **+ → Background processes** to find commands and their current status. Select a process to inspect its live output. While it is running, its output panel includes a **Stop** button. > **Note:** > > Interrupting the conversation and stopping a background process are different actions. Use the process panel's **Stop** control to stop that command, then check its status. Do not assume it finished because the agent moved on. ### Keep reference pages beside the work Click the **globe icon** in the upper-right controls to open the integrated browser. Use it for documentation, issues, dashboards, or other reference pages while the agent works. The browser shows the page's address and back, forward, and reload controls. Browser pages can stay open as panel tabs beside source files and command output. Select a PR from the **merge icon**'s list to open it here; see [Open a pull request in the browser](/vibe/code/desktop/review-changes#open-a-pull-request-in-the-browser) for private-repository access guidance. #### Open a page in an external browser To continue reading a page outside Vibe: 1. Click the **Open in external browser** button to the right of the address bar. Its icon is an arrow pointing out of a square. 2. In the **Open in external browser?** dialog, check the URL. The dialog explains that the page will open outside Vibe. 3. Click **Open** to open the page in your external browser, or **Cancel** to leave it in Vibe. Select **Always open links externally** in the dialog if you want links to open externally by default. Opening a page externally does not grant repository access or transfer your sign-in from the integrated browser. For a private PR, use an account with access in the browser where you open it. ### Find your way around | Area | Use it to | |---|---| | **Left sidebar** | Navigate projects and conversations. | | **Main chat view** | Send prompts, follow progress, and answer questions or approval requests. | | **Bottom panel** | Work in the integrated terminal alongside the conversation. | | **Side panels** | Inspect files, reference pages, and command output. | | **Upper-right controls** | Open the panels listed below. | ### Panel reference These controls apply to the selected session or sub-session: | Feature | Where to open it | Use it to | |---|---|---| | **Pull requests** | **Merge icon** | Find a PR and read its displayed status. | | **Browser** | **Globe icon** | Open reference pages in the app. | | **Files** | **+ → Files** | Browse repository files and read their contents. | | **Git Changes** | **+ → Git Changes** | Inspect the Git changes for the selected session. | | **Terminal** | **+ → Terminal** | Run your own commands. | | **Debug** | **+ → Debug** | Open the Debug panel. | | **Background processes** | **+ → Background processes** | Find running commands and inspect their output. | ### Review what changed When the task is ready, move from watching progress to [reviewing changes and test results](/vibe/code/desktop/review-changes). If you need another task to run independently, see [Work on parallel tasks](/vibe/code/desktop/parallel-tasks). --- # Organize your conversations Source: /vibe/code/desktop/organize-conversations > Group sessions in projects, pin or archive sessions and sub-sessions, and switch between them with the keyboard in Vibe Desktop. Use projects and the left sidebar to keep track of ongoing work. A session is a conversation about a repository or task; [sub-sessions](/vibe/code/desktop/parallel-tasks#coordinate-work-in-sub-sessions) appear nested under the main conversation. ### Group related work in projects **Projects group related work together.** Use a project to organize conversations for the same repository or task. For cloud repositories and project setup, see the shared [Projects guide](/vibe/code/web/projects). Return to the main conversation to follow the overall task; select a nested sub-session to inspect its independent work. Panel contents belong to the selected conversation, not the whole project; see [Select the right conversation](/vibe/code/desktop/follow-work#select-the-right-conversation). ### Pin a session 1. Hover over a session's name in the sidebar. 2. Click the **pin button**, on the left of the two hover controls. The **archive button** is on its right. 3. The session moves into **Pinned**, above **Projects** and below the sidebar's feature entries. Pinning changes where the session appears, making it easier to return to. Its nested sub-sessions remain visible beneath it in the sidebar. ### Archive a session or sub-session - **Session**: hover over its name and click the **archive button**, on the right of the pin button. - **Sub-session**: hover over its nested name and click its **archive button**. Use archiving to organize the sidebar when a conversation is no longer part of your active work. Archiving is not a Git operation: it should not be used as a substitute for reviewing, committing, or delivering changes in the repository. ### Switch sessions with the keyboard On macOS, hold `Cmd` to see the numbered session shortcuts in the sidebar, then press a number from `1` to `9` to switch to that conversation: `Cmd+1` opens the first numbered conversation, `Cmd+2` the second, and so on. The numbering follows the sidebar from top to bottom, including nested sub-sessions. For example, a pinned main session can be **1**, its sub-sessions **2–4**, and conversations in **Projects** **5–9**. Use the numbers currently displayed rather than assuming a conversation always has the same shortcut after the list changes. For other navigation and actions, use the [command palette](/vibe/code/desktop/organize-conversations#command-palette). ### Command palette On macOS, press `Cmd+K` to open the command palette. Type in **Start typing…** to find an action, or use the **Up** and **Down** arrow keys to move through the list. The palette groups actions by area: | Group | Available actions | |---|---| | **Chats** | **New session**. | | **Session** | **Session actions** for the current conversation. | | **Meeting notes** | **Start recording**. | | **Modes** | Switch to **Work** or **Code**. | | **Context** | Open **My connectors** or **Instructions**. | | **Extensions** | **Go to Extensions**. | | **Settings** | **Change theme**, **Log out**, adjust or reset font size, and **Open settings**. | | **View** | **Toggle sidebar**, **Go back**, and **Toggle Panels**. | | **Window** | **Close window**, **Reload**, and **Force reload**. | | **Actions** | Open **Keyboard shortcuts**. | Actions with a keyboard shortcut show it on the right. For example, the macOS palette shows `Cmd+N` for **New session**, `Cmd+B` for **Toggle sidebar**, `Cmd+J` for **Toggle Panels**, and `Cmd+,` for **Open settings**. Consult **Keyboard shortcuts** for the full list shown by your app rather than assuming shortcuts are identical across keyboard layouts and operating systems. On macOS, use `Shift+Cmd+1` to switch to **Work** and `Shift+Cmd+2` to switch to **Code**. These shortcuts switch modes, not conversations. ### Return to active work Start [your next coding task](/vibe/code/desktop/first-coding-task), [follow its progress](/vibe/code/desktop/follow-work), or [review a completed change](/vibe/code/desktop/review-changes). Use [parallel tasks](/vibe/code/desktop/parallel-tasks) when work needs separate checkouts or delegated conversations. --- # Work on parallel tasks Source: /vibe/code/desktop/parallel-tasks > Split work in Vibe Desktop with git worktrees, sub-sessions and subagents, then bring the results back together in the main session. Once you are comfortable with [a first coding task](/vibe/code/desktop/first-coding-task), split work when its parts can progress independently. Decide separately how to isolate files and how to delegate conversations. | Need | Use | |---|---| | Keep edits to the same repository separate | **Git worktrees**: separate checkouts, usually on different branches. | | Coordinate independent tasks in visible, nested conversations | **Sub-sessions**: separate conversations under a main session. | | Delegate part of the investigation and inspect the agent's work | **Subagents**: delegated agents with read-only conversation views. | A separate conversation does not isolate repository files. Combine delegated work with worktrees when parallel tasks need independent checkouts. ### Isolate edits with worktrees A **Git worktree** is a separate checkout of a repository, usually on a different branch. Worktrees share Git history but have separate working files, so you do not need to switch branches in your original checkout. Use a worktree when you want to: - Run parallel coding tasks without editing the same files. - Start a new task without stashing or overwriting an unfinished change. - Review or test another branch in a separate directory. Ask Vibe to use a worktree before it starts editing: ```txt Use a new Git worktree for this task. Fix the failing authentication tests, leaving my current checkout unchanged. ``` Two conversations in the same checkout still share files; two worktrees keep their file changes separate. Review the branch and any resulting PR. Keep the worktree until its changes have been committed and delivered or you have explicitly decided to discard them. > **Note:** > > Worktrees isolate working files, not everything a task uses. Dependencies, environment variables, external services, and server ports may still need separate setup. Two development servers cannot both use the same port just because they run in different worktrees. ### Coordinate work in sub-sessions The original conversation is the **main session**. It can create **sub-sessions** for independent parts of a task and coordinate their results. For example: ```txt Update the feature documentation. Create a sub-session for the French translation and another to review the examples. Keep coordinating the work here and incorporate their findings. Use separate worktrees for any tasks that edit the same repository independently. ``` The main conversation shows a **Started a session** entry. The new conversation appears nested under the main session in the project's left sidebar. Select it to inspect its progress, then return to the main session for the overall task. Each sub-session has its own environment and panel contents. Check the selected conversation before using its files, terminal, browser, or process output; see [Select the right conversation](/vibe/code/desktop/follow-work#select-the-right-conversation). ### Follow updates to the main session Sub-sessions can send messages to the main session with findings, results, or questions. The main conversation shows a **Received a message from …** entry with the sender's name and message content. The sender link identifies the sub-session that produced the update. Review those updates and the resulting changes. The main session incorporates results, but a completed conversation does not by itself prove the overall task is ready. ### Inspect delegated agents The main agent can also spawn **subagents** for parts of a task, such as auditing a section of the codebase while it keeps working. Their conversation views are **read-only**. Open a subagent's conversation from **Subagents** in the session's top-right panel, or click a **Started subagent `name`** entry in the main conversation. The view shows the instructions the subagent received, its steps, and their results. The header shows its name and status: | Status | Meaning | |---|---| | `Running` | The subagent is working. | | `Waiting for input` | It is paused; read the conversation to understand what it needs. | | `Idle` | It finished its current task; the main agent can send more work. | | `Failed` | It failed; hover over the status to see the reason. | You cannot send messages through a read-only subagent view. Give new instructions or ask to stop its work through the main agent. These views differ from sub-sessions, which appear as separate nested conversations in the project sidebar. For the CLI's custom-subagent configuration, see [Agents](/vibe/code/cli/agents#custom-subagents). Desktop shares the CLI's core agent engine rather than running the CLI application; tools and prompts can differ. ### Bring the results together Return to the main conversation, inspect each task's changes and test results, and continue with [Review changes and pull requests](/vibe/code/desktop/review-changes). Use [Organize your conversations](/vibe/code/desktop/organize-conversations) to switch between nested conversations or archive them when they are no longer active. --- # Review changes and pull requests Source: /vibe/code/desktop/review-changes > Inspect the diff, verify the behavior, check pull request status and resolve conflicts before delivering a change made in Vibe Desktop. A task is not ready just because the agent has stopped working. Inspect the changes, verify the behavior, then decide how to deliver them. A local change does not need a pull request unless your workflow requires one. ### Inspect the diff Select the conversation that worked on the task, then open **+ → Git Changes**. The panel belongs to that conversation's environment; see [Select the right conversation](/vibe/code/desktop/follow-work#select-the-right-conversation). Select a changed file in the list to open its diff. Use the two view buttons at the top right of the diff viewer to switch layouts: | Mode | Button | What it shows | |---|---|---| | **Unified** | Left button, with a single column of lines | Removed and added lines together in one view. | | **Split** | Right button, with two columns of lines | The before version on the left and the after version on the right, side by side. | Removed lines are highlighted in red; added lines are highlighted in green. Use Unified to read a change in one column, or Split to compare the two versions side by side. Compare the diff with your original request: - Does it solve the problem or implement the expected behavior? - Are the changes limited to the intended files and scope? - Were tests weakened, unrelated behavior changed, or necessary edge cases missed? Use **+ → Files** to read the surrounding code. Ask the agent to explain an unexpected change before accepting it. ### Verify the behavior Read the commands the agent ran and their output. Use **+ → Terminal** to run relevant tests yourself, or inspect [background command output](/vibe/code/desktop/follow-work#follow-background-commands) if the checks are still running. Confirm that the original failure is resolved and that relevant tests pass. If verification is blocked by missing dependencies, credentials, or services, record that limitation and resolve it before treating the change as ready. When you are satisfied, commit the change and deliver it according to your team's workflow. If that workflow uses pull requests, ask the agent to create one for the reviewed branch and leave it open for review. Creating or opening a PR is not the same as merging it. ### Check a pull request's status 1. In the upper-right corner, click the **merge icon**. 2. The **Pull requests** panel lists pull request titles, numbers, and their displayed status. 3. Find the PR by its title or number and read its status, such as **Conflicts**. A count can appear next to the icon — for example, **2**. Clicking the icon opens the list; it is not an instruction to merge a pull request. ### Open a pull request in the browser Select a pull request in the list to open its link directly in the [integrated browser](/vibe/code/desktop/follow-work#keep-reference-pages-beside-the-work). The page appears as a panel tab alongside the conversation. To review it outside Vibe, click **Open in external browser** to the right of the address bar and confirm with **Open**. See [Open a page in an external browser](/vibe/code/desktop/follow-work#open-a-page-in-an-external-browser) for the dialog and external-link preference. > **Note:** > > Opening a PR link does not grant access to its repository. For private repositories, sign in to the hosting service in the integrated browser with an account that has access. If the page is unavailable, check the URL, your sign-in, and your repository permissions. ### Resolve conflicts, then review again If a pull request displays **Conflicts**, identify it by number or title and ask the agent to resolve them. For example: ```txt Resolve the merge conflicts in pull request #42. Explain how you resolved them, run the relevant tests, and leave the changes for me to review. Do not merge the pull request. ``` Review the resulting changes and test results, then check the pull request's review requirements and checks before merging. Resolving conflicts is not a substitute for reviewing the code or confirming that the checks pass. ### Keep or close out the work After delivering a change, [organize your conversations](/vibe/code/desktop/organize-conversations) to keep the sidebar focused on active work. If the task used a [worktree](/vibe/code/desktop/parallel-tasks#isolate-edits-with-worktrees), keep it until the changes are committed and delivered or you explicitly decide to discard them. Archiving a conversation does not deliver or discard Git changes. --- # Safety, approvals, and permissions Source: /vibe/code/safety-approvals-permissions > Control what Vibe Code can run with agents, smart approve, trusted folders, per-tool permissions and bash allow and deny lists. Vibe Code can read files, edit code, run shell commands, and call external tools **on your behalf**. To keep you in control of what runs and what changes, Vibe Code uses **layered controls**: - **Agents** are configuration overrides: they bundle a system prompt, tool selection, and approval rules. They define what gets auto-approved. - **Trusted folders** define whether Vibe can load project-level configuration, skills, and agent files from the current directory. - **Per-tool permissions** let you tighten or loosen access for specific tools. Vibe also asks for confirmation whenever a tool tries to read, write, or run a command **outside the working directory** and the directories added with `--add-dir`, unless every tool call is auto-approved (`auto-approve` agent or `--auto-approve`). To refuse these calls instead, see [Access outside the working directory](#access-outside-the-working-directory). It also asks before a tool reads or edits `.env` and `.envrc` files, even when the tool's permission is `always`. A path listed in the tool's [`allowlist`](/vibe/code/cli/configuration-reference#per-tool-permissions-tools-tool_name) skips both checks. This page explains how those controls work and how they interact. ### Agents The active agent defines how Vibe asks for approval before running tools, and more broadly, can override the system prompt, the compaction prompt, the model, the available tools, and other settings. Use one of the built-in agents below. To switch, set a default, or create your own, see Agents in the [CLI](/vibe/code/cli/agents) or the [VS Code extension](/vibe/code/vs-code-extension/agents). | Agent | Approval behavior | Use for | |---|---|---| | `ask` | Asks before running any tool. | Exploring an unfamiliar codebase, or any work where you want to vet each action. | | `accept-edits` | **Default.** Auto-approves file edits. Still asks for shell commands and other sensitive tools. | Day-to-day work and refactors you have already scoped. | | `smart-approve` | Classifies each tool call. Runs the calls it judges safe and asks you before risky ones. See [Smart approve](/vibe/code/safety-approvals-permissions#smart-approve). | Day-to-day work with fewer approval prompts. | | `auto-approve` | Auto-approves every tool execution, including shell commands. Your administrator can [disable it](/vibe/code/cli/admin-config#block-auto-approve). | Trusted, sandboxed environments only. **Use with care**. | > **Warning:** > > In **programmatic mode** (`vibe --prompt …`), Vibe uses your `default_agent` like in interactive sessions, and disables interactive tools such as `ask_user_question`. Nobody can answer an approval prompt, so Vibe denies every tool call that needs approval. Pass `--auto-approve` (or `--yolo`) to approve every tool call, only in a sandboxed environment. Vibe ignores these flags when your administrator sets `enable_auto_approve = false`. #### Smart approve Many approval prompts are for actions you approve anyway. The `smart-approve` agent skips those prompts and still asks you before risky actions. Select it with `Shift+Tab`, or start a session with it: ```bash vibe --agent smart-approve # or vibe --smart-approve ``` Smart approve is rolling out gradually. If it doesn't appear when you press `Shift+Tab`, start Vibe with one of the commands above or set `default_agent = "smart-approve"`. For each tool call that needs approval, Vibe goes through these steps in order: 1. **Applies your permission rules first.** Allowlisted commands run without a check, and denylisted commands stay blocked. See [Per-tool permissions](/vibe/code/safety-approvals-permissions#per-tool-permissions). 2. **Reuses approvals you already gave** for the same call in the current session. 3. **Classifies the call.** A model judges the call from your request and the tool arguments. Calls that it judges safe run immediately, with a note that explains why Vibe approved them. 4. **Holds back risky calls.** Vibe sends the reason back to the agent so that it can try a safer approach. Vibe asks you to confirm when the agent repeatedly makes risky calls, retries the same call, or when the classifier can't reach a verdict. A call flagged as risky never runs without your confirmation. In programmatic mode, no one can confirm, so Vibe denies risky calls. > **Warning:** > > Smart approve is a classifier, not a sandbox. A call that it judges safe runs with the same access as your user account. Smart approve reduces prompts, but it doesn't limit what the agent can do. If you work with untrusted code or sensitive credentials, use the `ask` agent or an isolated environment. #### Choose the smart approve model Each classification is a separate model call, and it can use a different model from your session. Vibe picks the classifier model in this order: 1. The model you set with `smart_approve` in `[utility_models]`. 2. Otherwise, a small, fast Mistral model, when your Mistral provider serves one. 3. Otherwise, your session's model, which can cost more per call. Set `smart_approve` to the `alias` of one of your `[[models]]` presets, or to `active` to always use the session's model: ```toml [utility_models] smart_approve = "classifier" [[models]] name = "mistral-small-latest" provider = "mistral" alias = "classifier" ``` A smaller model adds less latency and cost to each tool call. A larger model can classify risk more accurately. If the alias doesn't match a configured model, or `allowed_models` excludes it, Vibe shows a warning and falls back to automatic selection. For all the keys, see [`[utility_models]`](/vibe/code/cli/configuration-reference#utility-models-utility_models) in the configuration reference. ### Trusted folders A project can ship its own Vibe configuration (like agents, skills, MCP servers, and tool permissions) in a `.vibe/` directory at the repository root. Because that configuration **changes how Vibe behaves**, Vibe will only load it from directories **you have explicitly trusted**. Trustable content includes any of the following in the directory or its ancestors: - A `.vibe/` directory with a `config.toml`, `hooks.toml`, or `skills.toml` file, or an `agents/`, `skills/`, `prompts/`, `plugins/`, or `tools/` subdirectory - An `.agents/skills/` directory (Agent Skills standard skills) - An `AGENTS.md` file (project-level agent instructions) How it works: - When you start an interactive session in a directory that contains trustable content and that you haven't trusted, Vibe asks whether to trust it. If you choose **Don't trust**, Vibe asks again next time. - The trust dialog lists the trustable files it detected. Choose **Trust folder**, **Trust full repo** (offered when you start Vibe in a subdirectory of a git repository), or **Don't trust**. The dialog doesn't analyze these files, so review them yourself. - Vibe stores trusted directories in `~/.vibe/trusted_folders.toml`. Run `/trusted-folders` to review or change them; changes apply the next time Vibe starts. - If you decline or have not yet trusted a directory, project-level configuration is ignored and Vibe prints a warning. User-level configuration in `~/.vibe/` still applies. > **Tip:** > > Before trusting a directory, treat its `.vibe/` configuration the same way you would treat any other code in the repository: review it, especially the MCP server definitions and tool permissions, since they can grant Vibe access to external services or local commands. #### Temporary trust (CLI) The `vibe --trust` flag trusts the working directory for the current invocation only and does not persist. **Programmatic mode never prompts for trust.** Use `--trust` to grant temporary trust when scripting Vibe. ```bash # Trust the current project for one run, then exit vibe --trust --prompt "Summarize the project structure" ``` `--worktree` also trusts its worktree for the run. Vibe loads project configuration from directories added with `--add-dir` without asking for trust, so only add directories you trust. ### Per-tool permissions Beyond agent modes, you can lock down or open up individual tools in `config.toml`. This applies to built-in tools (`read_file`, `write_file`, `edit`, `bash`, etc.) as well as MCP tools and connector tools. > **Note:** > > Some built-in tools were renamed: `read` is now `read_file`, and `search_replace` is now `edit`. Vibe migrates the old names in your configuration files automatically. #### Enable or disable tools Toggle tools globally using exact names, globs, or regex patterns: ```toml # Only allow reading files and loading skills enabled_tools = ["read_file", "skill"] # Or disable a specific class of tools disabled_tools = ["bash"] ``` #### Set per-tool permissions Set when Vibe should ask before using a tool, always allow it, or never allow it: ```toml [tools.read_file] permission = "always" [tools.bash] permission = "ask" [tools.write_file] permission = "never" ``` #### Bash allow and deny lists For the `bash` tool, you can also allow or block **specific commands** by prefix. Some read-only commands (`ls`, `pwd`, `cat`, `git status`, etc.) are auto-allowed by default. Set `allowlist` and `denylist` to choose the commands Vibe always runs or always blocks. Each setting replaces its default list, so include the defaults you want to keep: ```toml [tools.bash] permission = "ask" allowlist = ["git status", "pnpm test"] denylist = ["rm -rf"] ``` #### Access outside the working directory By default, Vibe asks before a file or shell tool reaches a path outside the working directory, even through a symbolic link. Set `outside_workdir = "deny"` to refuse these calls instead: the agent gets an error and keeps working. Set it for every tool, or per tool: ```toml outside_workdir = "deny" [tools.read_file] outside_workdir = "ask" ``` Paths in a tool's `allowlist` and directories added with `--add-dir` stay allowed. Shell tools only check paths written in the command, not paths a script builds, so keep a shell tool that must stay inside the working directory on `ask`. #### MCP and connector tools MCP tools are addressed as `{server_name}_{tool_name}`. For example, to always allow a `get` tool exposed by an MCP server named `fetch_server`: ```toml [tools.fetch_server_get] permission = "always" ``` See [MCP servers](/vibe/code/cli/mcp-servers) for the full configuration model and [Configuration](/vibe/code/cli/configuration) for the precedence between user and project settings. ### Approval model The approval model is consistent across the CLI, the VS Code extension, and Vibe Code Web. How you act on approvals differs by surface: **CLI** Approval prompts appear at the bottom of the terminal. Use the keyboard, or click an option: | Key | Action | |---|---| | `1` or `y` | Allow the action once. | | `2` | Allow it for the rest of the session. | | `3` | Always allow it. | | `4`, `n`, or `Escape` | Deny the action. | | `Up` / `Down` | Move between approval options. | | `Enter` | Choose the highlighted option. | The mode label on the input box's top border shows the active agent. Switch mid-session with `Shift+Tab` or restart with `vibe --agent `. **VS Code extension** Approval prompts appear inside the Mistral Vibe side panel. | Shortcut | Action | |---|---| | `Mod+Y`* | Approve the tool action. | | `Mod+Alt+Y`* | Approve an alternate option. | | `Mod+Shift+Y`* | Apply a broader permission choice (for example, always allow). | | `Mod+Alt+N`* | Reject the tool action. | | `Escape` | Cancel or blur the current input state. | **`Mod` means `Command` on macOS and `Ctrl` on Windows or Linux.* > **Info:** > > Agent selection is available through the agent selector at the bottom of the panel (see [Agents](/vibe/code/vs-code-extension/agents)). A dedicated UI for per-tool permissions is still coming soon; in the meantime, configure them through the same `config.toml` files used by the CLI. **Vibe Code Web** Vibe Code Web runs sessions in a managed sandbox tied to a GitHub repository. Approvals appear in the browser UI, and repository-level actions (creating branches, pushing commits, opening pull requests) follow the GitHub permissions you granted when connecting the repository. ### Best practices - **Start in `ask` or a [plan agent](/vibe/code/cli/agents#create-a-plan-agent) for unfamiliar code.** Review each action, or agree on a plan, before granting broader edit or shell access. - **Commit before risky runs.** A clean baseline gives you an instant rollback (`git reset --hard`) when something goes wrong. - **Use `accept-edits` for scoped refactors** and review the diff before committing. - **Use `smart-approve` to reduce approval prompts** in day-to-day work. It still asks before risky actions, but it isn't a sandbox. - **Reserve `auto-approve` for disposable environments** (containers, CI runners, ephemeral VMs). Never use it on machines that hold SSH keys, cloud credentials, or production access. - **Trust deliberately.** Review a repo's `.vibe/` configuration the first time, and again whenever it changes. - **Tighten MCP and connector tools.** Anything touching external systems should be `permission = "ask"` even under `accept-edits`. - **Version-control your `.vibe/` config** so the team can review and reproduce the safety decisions. - **Revoke access you no longer need.** Vibe Code Web GitHub connections, MCP credentials, and connector authorizations should be removed when a project ends. --- # Use Vibe in other IDEs Source: /vibe/code/use-vibe-in-other-ides > Add Vibe as an Agent Client Protocol agent in Xcode, JetBrains IDEs and other ACP-compatible clients, then authenticate it. Vibe implements the **[Agent Client Protocol (ACP)](https://agentclientprotocol.com/)** and is published in the [ACP registry](https://github.com/agentclientprotocol/registry/tree/main/mistral-vibe). This means you can run Vibe in ACP-compatible clients outside the CLI, the VS Code extension, and Vibe Code Web. This page explains how to add Vibe to an ACP-compatible client, including Xcode and JetBrains IDEs such as IntelliJ IDEA, PyCharm, WebStorm, and GoLand. For the full client list, see the [ACP clients directory](https://agentclientprotocol.com/get-started/clients). In these clients, Vibe runs as an agent in the client's native chat. It uses the same engine, configuration, and customization layer as the supported surfaces, including agents, skills, and MCP servers. > **Warning:** > > **Don't use the [Mistral Code Enterprise](https://plugins.jetbrains.com/plugin/27493-mistral-code-enterprise) JetBrains plugin.** It's deprecated, and there isn't a standalone Mistral extension for JetBrains. The supported path is to run Vibe through ACP. For the primary surfaces, see [Choose CLI, VS Code, web, or Desktop sessions](/vibe/code/choose-cli-vscode-web-sessions). ### Before you start | Requirement | Details | |---|---| | **ACP-compatible client** | An IDE or client that supports ACP agents, such as Xcode or a JetBrains IDE with the AI Assistant plugin. | | **Mistral account** | Required to create or manage API keys. | | **Plan or API key** | A [Mistral plan](https://mistral.ai/pricing) or an API key you manage yourself. Usage and rate limits depend on your plan, included monthly usage, and pay-as-you-go settings. | ### Add Vibe as an ACP agent The exact steps depend on your client, but the flow is the same across ACP-compatible IDEs: 1. **Add Vibe as an ACP agent** from your client's agent registry or settings. 2. **Select Mistral Vibe** as the active agent in the client's chat. 3. **Sign in** with your Mistral account or API key when prompted. After it connects, the client's chat runs against the Vibe agent and can use your open project and editor context. If your client has no agent registry, install the [CLI](/vibe/code/cli) and point the client at the `vibe-acp` command it installs. In Zed, for example, add it under `agent_servers` in your settings. ### Set up Xcode Before you add Vibe, [install and authenticate the Vibe CLI](/vibe/code/cli) on the same machine. Xcode requires the absolute path to the `vibe-acp` executable. 1. Find the absolute path to `vibe-acp`: ```shell command -v vibe-acp ``` 2. In Xcode, open **Xcode > Settings > Intelligence**. 3. Under **Agents**, click **Add an Agent**. 4. Set **Name** to `Mistral Vibe` and **Executable** to the absolute path from step 1. 5. Leave **Interpreter**, **Arguments**, and **Environment Variables** empty, then click **Add**. 6. Select **Mistral Vibe** in the coding assistant's agent picker and start a conversation. For more details, see [Apple's Xcode documentation](https://developer.apple.com/documentation/xcode/setting-up-coding-intelligence#Enable-agents). ### Set up Xcode Before you add Vibe, [install and authenticate the Vibe CLI](/vibe/code/cli) on the same machine. Xcode requires the absolute path to the `vibe-acp` executable. 1. Find the absolute path to `vibe-acp`: ```bash command -v vibe-acp ``` 2. In Xcode, open **Xcode > Settings > Intelligence**. 3. Under **Agents**, click **Add an Agent**. 4. Set **Name** to `Mistral Vibe` and **Executable** to the absolute path from step 1. 5. Leave **Interpreter**, **Arguments**, and **Environment Variables** empty, then click **Add**. 6. Select **Mistral Vibe** in the coding assistant's agent picker and start a conversation. For more details, see [Apple's Xcode documentation](https://developer.apple.com/documentation/xcode/setting-up-coding-intelligence#Enable-agents). ### Set up JetBrains AI Assistant JetBrains AI Assistant is an ACP-compatible client that hosts the ACP agent registry. Before you add Vibe, make sure you have: - **JetBrains IDE 2025.3.2 or later**. The ACP agent registry is available from this version. - **AI Assistant plugin**. It hosts the ACP integration. If it isn't installed, open the `AI Chat` icon in the right tool window bar and click `Install Plugin`, or install `AI Assistant` from `Settings > Plugins`. After the AI Assistant plugin is installed, add Vibe: 1. Open `Settings` (`Cmd+,` on macOS, `Ctrl+Alt+S` on Windows or Linux). 2. Go to `Tools > AI Assistant > Agents`. 3. In `Search agents`, search for `Mistral Vibe`. 4. On the `Mistral Vibe` entry, click `Install`. The IDE downloads the agent and any required runtime. 5. Open the `AI Chat` tool window. 6. Choose `Mistral Vibe` in the agent selector at the bottom of the chat input. ### Authenticate Vibe The first time Vibe needs credentials, your client asks you to sign in. Choose **Sign in through Mistral AI Studio** to sign in from your browser or, if your client offers it, register your API key in a terminal. Vibe stores the key in your OS keyring, or in `~/.vibe/.env` when no keyring is available, and reuses it across sessions. If you already authenticated the [Vibe CLI](/vibe/code/cli) or the [VS Code extension](/vibe/code/vs-code-extension) on the same machine, Vibe reuses the same configuration and credentials. ### Check that Vibe is ready Your setup is ready when: - `Mistral Vibe` is available as the agent in your client's chat. - You can send a prompt and receive a response. - Vibe can use the active project and editor context. Try a small first prompt: ```txt Explain the currently open file. ``` ### Use shared configuration Vibe in an ACP client shares the same configuration and customization layer as the CLI and the VS Code extension: agents, skills, MCP servers, and profiles defined in `~/.vibe/` and per-project `.vibe/` directories. For details, see [Configuration](/vibe/code/cli/configuration). --- # Install and authenticate Source: /vibe/code/vs-code-extension > Install Mistral Vibe for VS Code from the Marketplace or a VSIX, open the Vibe panel, sign in and verify the setup. Install **[Mistral Vibe for VS Code](https://marketplace.visualstudio.com/items?itemName=mistralai.mistral-vibe-code)**, open the Vibe panel, and sign in. The extension ships with the Vibe agent built in, so **no separate CLI install is required**. ### Install the extension Install **Mistral Vibe for VS Code** from the VS Code Extensions view, or directly from the [Marketplace listing](https://marketplace.visualstudio.com/items?itemName=mistralai.mistral-vibe-code). From inside VS Code: 1. Open VS Code. 2. Press `Cmd+Shift+X` on macOS or `Ctrl+Shift+X` on Windows or Linux. 3. Search for `Mistral Vibe`. 4. Select the extension published by **Mistral AI** (publisher ID: `mistralai`). 5. Click `Install`. If the extension doesn't appear after installation, run **Developer: Reload Window** from the Command Palette or restart VS Code. > **Tip:** > > **Switching interface?** This page covers the **VS Code extension**. To set up Vibe in your terminal, see [Install the CLI](/vibe/code/cli); for a cloud session on a GitHub repo, see [Vibe Code Web](/vibe/code/web); for a desktop app that runs both, see [Vibe Desktop](/vibe/code/desktop). Configuration and sessions are shared between the CLI and the extension. ### Open Mistral Vibe After installation, open the extension from one of these entry points: - Click the **Mistral Vibe** icon in the VS Code activity bar. - Run **Mistral Vibe: Open Mistral Vibe** from the Command Palette. - Use the editor title action when the Mistral Vibe icon is available for the active file. The extension opens a webview chat panel inside VS Code. ### Authenticate The first time the extension needs credentials, it opens a **terminal setup flow**: 1. Start setup from the extension when prompted. 2. In the **Mistral Vibe Setup** terminal, paste your Mistral API key. 3. Complete the prompt and wait for the extension to return to the ready state. The setup flow runs the bundled Vibe agent with `--setup`. It stores the key in your OS keyring, or in `~/.vibe/.env` when no keyring is available. > **Info:** > > **Browser-based sign-in is being enabled for the bundled Vibe agent.** When your config targets a Mistral provider, you'll be signed in via a browser flow instead of pasting an API key. Until it lands in the extension, use the terminal setup flow above. ### Verify the setup Your setup is ready when: - The Mistral Vibe panel opens without an authentication prompt. - You can send a prompt from the VS Code panel. - The extension can use the active workspace and editor context. Try a small first prompt: ```txt Explain the currently open file. ``` ### Install from a VSIX If your team receives a `.vsix` build before the public listing is available, install it from **Extensions > More Actions > Install from VSIX...**. > **Warning:** > > Only use VSIX files from an **approved Mistral distribution channel**. ### Prerequisites | Prerequisite | Details | |---|---| | **VS Code** | Version 1.94.0 or later. | | **Mistral account** | Required to create or manage API keys. | | **Access path** | A [Mistral plan](https://mistral.ai/pricing) or an API key you manage yourself. Usage and rate limits depend on your plan, included monthly usage, and pay-as-you-go settings. | --- # Agents Source: /vibe/code/vs-code-extension/agents > Choose a built-in agent such as Ask, Accept Edits or Smart Approve in the VS Code extension, or define your own custom agents. Agents are **configuration overrides** applied on top of the global config. They bundle a system prompt, a compaction prompt, an active model, an available tool set, and approval rules. The VS Code extension uses the same agent system as the CLI. ### Built-in agents | Agent | Behavior | |---|---| | `Ask` | Asks for approval before running tools. | | `Accept Edits` | Auto-approves file edits in the working directory. Still asks for approval for other actions (for example, shell commands). | | `Smart Approve` | Classifies each tool call, runs the ones it judges safe, and asks for approval before risky ones. See [Smart approve](/vibe/code/safety-approvals-permissions#smart-approve). | | `Auto Approve` | Auto-approves all tool execution. Use **only in a trusted, sandboxed environment**: this agent can run arbitrary commands such as `rm -rf` against any path Vibe can reach. | ### Select an agent Click the agent selector at the bottom of the Mistral Vibe panel to pick an agent from the dropdown. The list includes all built-in and custom agents available in your configuration. You can also cycle through agents on the fly with `Shift+Tab`, the same shortcut as the CLI. The selector defaults to the `default_agent` from your configuration (`Accept Edits` unless you change it), and the selection persists for the session. ### Custom agents The VS Code extension reads the same agent definitions as the CLI from `~/.vibe/agents/` (user-level) and `./.vibe/agents/` (project-level). Custom agents declared there appear in the selector alongside the built-ins. See the [CLI Agents reference](/vibe/code/cli/agents) for the full configuration schema, examples, and the difference between `agent_type = "agent"` and `agent_type = "subagent"`. --- # Commands and slash commands Source: /vibe/code/vs-code-extension/commands-slash-commands > Control Vibe Code in VS Code with slash commands, keyboard shortcuts and Command Palette commands, and see how they compare with the CLI. Use **slash commands** and **keyboard shortcuts** to control Vibe Code from inside the editor. A couple of VS Code commands are also available from the Command Palette for setup and debugging. ### Slash commands The extension exposes a subset of Vibe slash commands. Type `/` in the Vibe panel to see the available commands. [Skills](/vibe/code/cli/skills) that opt in are surfaced in the same picker. | Command | Input hint | Description | |---|---|---| | `/help` | | Show available commands and keyboard shortcuts. | | `/compact` | Optional summary instructions | Compact conversation history by summarizing it. | | `/reload` | | Reload configuration, agent instructions, and skills from disk. | | `/log` | | Show the path to the current session log directory. | | `/proxy-setup` | `KEY value`, `KEY`, or empty for help | Configure proxy and SSL certificate settings. | | `/leanstall` | | Install the Lean 4 agent, `leanstral`. | | `/unleanstall` | | Uninstall the Lean 4 agent. | | `/data-retention` | | Show data retention information. | | `/mcp` | `status`, `login `, or `logout ` | Show MCP sign-in status, or sign in to or out of an OAuth MCP server. | | `/retry` | Optional additional instructions | Continue an interrupted model response. | For the full CLI command set, see [Commands and shortcuts](/vibe/code/cli/commands-shortcuts). ### Keyboard shortcuts Inside the Vibe panel, `Mod` means `Command` on macOS and `Ctrl` on Windows or Linux. | Shortcut | Action | |---|---| | `Mod+Y` | Approve a tool action. | | `Mod+Alt+Y` | Approve an alternate tool action. | | `Mod+Shift+Y` | Approve and apply a broader permission choice. | | `Mod+Alt+N` | Reject a tool action. | | `Mod+N` | Start a new conversation. | | `Escape` | Cancel or blur the current input state. | | `Shift+Tab` | Cycle the active input mode. | ### CLI parity The extension doesn't expose every CLI slash command, but it still lets you control most runtime settings through the UI: - **`/model` and `/thinking`** are not available as slash commands. Change the active model or reasoning level from the extension's interface instead. - **`/resume`** is not available as a slash command, but you can load previous sessions from the panel UI. - **`/rename`** has a UI equivalent in the panel. Use it to rename the current session. - Use the CLI for the remaining session and runtime controls: `/rewind`, `/loop`, `/voice`, and adding or browsing MCP servers with `/mcp`. ### VS Code commands A small set of VS Code Command Palette entries is available for setup and debugging. | Command | What it does | |---|---| | **Mistral Vibe: Open Mistral Vibe** | Focuses the Mistral Vibe panel. | | **Mistral Vibe: Show Logs** | Opens the extension log output. | > **Note:** > > The extension doesn't declare default VS Code keybindings. Add custom shortcuts in `keybindings.json` if you want direct keyboard access to these commands. --- # Migration from Mistral Code Enterprise Source: /vibe/code/vs-code-extension/migration-mistral-code-enterprise > Move from the Mistral Code extension to Mistral Vibe for VS Code: key differences, migration steps and what does not carry over. This page covers what to expect when moving from the **Mistral Code extension** to **Mistral Vibe for VS Code**. The two extensions can coexist if you need to keep using Mistral Code while trying Vibe. For most teams, migration is **install Vibe, authenticate, optionally uninstall Mistral Code**. There is no automatic settings or session transfer between the two: Mistral Code required several specialized models, while Vibe only needs one. ### Key differences - **One model, not many.** Vibe ships a single agent backed by a single model, removing the model selection that Mistral Code required. - **Shared session between CLI and extension.** Your configuration, agents, skills, and active session are shared between the Vibe CLI and the Vibe VS Code extension. - **New configuration model.** Vibe configuration lives in `~/.vibe/` (and per-project `.vibe/`), not in the previous Mistral Code config paths. - **Separate plans.** Mistral Code Enterprise and Vibe Code are billed on **different plans**. If you're a Mistral Code Enterprise customer, contact your account team to discuss adding Vibe. ### Migration steps 1. **Back up any custom Mistral Code settings** you want to preserve (model preferences, custom prompts, etc.). 2. **Uninstall or disable the Mistral Code extension** from the VS Code Extensions view. 3. **Install Mistral Vibe** following [Install and authenticate](/vibe/code/vs-code-extension). 4. **Authenticate** with your existing Mistral API key, or follow the setup flow. 5. **Re-create any custom configuration** (agents, skills, MCP servers) in `~/.vibe/config.toml`. See [Configuration](/vibe/code/cli/configuration). ### What does not carry over - **Per-model preferences** from Mistral Code (Vibe uses a single agent). - **Mistral Code extension settings**. - **Saved chat history** from Mistral Code. --- # Extension settings Source: /vibe/code/vs-code-extension/settings > How the VS Code extension handles telemetry and reuses the Vibe configuration shared with the CLI until a dedicated settings panel ships. A dedicated settings panel for the VS Code extension is in progress. Until it ships, **all Vibe behavior comes from the bundled Vibe agent and the same Vibe configuration model used by the CLI** (config files, environment variables, project overrides). ### Telemetry The extension reuses VS Code's global telemetry setting and Vibe's CLI telemetry toggle: - **VS Code telemetry**: controlled by `telemetry.telemetryLevel` in VS Code settings. The extension only sends telemetry when VS Code telemetry is enabled. - **Vibe telemetry**: controlled by `enable_telemetry` in `~/.vibe/config.toml`. See [Update and telemetry settings](/vibe/code/cli/configuration#update-and-telemetry-settings). To opt out of extension telemetry, disable either of those toggles. ### Shared Vibe configuration The extension runs the Vibe ACP agent. **Agent-level behavior** (models, providers, tools, agents, skills, and MCP servers) follows the shared Vibe configuration model. Use the CLI configuration docs for the shared format: --- # Work with the extension Source: /vibe/code/vs-code-extension/work-with-extension > Open Vibe in VS Code, send prompts with editor context such as files and selections, and review the agent's actions in your workspace. Use the VS Code extension when you want Vibe Code in the **same workspace as your files, selections, diffs, and source control**, with no context switch and no extra terminal. ### Open Vibe in VS Code Open the extension from one of these entry points: - Click the **Mistral Vibe** icon in the activity bar. - Run **Mistral Vibe: Open Mistral Vibe** from the Command Palette. - Use the editor title action when it appears for the active file. The extension keeps the Vibe panel in a VS Code webview and runs the bundled Vibe ACP agent in the background. ### Use editor context The extension tracks your **active editor and current selection** so you don't have to copy paths or paste snippets: | Context | How it works | |---|---| | **Active file** | Vibe receives a workspace mention for the active file. | | **Selected lines** | Vibe receives the file mention with start and end line numbers. | | **Selected text** | Vibe includes selected text when the selection has enough non-whitespace content and stays under the selection size limit. | > **Tip:** > > Highlight the code you want to discuss, then ask Vibe in plain language. The extension attaches the right context for you. ### Send a prompt Write a focused request in the Vibe panel. Include the expected outcome and any constraints that matter. Examples: ```txt Explain how authentication is wired in the selected file. ``` ```txt Refactor this function to make error handling explicit. Keep the public API unchanged. ``` ```txt Review this diff for edge cases before I open a pull request. ``` ### Review actions When Vibe Code needs permission, the extension shows **approval controls in the webview**. Review the proposed action before approving it. For file changes, use VS Code's diff and source control views to inspect the result before committing or opening a pull request. For the shared approval model, see [Safety, approvals, and permissions](/vibe/code/safety-approvals-permissions). ### Current limits The extension doesn't expose every CLI command or workflow. | Area | Extension behavior | |---|---| | **Slash commands** | Exposes a subset of CLI slash commands. See [Commands and slash commands](/vibe/code/vs-code-extension/commands-slash-commands). | | **CLI install** | Not required for normal extension use. | | **Programmatic mode** | Not supported from the extension. For unattended runs, install the CLI and use `vibe --prompt`. | --- # Get started with Vibe Code Web Source: /vibe/code/web > Start remote coding tasks on GitHub repositories from the browser, supervise the agent in a cloud sandbox, and review its pull request. Vibe Code Web is the **control plane for remote coding agents**. Start a coding task from the web, supervise the agent as it works, and review the branch or pull request it produces. Same engine under the hood as the [Vibe CLI](/vibe/code/cli), but running in a **managed cloud sandbox** you reach **from any browser**. ### What you can do With Vibe Code Web you can: - Create projects from one or more GitHub repositories under the same GitHub owner. - Start remote coding sessions from the web. - Run agents in managed cloud sandboxes. - Produce GitHub branches and pull requests. - Review final code in GitHub. - [Build and deploy Mistral Workflows](/studio/workflows/building-workflows/build-in-vibe) from a prompt, via the built-in Mistral MCP tools. It fits tasks that: - Run remotely without local files, services, or secrets. - Take long enough that you don't want to keep your machine open. - End with a branch or pull request for review. > **Tip:** > > Prefer the [CLI](/vibe/code/cli) or [VS Code extension](/vibe/code/vs-code-extension) when the task depends on local files, local secrets, unsupported runtimes, or direct access to your machine. ### Core concepts Vibe Code Web organizes work around three entities: **projects**, **repositories**, and **sessions**. A project pins one or more GitHub repositories from the same owner, and each session is one run of the agent against that project. **Project** A **project** is a scoped workspace, listed in the Vibe Code Web sidebar. It includes one or more GitHub repositories from the same GitHub owner (user or organization). Sessions you run from the project share that repository scope. At launch, project setup is limited to selecting one or more repositories from the same GitHub owner and giving the project a name. See [Projects](/vibe/code/web/projects) for creation, edits, deletion, and session management. **Repository** A **repository** is a GitHub repository the agent clones into the sandbox, reads, edits, commits to, and opens pull requests against. A project can include one or more repositories, but they must all belong to the **same GitHub owner**. To work across owners, create separate projects. See [GitHub repositories and permissions](/vibe/code/web/github-repositories-permissions) for the App install, token model, attribution, and access management. **Session** A **session** is one run of the agent against a project. It follows the same flow: 1. **Spawn.** Create a session from the web. Provide a focused prompt. 2. **Run.** The agent works remotely in an isolated sandbox: clone, plan, edit, run commands and tests. 3. **Follow.** Inspect commands and file changes as the agent works. 4. **Review.** Open the resulting branch or pull request in GitHub for code review, comments, required checks, and merge decisions. Past sessions can be inspected, but once the sandbox is deprovisioned, a session cannot be resumed. See [Sessions](/vibe/code/web/sessions) for the full runbook and [Limits and lifecycle](/vibe/code/web/limits-and-lifecycle) for states and timeouts. ### Quickstart 1. Open Vibe Code Web from the **Code** tab in Vibe. 2. Create a project and connect one or more GitHub repositories from the same owner. See [Projects](/vibe/code/web/projects). 3. Click **New session** and enter a focused prompt. Name the file, failing test, stack trace, or expected behavior when you can. 4. Watch the agent clone the repository, inspect the code, and run commands. 5. Open the resulting branch or pull request in GitHub for review and merge. > **Tip:** > > Start with a small, well-scoped task. Mention the file, function, or failing test when you know it. ### Next steps --- # GitHub repositories and permissions Source: /vibe/code/web/github-repositories-permissions > How the Mistral GitHub App authenticates for Vibe Code Web, which repository actions it can perform, and how to revoke its access. Vibe Code Web works on GitHub repositories from a managed cloud sandbox. To do that, it relies on the **Mistral GitHub App**, which clones repositories, pushes branches, and opens pull requests on your behalf. This page explains how authentication works, what the agent can and cannot do, and how to revoke access. ### Authentication model The Mistral GitHub App authenticates with GitHub in two distinct ways: | Token | What it's used for | Effective scope | |---|---|---| | **User access token** | Repository read and write work on your behalf (clone, branch, commit, push, open pull request). | Restricted by **both** your GitHub permissions on the repository **and** the App's granted scopes. The narrower of the two wins. | | **Installation access token** | App-level or bot-level actions, when those actions are live. | Limited to the scopes the App was granted at install time, scoped to the repositories the installation covers. | #### Attribution Code changes (commits, branches, pull requests) are authored via **your user access token**. The exact attribution shown in GitHub depends on your GitHub and Git configuration: | Field | Source | |---|---| | **Commit author** | Your GitHub user, based on the user access token and your local Git config when the agent runs the commit. | | **Commit committer** | Can differ from the author depending on Git settings (for example, GitHub web edits or merge commits). | | **Pull request author** | Your GitHub user. | ### Connect GitHub The first time you create a project in Vibe Code Web, you're prompted to **install the Mistral GitHub App** and authorize it on your account or organization. A typical setup: 1. Open the GitHub connection flow from Vibe Code Web. 2. Choose the GitHub account or organization where the target repository lives. 3. Select **all repositories** or **only the repositories** the App should access. 4. Confirm the installation. 5. Authorize the App on your user account so it can act on your behalf. Repeat this for each organization that should be reachable from Vibe Code Web. > **Info:** > > A Vibe Code Web project can include multiple repositories, but they must all belong to the **same GitHub owner** (user account or organization). To work across different owners, create separate projects. > > Organization owners may need to approve the installation before members can use Vibe Code Web on organization repositories. ### Repository access Grant the **narrowest repository access** that fits your workflow. | Access choice | Use it when | |---|---| | **Selected repositories** | You want Vibe Code Web to work only on specific repositories. | | **All repositories** | You trust the integration across the account or organization and want new repositories to be available automatically. | Repository access can be changed later from GitHub settings. ### What Vibe Code Web can do Inside a Vibe Code Web session, the agent **can**: - Clone an authorized repository into the cloud sandbox. - Read files in the repository. - Create branches and edit code. - Run shell commands, tests, and build steps inside the sandbox. - Commit and push changes to the repository. - Open pull requests for you to review. Vibe Code Web **cannot**: - Access your local machine or local filesystem. - Read or modify repositories you have not authorized. - Bypass branch protections, required reviews, `CODEOWNERS`, or required status checks. - Persist files outside the repository after the sandbox is deleted. > **Tip:** > > Use **GitHub branch protections, `CODEOWNERS`, required reviews, and required status checks** to gate sensitive branches. Vibe Code Web follows the same repository rules as any other contributor. ### Manage and revoke access Review or revoke access from GitHub at any time: - **Repository access**: open [github.com/settings/installations](https://github.com/settings/installations) and update the Mistral GitHub App. - **Account authorization**: open [github.com/settings/applications](https://github.com/settings/applications) and revoke the Mistral entry if you no longer want the account connected. - **Organization access**: organization owners can manage the installation from the organization's GitHub App settings. Revoking access stops **new Vibe Code Web sessions** from reaching the affected repositories. Branches, commits, and pull requests already pushed remain in GitHub. ### Common access issues | Issue | Check | |---|---| | **Repository is missing** | Confirm the Mistral GitHub App is installed for the account or organization, and that the repository is selected in the installation. | | **Organization repository unreachable** | Check whether the organization owner has approved the App installation. Approval may be pending. | | **Repository belongs to a different GitHub owner** | A project includes repositories from a single GitHub owner. Create a separate project for the other owner. | | **App installed but repository not listed** | The App is installed but the repository was not selected in the installation. Update the App configuration in GitHub to add it. | | **Push or pull request fails** | Check branch protection, required reviews, required status checks, and that you have write permission on the repository. | | **Authorized the App but pushes fail** | You may have authorized the App without having write permission on the repository. Ask the repository or organization owner to grant write access. | | **Commits show the wrong author** | Check the email exposed by your GitHub account settings and your local Git config. | --- # Limits and lifecycle Source: /vibe/code/web/limits-and-lifecycle > Understand how a Vibe Code Web session starts, runs and ends, which limits and daily quotas apply, and what persists afterwards. A Vibe Code Web session is **one run of the Vibe Code agent against a GitHub repository in a managed cloud sandbox**. This page covers how a session starts, what state it can be in, what persists, what gets deleted, and which limits apply. ### Lifecycle #### Phases | Phase | What happens | |---|---| | **Start** | Vibe Code Web creates an isolated cloud sandbox. | | **Clone** | The selected GitHub repository and branch are cloned into the sandbox. | | **Run** | The agent reads files, runs commands, edits code, and asks follow-up questions when needed. | | **Review** | You inspect the branch, commits, or pull request created by the agent. | | **End** | The sandbox is deleted when the session stops, times out, or errors. | A pushed branch or pull request **doesn't end the session automatically**. You can keep iterating by sending follow-up prompts, reviewer comments, or CI failures. #### Active states While a session is alive, it reports one of these operational states: | State | Meaning | |---|---| | **Active** | The agent is currently running commands, editing code, or thinking. | | **Waiting for input** | The agent asked a clarifying question and is paused until you reply. | | **Idle** | The agent finished the current step and is waiting for your next instruction. | | **Stopped** | The session has ended. See [End states](#end-states) for the reason. | You can scan all active sessions across your projects from the Vibe Code Web sidebar. #### End states | End state | What happened | |---|---| | **Completed** | The agent reached a natural stopping point. | | **Timed out** | The session reached a duration or inactivity limit. | | **Error** | Sandbox setup or agent execution failed. | In every case, **GitHub branches and pull requests already created by Vibe Code Web remain in your repository**. > **Note:** > > Cancellation, interrupt, and manual-stop controls are not available yet. See [Follow-up capabilities](#follow-up-capabilities). ### Limits, quotas, and models #### Session limits | Limit | Current value | |---|---| | Maximum session duration | 24 hours | | Inactivity timeout while waiting for your reply | 3 hours | | Concurrent sessions per user | Plan-dependent | Session limits can depend on your plan and rollout status. #### Daily quotas | User type | Limit | |---|---| | Free users | 2 sessions per day, where access is enabled | | Paid users | 100 sessions per day | #### Model behavior Vibe Code Web sessions use Mistral Medium 3.5. ### After a session #### What persists | Data | What persists | |---|---| | **Sandbox files** | Deleted when the sandbox is deprovisioned at session end. | | **Build artifacts** | Deleted with the sandbox unless committed to GitHub. | | **GitHub branches** | Persist in your repository. | | **Commits and pull requests** | Persist in your repository and follow your normal GitHub workflow. | | **Session history** | Persists according to your plan and the applicable data-retention policy. | Session history can be inspected after a run, but inactive sessions cannot be resumed once the sandbox has been deprovisioned. To continue, start a new session. > **Note:** > > Vibe Code Web runs in a **cloud sandbox, not on your machine**. Use the CLI or VS Code extension for tasks that require local files, local services, local secrets, unsupported runtimes, or hardware-specific dependencies. #### Visibility and sharing Sessions are **personal**: each session belongs to the user who created it and is visible only to that user from the Vibe Code Web sidebar. To collaborate on the agent's output, share the resulting GitHub branch or pull request. Teammates review and comment using the normal GitHub flow. ### Follow-up capabilities The capabilities below are planned for release after the May 28 launch. They are scoped here so you can plan around the launch surface. | Area | Planned capability | |---|---| | **Triggers** | Start a session from Slack or from GitHub events. | | **Session control** | Approvals for sensitive actions, cancellation, interrupt, and steering. | | **Visibility** | Notifications, rich in-app diff and review UI. | | **Sandbox customization** | Custom sandbox configuration, setup scripts, project-level secrets, and environment variables. | ### Common issues | Issue | What to check | |---|---| | Session looks stuck | Check whether it's **waiting for input**, has hit a timeout, or lost GitHub access. | | Repository clone is slow | Large repositories take longer. If cloning fails, retry or scope the task to a smaller repository or branch. | | Project commands fail | The sandbox may not have local services, OS-specific tooling, GPUs, or private dependencies required by your project. See [Sandbox environment](/vibe/code/web/sandbox-environment). | | GitHub authorization revoked or expired | Reconnect the Mistral GitHub App from [github.com/settings/installations](https://github.com/settings/installations). | | Organization owner approval pending | The Mistral GitHub App may require organization owner approval before members can use it. | | Repository not selected in GitHub App installation | Open the App configuration in GitHub and add the repository to the selected list. | | Repository belongs to a different GitHub owner | A project includes repositories from a single GitHub owner. Create a separate project for the other owner. | | Cannot resume an inactive session | Once the sandbox is deprovisioned, a session cannot be resumed. Start a new session to continue. | --- # Projects Source: /vibe/code/web/projects > Create a Vibe Code Web project from GitHub repositories of one owner, start and manage its sessions, and edit or delete the project. A **project** is the workspace Vibe Code Web organizes everything around: one or more GitHub repositories, the sessions you run against them, and the history of past runs. This page covers how to create, manage, and delete projects. ### Create a project Projects live in the Vibe Code Web left sidebar. To create one: 1. Click the **+** button at the top of the **Projects** list. 2. Select the repositories the project should work on. All repositories must belong to the **same GitHub owner** (user account or organization). You can add one or more. 3. Click **Continue**. 4. Enter a project name. 5. Click **Create Project**. The project is added to your sidebar and ready to run sessions. > **Note:** > > To work on repositories from another GitHub owner, create a separate project. See [GitHub repositories and permissions](/vibe/code/web/github-repositories-permissions) for the single-owner constraint. ### Start a session in a project Open a project from the sidebar to see its sessions and start a new one. To start a session: - Type a prompt in the input at the bottom of the project view and send it. A session is created automatically. - Or click **+ New session** and enter your prompt there. All sessions started in the project are listed under it in the sidebar, like a chat history. The sidebar shows all sessions; selecting a project shows the sessions for that project. You can reopen a past session at any time to inspect commands, file changes, branch, and pull request. ### Manage sessions From a project view, you can: - **Reopen a past session** to inspect its activity stream, file changes, branch, and pull request. Past sessions are read-only: once the sandbox is deprovisioned, the session cannot be resumed or woken up. To continue, start a new session. - **Delete a session** to remove it from Vibe Code Web's session history. Active sessions cannot be deleted: wait for the session to end first. > **Warning:** > > **Deletion is permanent and cannot be undone.** Deleting a session removes Vibe Code Web session history only. GitHub branches, commits, and pull requests the session produced stay in your repository. ### Edit project details Click **View project details** to open the project settings. From there, you can: - **Rename** the project. - **Detach** a linked repository. - **Add another repository** from the same GitHub owner. > **Info:** > > Changes apply to **new sessions only**. Sessions already running keep their original repository scope. ### Delete a project To delete a project, open **View project details** and scroll to the **Danger zone**. Type the **full project name** to confirm, then click delete. A project with active sessions cannot be deleted: wait for sessions to end first. > **Warning:** > > **Deletion is permanent and cannot be undone.** The Vibe Code Web project and all its session history are removed. GitHub branches, commits, pull requests, and the repositories themselves stay untouched in GitHub. ### Next steps --- # Sandbox environment Source: /vibe/code/web/sandbox-environment > Understand what the isolated cloud sandbox of a Vibe Code Web session includes, its network access, credentials, and what persists after it ends. Each Vibe Code Web session runs in an **isolated cloud sandbox** provisioned for that run. This page describes what the sandbox includes by default and what persists once the sandbox is gone. ### Isolation Every session gets its own sandbox: - Single-tenant for the duration of the session. - No data shared with other sessions or other users. - Deleted when the session ends. > **Info:** > > The sandbox **cannot reach your local machine**. The agent works from the repository, the default image, and outbound network calls. ### Default image The sandbox runs a default Linux image with a baseline of common developer tooling: - A POSIX shell. - Git, with the Mistral GitHub App credentials configured. - Common language runtimes and their package managers. - A standard set of CLI utilities. The image is **maintained by Mistral** and updated periodically. Exact tool versions can change as the default image is updated. > **Note:** > > If your project depends on tools, runtimes, or system packages not present in the default image, the agent installs them at session time. **Custom sandbox configuration is a follow-up capability**. ### Network posture The sandbox has **outbound internet access managed by Mistral** so the agent can install dependencies, fetch documentation, and use third-party APIs the project needs. Inbound access from the public internet to the sandbox is not exposed. What this means in practice: - The agent can install language-level dependencies, fetch a public URL, or call a public API. - The agent cannot expose the sandbox as a server reachable from the public internet. - Outbound calls are subject to rate limits, which can evolve over time. > **Note:** > > User-configurable internet allowlists and sandbox network controls are not available yet. See [Follow-up capabilities](/vibe/code/web/limits-and-lifecycle#follow-up-capabilities). ### Credentials and access The sandbox has access to: - The **Mistral GitHub App user access token**, used for Git operations on the selected repositories. See [GitHub repositories and permissions](/vibe/code/web/github-repositories-permissions) for the token model. - A small set of managed variables (session ID, repository URL, branch name). It does **not** have access to: - Your local machine, filesystem, or shell. - Repositories you have not authorized. - Other users' sessions or sandboxes. - Mistral internal services beyond what the agent needs to operate. > **Tip:** > > Treat the sandbox like a CI job. Use test or least-privileged credentials only. Do not expose production secrets to the sandbox. ### Filesystem and persistence | Path | Behavior | |---|---| | **The cloned repository** | Persisted across iterations of the same session. Lost when the session ends. | | **Build artifacts** | Deleted with the sandbox unless committed to the repository. | | **Other temporary files** | Deleted with the sandbox. | The repository branch or pull request is the durable output. Sandbox files and build artifacts are deleted when the sandbox is deprovisioned unless committed to GitHub. ### Resource limits Sandbox compute and storage are sized for typical coding tasks. Specific quotas (CPU, memory, disk) can vary by plan and rollout. Long-running compute, large model training, or heavy build pipelines are out of scope. For execution time and inactivity limits, see [Limits and lifecycle](/vibe/code/web/limits-and-lifecycle). ### Next steps --- # Security Source: /vibe/code/web/security > Understand prompt-injection risks in Vibe Code Web sessions, the mitigations in place, and how session data is handled. This page describes the security model for autonomous agent runs in Vibe Code Web: how to handle untrusted content the agent reads, and how session data is retained. For network posture, sandbox isolation, and what the sandbox can access, see [Sandbox environment](/vibe/code/web/sandbox-environment). For GitHub authentication and tokens, see [GitHub repositories and permissions](/vibe/code/web/github-repositories-permissions). ### Prompt-injection risk When the agent reads content from outside your prompt (a file in the repo, the output of a command, a fetched URL, a pull request comment, an issue body), that content is treated as data for reasoning. **Untrusted content can attempt to redirect the agent's behavior.** This class of risk is called prompt injection. Common vectors to be aware of: - Repository files (README, docs, `.github/` workflows, sample data). - Output of shell commands the agent runs. - Web pages or APIs the agent fetches. - Reviewer comments and issue bodies pasted into a follow-up prompt. Mitigations applied by Vibe Code Web: - All commands and file changes are visible in the **activity stream**, so unexpected behavior is spottable. - GitHub **branch protections, required reviews, required status checks, and `CODEOWNERS`** still apply to whatever the agent pushes. What you should do: - Review the activity stream as the session runs. - Scope tasks tightly: a focused prompt makes injected instructions easier to spot. - Review the final code in GitHub before merging. - Rely on branch protections, required reviews, required status checks, and `CODEOWNERS` for sensitive branches. ### Data handling Files in the sandbox and outputs of agent actions are processed for the duration of the session. The sandbox is deleted at session end. Anything that must survive the session has to be committed to the repository. Session activity (prompts, agent messages, command output, file change history) is retained according to your plan and the applicable Mistral data policy. Retention specifics vary by plan. See your plan documentation or the Mistral [Privacy Policy](https://legal.mistral.ai/terms/privacy-policy/?lang=en) for details. ### Next steps --- # Sessions Source: /vibe/code/web/sessions > How a Vibe Code Web session starts, runs in a sandbox, and ends with a branch or pull request you can keep iterating on. A **session** is one run of the Vibe Code agent against a project: a sandbox provisioned for the task, the agent loop that does the work, and the branch or pull request it leaves behind. This page covers how sessions start, what happens inside, and what persists once they end. ### How sessions start A session begins from one of two entry points: - **From the web**: click **New session** inside a project. See the [Quickstart](/vibe/code/web#quickstart). - **From Slack**: mention the Vibe Code app in a Slack thread. See [Start your first session](/vibe/code/web/slack-integration#start-your-first-session). Once a session exists, the same lifecycle applies regardless of entry point. ### Sandbox creation When you create a session, Vibe Code Web provisions an **isolated cloud sandbox** for that run. The sandbox is single-tenant for the duration of the session: nothing from your other sessions or other users runs in it. The sandbox has: - A scoped shell. - Access to the selected GitHub repositories (read and write, via your user access token). - A network egress policy. See [Sandbox environment](/vibe/code/web/sandbox-environment#network-posture). The sandbox is deleted when the session ends. > **Note:** > > This section describes the sandbox from the session's perspective. See [Sandbox environment](/vibe/code/web/sandbox-environment) for what runs inside it and how it behaves. ### Repository checkout The agent clones the repositories selected for the project, on the branch you chose at session creation. A project can include one or more repositories, all from the same GitHub owner. The clone uses the Mistral GitHub App's user access token, so all subsequent Git operations (commits, branches, pushes) are attributed to you. ### Agent loop Inside the sandbox, the agent runs a loop: 1. **Read** files relevant to your prompt. 2. **Plan** the next action. 3. **Edit** code or **run a command** (shell, tests, build). 4. **Report** back to the session view (commands, file changes, intermediate output). 5. **Ask** if it needs clarification, then **wait** for your reply. ![Flow diagram of the Vibe Code agent loop with five steps (Read, Plan, Act, Report, Ask) and a loop arrow back to Read](/images/vibe_code_web_agent_loop.svg) > **Info:** > > The loop continues until the task reaches a natural stopping point, the agent asks a question, or a limit is reached. See [Limits and lifecycle](/vibe/code/web/limits-and-lifecycle) for details. ### What you see during a session The session view shows: | Element | What it shows | |---|---| | **Activity stream** | Commands the agent runs, with output, in chronological order. | | **File changes** | The list of files the agent has touched during the session. | | **Branch state** | The current branch the agent is committing to. | | **Pull request** | Once the agent opens a pull request, a link to it in GitHub. | | **Prompt input** | Where you reply to clarifying questions or send a follow-up. | The activity stream is **your audit log**: every command and file change is visible while the session is alive. > **Tip:** > > Vibe Code Web helps you follow session progress and open the resulting branch or pull request. Detailed code review, comments, required checks, and merge decisions **happen in GitHub**. ### Branch and pull request output When the agent finishes, the result is materialized as: - A **branch** on the target repository, with the agent's commits. - A **pull request** opened against the base branch, with a description summarizing the work. The pull request is yours to review, edit, merge, or close using your normal GitHub workflow. Branch protections, required reviews, `CODEOWNERS` rules, and required status checks apply. ### Iteration after a pull request A pushed pull request does not end the session automatically. You can send follow-up prompts while the session and sandbox are active: - Send a follow-up prompt in the session view. - Paste a reviewer comment and ask the agent to address it. - Paste a failing CI output and ask the agent to fix it. The agent reuses the same sandbox and branch, so context is preserved across iterations. > **Warning:** > > Once the sandbox is deprovisioned, the session **cannot be resumed**. To continue, start a new session. ### Next steps --- # Vibe Code Web for Slack: Quickstart Source: /vibe/code/web/slack-integration > Start Vibe Code Web sessions from a Slack thread: configure the app, write good prompts, and get a GitHub pull request back. > **Info:** > > **AI-generated content:** This app uses AI to generate responses and code. Outputs may be inaccurate, incomplete, or misleading. Do not rely on them as factual, legal, medical, financial, or professional advice. Always verify important information independently. See the [Mistral AI terms](https://mistral.ai/terms). Vibe Code Web for Slack lets your team start remote AI coding sessions directly from a Slack thread. The agent reads the thread context, works in an isolated cloud sandbox, and opens a GitHub pull request — without leaving Slack. Connect Slack to your Mistral Organization Use this guide after the Vibe Code Web Slack app has been installed and connected to your Vibe account and GitHub repositories. ### Configuration > **Warning:** > > You need to be an admin of your Mistral Organization to configure the Slack integration. 1. Open [**Admin Settings**](https://admin.mistral.ai/organization/connectors) 2. **Make sure you are in the right Mistral organization.** Your Mistral organization can only be connected to a single Slack Workspace. 3. In **App Connections** section, click **Connect to Slack**. 4. Complete the OAuth flow to finalise the connection. If you are not an owner of your Slack workspace, you may need to request app installation from a workspace owner. 5. **Mistral Vibe** is now installed in your Slack workspace. You can now [connect to Slack MCP](#use-slack-mcp) or [start your first session](#start-your-first-session). ### Use Slack MCP Once Slack App is installed to your Slack workspace, please follow these instructions: 1. Open [**Vibe Work**](https://chat.mistral.ai/connections) 2. Click on **Slack Connector**, then click **Connect** 3. Complete OAuth flow to connect to the right Slack workspace you have 4. Click on [**New Chat**](https://chat.mistral.ai/chat?integrations=019cfb41-5e8a-7350-b162-b2b80604fe5a) 5. Enjoy playing with Slack! ### What you can do from Slack > **Warning:** > > This feature is in progressive rollout. It will be available soon, stay tuned... Vibe Code Web lets you start a remote coding session from the context already in a Slack thread. The agent uses the thread context, works in an isolated cloud sandbox, and creates a linked Vibe Code Web session. The coding agent can create a pull request for review. Use Slack when the coding task starts from: - an incident or on-call thread - a CI or alert notification - a customer or support escalation - a product or engineering discussion - a code review discussion summarized in Slack - a small implementation decision already agreed in-thread ### Start your first session 1. **Find a Slack thread with enough context for the coding task.** Good context includes: - the repository or project name - the bug, failing test, or desired behavior - links to logs, PRs, issues, or screenshots - constraints, such as _"keep the API unchanged"_ or _"only touch docs"_ 2. **Mention the Vibe Code app in the thread.** ```txt @Vibe investigate the issue described in this thread and open a PR if there is a clear fix. ``` 3. **If Vibe needs more information, answer in the thread.** Common clarification questions: - Which repository should I use? - Which branch should I target? - Should I open a PR or only investigate? - Is this safe to change, or should I produce a summary first? 4. **Open the Vibe Code Web session link posted by the app.** Use the web session to inspect progress, command output, steer the agent, and review the resulting GitHub branch or pull request. 5. **Review the final code in GitHub.** GitHub remains the source of truth for code review, required checks, comments, approvals, and merge decisions. ### Good first prompts Use prompts that are scoped, actionable, and likely to end in a branch or pull request. | Use case | Slack prompt | | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | **Investigate a failing test** | `@Vibe investigate the failing test in this thread. If the fix is clear, open a PR with the smallest safe change.` | | **Fix a customer-reported bug** | `@Vibe use the customer report above to find the likely bug. Open a PR if you can reproduce or identify a clear fix.` | | **Address an alert** | `@Vibe investigate this alert and check whether there is a code or config fix. Start with a summary, then open a PR only if the change is low risk.` | | **Apply an agreed product change** | `@Vibe implement the copy/config change we agreed on above and open a PR.` | | **Add missing test coverage** | `@Vibe add a regression test for the edge case described in this thread. Keep the implementation unchanged unless the test exposes a bug.` | | **Update docs** | `@Vibe update the docs based on the behavior described above. Open a PR with the doc-only change.` | | **Small refactor** | `@Vibe refactor the helper discussed above. Keep behavior unchanged and run the relevant tests before opening a PR.` | ### Prompt template For best results, include the repo, the desired outcome, and the review boundary. ```txt @Vibe [task] Repo/project: [repo name] Goal: [what should change] Constraints: [what not to change] Validation: [test/check to run if known] Output: open a PR / investigate only / summarize first ``` Example: ```txt @Vibe fix the settings persistence bug described above. Repo/project: web-app Goal: the alerts toggle should still be enabled after refresh. Constraints: do not change the API shape. Validation: run the settings tests if available. Output: open a PR if the fix is clear; otherwise summarize what you found. ``` ### What happens next After you mention Vibe Code: 1. The app reads the Slack thread context. 2. It maps the request to a Vibe Code Web project and GitHub repository. 3. If the repository is ambiguous, it asks you to choose. 4. It creates a Vibe Code Web session and posts a link back to Slack. 5. The agent works remotely in a managed sandbox. 6. The result is a GitHub branch or pull request, when a code change is appropriate. ### When to use Slack vs Web vs CLI | Start from | Use when | | ----------------- | ------------------------------------------------------------------------------------------------------------- | | **Slack** | The context already lives in a Slack thread: incidents, support reports, alerts, or team decisions. | | **Vibe Code Web** | You know the repository and want to start a remote task directly. | | **Vibe CLI** | You are already working locally, or the task depends on local files, services, secrets, or environment setup. | ### Best practices - Start with small, scoped tasks. - Name the repository or project when possible. - Say whether you want a pull request or an investigation summary. - Include the failing test, error message, stack trace, or expected behavior. - Avoid asking for broad rewrites from Slack. - Do not paste secrets into Slack or into the agent prompt. - Review the resulting branch or pull request in GitHub before merging. ### Good Slack tasks Good Slack-started tasks usually: - have enough thread context - are tied to a known repo or project - can run in an isolated sandbox - can be validated with tests, build output, or code inspection - end in a GitHub branch, pull request, or investigation summary ### Less ideal Slack tasks Avoid Slack-triggered sessions for: - broad architecture changes without a clear owner - tasks requiring local-only services, secrets, hardware, or private networks - vague prompts like _"fix this"_ without logs or expected behavior - cross-owner GitHub work unless the project and repo mapping is clear - changes that should be manually designed before implementation ### Data & privacy - Vibe Code Web for Slack uses AI to generate code, summaries, and pull requests. Outputs may be inaccurate — always review before merging. - Slack thread content shared with the app is processed to fulfill your request and is not used to train Mistral models. - For full details on data handling, retention, and your rights, see the Mistral [Privacy Policy](https://legal.mistral.ai/terms/privacy-policy/?lang=en) and [Trust Center](https://trust.mistral.ai/). --- # Vibe Work Source: /vibe/work > Delegate multi-step tasks across your apps and tools with Vibe Work, on the web, on mobile, or in the desktop app. Vibe Work is Vibe's **productivity mode** for delegating complex, multi-step tasks across your apps and tools. Describe the outcome you want in natural language: Work gathers context, breaks the task into steps, calls the right tools, and asks for approval before sensitive actions. Quick conversations and multi-stage tasks happen in the same place, and a **fast/think toggle** switches between quick conversational responses and deeper, agentic workflows. > **Info:** > > You stay in control. Work shows its progress and asks for confirmation before sensitive actions. See [Safety and approvals](/vibe/work/web/safety-and-approvals). ### Choose web or Desktop Use Work in the web and mobile apps, or in the desktop app for macOS and Windows. Work on Desktop shares the web app's conversations, projects, skills, connected tools, and scheduled tasks. The [web documentation](/vibe/work/web) covers those shared capabilities. Desktop also lets you add local folders as context for your work. > **Tip:** > > **Working in a codebase?** For source code work, use [Vibe Code](/vibe/code). Not sure which mode fits your task? See [Choose Work or Code](/vibe/choose-chat-work-code). --- # Work on Desktop Source: /vibe/work/desktop > Use Vibe Work in the macOS and Windows desktop app, and add or clear local folders as context for your tasks. Use Vibe Work in the desktop app for **macOS** and **Windows**. Linux support is coming soon. Work on Desktop shares the web app's conversations, projects, skills, connected tools, and scheduled tasks. Use the [Web documentation](/vibe/work/web) for those shared capabilities. Desktop also lets you add **local folders as context** for your work. ### Add local folders as context Give Work access to the folders relevant to your task, such as a directory of reports or source documents. You can add as many folders as you need, including folders from different locations on your machine. 1. In the Work prompt composer, click **+**. 2. Open **Folders**, then choose **Add a folder**. 3. Select a local folder to add as context. 4. Repeat **Add a folder** for each additional folder. The **Folders** menu lists the folders you have added. 5. Write a prompt explaining what you want Work to do with that context. For example, after adding two folders of reports: ```txt Compare the reports in the two folders I added. Summarize the main changes and cite the source files for each finding. ``` Folder context is separate from **Upload Files** in the same menu. The folder list identifies the local directories you have made available; it does not mean every file has already been read into the conversation. ### Clear folder context Open **+ → Folders** to review the current folder list. Choose **Remove all** to clear the folders from context. ### Next steps --- # Get started with Work Source: /vibe/work/web > Start a task in Vibe Work, give it the right context, follow its todos and progress, and review the result before using it. **Vibe Work** is Vibe's productivity mode for delegating complex, multi-step tasks across your apps and tools. Describe the outcome you want **in natural language**: Work gathers context, breaks the task into steps, calls the right tools, and asks for approval before sensitive actions. This guide shows how to start a task in Work, give it the right context, follow its progress, and review the result. ### Open Work 1. Open [Vibe › Work](https://chat.mistral.ai/work). 2. If the sidebar is closed, click the drawer icon or press `Cmd+Shift+B` on macOS or `Ctrl+Shift+B` on Windows and Linux. 3. In the sidebar, select **Work** from the mode selector. 4. Start your task. Vibe remembers the last tab you selected. If **Code** opens by default, select **Work** in the sidebar before starting the task. > **Tip:** > > Not sure which mode to use? See [Choose Work or Code](/vibe/choose-chat-work-code). ### Start a task Start with the outcome you want. Work reasons through the request, breaks it into smaller steps, and calls tools when needed. > **Info:** > > **You stay in control:** Work shows progress and asks for confirmation before sensitive actions. See [Safety and approvals](/vibe/work/web/safety-and-approvals) for more info. A good first prompt includes: - the result you want - the source material or tools Work should consider - the audience for the output - any constraints, such as length, tone, format, or deadline Try prompts such as: - `Research this topic and create a one-page brief I can share with my team.` - `Summarize this PDF and extract owners, deadlines, and action items.` - `Compare these two documents and highlight the main differences.` - `Create a draft response based on this source material.` > **Note:** > > Quick, turn-based conversations happen in the same place — switch the **fast/think toggle** to **fast**. Legacy Chat features have equivalents in Work: [Agents](/vibe/chat-legacy/agents) point to [Skills](/vibe/work/web/skills) (invoke them with `@`), [Memories](/vibe/chat-legacy/memories) map to [Knowledge](/vibe/work/web/knowledge), and Deep Research is the [Deep Research Skill](/vibe/work/web/skills). [Code Interpreter](/vibe/work/web/code-interpreter) is now a native sandbox in Work, available on paid plans. ### Give Work the right context Work selects the right tools and context from your prompt automatically. You can also point it to a specific source when you want full control. Work draws on the following capabilities: > **Note:** > > Work can ask you to connect or authenticate a missing tool during a task. Your organization settings can also affect which tools are available. ### Follow the todos and progress For longer tasks, Work displays a live **todos panel** in the right-hand panel as it works, and may ask you **follow-up questions** when your prompt is ambiguous. It also shows progress, tool calls, and intermediate outputs while it works. Use these checkpoints to stay in control: - Watch the todos as they appear to see what Work is doing. - Approve or deny sensitive actions when prompted. - Stop the task with the **stop** button (the black square) if Work goes the wrong direction. - Redirect with a follow-up message if Work chooses the wrong source or approach. > **Note:** > > Work asks for approval before sensitive actions such as sending email, posting messages, creating calendar events, deleting issues, or changing data in external tools. > > For more detail, see [Safety and approvals](/vibe/work/web/safety-and-approvals). ### Review the result before using it Treat Work outputs as drafts until you review them. Before you use or share the result: - Read the final summary. - Review generated content in [Canvas](/vibe/work/web/files-and-canvas) or files. - Check facts, tables, dates, names, owners, and source references. - Verify extracted information against the original file or source when accuracy matters. - Ask Work to revise the output if the audience, tone, structure, or facts are wrong. - Approve, edit, share, or reuse the result only after review. ### Make repeated work easier After your first tasks, use Vibe settings and reusable context to reduce repeated instructions: --- # Code Interpreter Source: /vibe/work/web/code-interpreter > Run Python and TypeScript code in an isolated sandbox inside Vibe Work to analyze files, compute results, and build charts. > **Note:** > > Code Interpreter is available on paid plans only. Code Interpreter lets you **run code directly inside Vibe Work**. It runs in a native sandbox that supports Python and TypeScript, replacing the legacy Chat code interpreter with the same capabilities. Not a developer? No problem. Describe what you want in plain language, and Work generates and executes the code for you. > **Info:** > > Code runs in a **secure, isolated environment** with no internet access. It cannot reach your system or external services. Common data-analysis packages are preinstalled (pandas, numpy, matplotlib for Python; chart libraries for TypeScript). Uploaded files are available for the current conversation only. ### Common use cases Code Interpreter combines the versatility of Work with the precision of code execution. It's perfect for: - **Data analysis**: explore CSV, XLSX, or JSON files. Summarize, filter, flag outliers, or clean missing values. - **Charts and visuals**: generate line charts, bar charts, pie charts, or other visualizations from your data. - **Calculations**: work through formulas, financial models, or unit conversions with verified accuracy. - **File transformations**: convert formats, merge datasets, or export processed results as downloadable files. > **Note:** > > Code Interpreter usage is **subject to rate limits** based on your plan. For details, visit our [pricing page](https://mistral.ai/pricing). ### Running code Describe what you want **in plain language** and Work writes and executes the code for you. ```txt Load this CSV and show the top 5 rows, then plot sales by month. ``` The code runs in the sandbox and returns tables, figures, or files inline. You can follow up to refine results, adjust filters, or ask for explanations of what the code does. > **Info:** > > Code Interpreter cannot fetch files directly from URLs. If your data is online, download it locally and upload the file. Alternatively, enable [Web search](/vibe/work/web/web-search-open-url) and ask Work to fetch the data before running code. ### Working with files Upload files using the `+` button in the chat toolbar. Supported formats include: - **Documents**: PDF, Word (`.docx`, `.doc`), PowerPoint (`.pptx`, `.ppt`), ODT, EPUB, RTF - **Spreadsheets**: Excel (`.xlsx`, `.xls`), CSV, ODS, Numbers - **Images**: PNG, JPEG, WebP, GIF - **Text and markup**: TXT, Markdown, RST, LaTeX - **Data formats**: JSON, JSONL, XML, YAML - **Code files**: Python, JavaScript/TypeScript, Java, Go, Rust, C/C++, Ruby, PHP, SQL, and many more - **Email**: EML, MSG Typical prompts: - *"Summarize this spreadsheet and flag outliers."* - *"Clean this CSV, fix missing values, and export a new file."* - *"Extract all emails from this PDF and give me a CSV."* > **Note:** > > For details and advanced workflows, see the [Files and Canvas](/vibe/work/web/files-and-canvas) article. ### Tips for better results - **Be specific.** For charts or tables, specify column names, filters, and the desired output format. - **Ask for explanations.** Try *"Explain the steps and show the code"* to understand what's happening. - **Iterate.** Follow up with requests to fine-tune the output (e.g., *"Now add a rolling average and label the axes."*) - **Prototype with smaller files.** If you hit a limit, upload a sample to test your approach, then scale up. - **Avoid sharing secrets.** Never share API keys or credentials in the chat or in code. ### Related features - **[Files and Canvas](/vibe/work/web/files-and-canvas)**: edit and refine code, data, and text, and import documents, spreadsheets, and images into your conversation. --- # Connect tools with Connectors Source: /vibe/work/web/connectors > Connect Work to services like Gmail, Google Drive, GitHub, or Notion so it can retrieve, analyze, and act on their data in tasks. Connectors are **secure bridges** between Work and your external tools and data sources. They let Work retrieve, analyze, and act on data from services like Gmail, Google Drive, GitHub, or Notion as part of a task. Instead of switching between apps, you ask Work: *"Check my Gmail for unread messages about the quarterly report and summarize them"* or *"Find the latest design document in Google Drive and create a brief I can share with my team."* Work decides which Connector to call, asks for authentication if missing, and requests approval before sensitive actions. ### Available Connectors **Featured** Featured Connectors use a direct OAuth flow. Click `Connect` on the card and authenticate. Administrators can disable specific Connectors for the whole organization on a case-by-case basis. | Connector | What it does | |-----------|-------------| | Atlassian | Connect to Confluence and Jira to search, summarize, and perform project actions. | | Box | Search, analyze, and get insights from your Box files. | | GitHub App | Search repositories, review issues, and manage pull requests in GitHub. | | Gmail | Include your email in your chats. | | Google Calendar | Include your calendar in your chats. | | Linear | Search, summarize, and manage your issues and projects in Linear. | | Notion | Search, summarize, and author content in Notion. | | Outlook | Read and send emails with Outlook. | | Outlook Calendar | Manage your Outlook Calendar — search events, schedule and delete meetings, and accept or decline invitations. | | SharePoint Search API | Search and open SharePoint content via Microsoft Graph API. | | Slack | Search messages, read channels, send messages, and manage canvases in Slack. | | Stripe | Access and manage payments, customers, and transactions in Stripe. | **MCP** Connect Work to **any service** built on the [Model Context Protocol](https://modelcontextprotocol.io) (MCP). Pick a pre-configured Connector from our directory, or point Work at your own MCP-compatible server. Requires an administrator. For directory browsing, custom configuration, and security best practices, see our [MCP Connectors guide](/vibe/work/web/connectors/mcp-connectors). ### Connecting a service To connect a featured Connector: 1. Open the `Connectors` page from the sidebar. 2. Find the Connector card and click `Connect`. 3. Complete the authentication flow (typically OAuth 2.0). Your password is never shared with us. A green `Connected` indicator confirms the connection. You can disconnect at any time from the same page. ### Using Connectors in tasks Once connected, Work can use the Connector automatically when relevant. You can also enable a specific Connector for a task: 1. Click the `+` icon or type `/` in the chat window. 2. Select `Tools` then enable the Connector you want to use. Then describe the task naturally. Work figures out which Connector to call based on your request. Typical prompts: - *"What meetings do I have tomorrow?"* - *"Find the latest Q3 revenue deck in Google Drive and prepare a one-page summary."* - *"Create a calendar event for Friday at 2pm with the product team."* - *"Check my unread emails from the legal team and draft replies for me to review."* #### Approving actions When a Connector performs an action on your behalf (sending an email, creating an event, modifying a file), Work asks for your **approval before executing** it. See [Safety and approvals](/vibe/work/web/safety-and-approvals#approving-sensitive-actions) for the full approval flow and the three options (`Continue`, `Always allow`, `Decline`). You can also pre-authorize specific functions per Connector — see [Per-function Connector permissions](/vibe/work/web/safety-and-approvals#per-function-connector-permissions). ### Data and privacy Featured Connectors fetch data in real time for your current request. We don't store it on our servers, and disconnecting revokes access immediately. **Training**: data accessed through Connectors is **never used to train or fine-tune our models**, regardless of your plan. Conversations that reference Connector data are treated as regular user-provided content and follow the [applicable Mistral AI terms](https://legal.mistral.ai/). --- # MCP Connectors Source: /vibe/work/web/connectors/mcp-connectors > Connect Work to third-party and custom MCP servers, configure authentication and per-function permissions, and troubleshoot issues. Beyond our [featured Connectors](/vibe/work/web/connectors), you can connect Work to third-party and custom services built on the **Model Context Protocol (MCP)**. > **Info:** > > MCP is an open standard that lets language models call tools and read data from external services through a common interface. Any service that exposes an MCP server — whether built by a third party or by your own team — can be plugged into Work. See the [MCP introduction](https://modelcontextprotocol.io/docs/getting-started/intro) for the full background. There are two ways to add an MCP Connector: pick one from the **pre-configured directory**, or point Work at **your own MCP-compatible server**. Both require an administrator. > **Warning:** > > MCP Connectors aren't Mistral products. We don't control third-party servers and can't guarantee their behavior or data handling. Connect only to servers you trust. ### Browsing the directory The MCP Connectors directory is a curated collection of pre-configured third-party Connectors your administrator can add to your organization. 1. Open the `Connectors` page. 2. Click `+ Add Connector`. 3. Browse the directory or search for a specific Connector. 4. Click a Connector to view its details and add it to your organization. 5. Complete the authentication flow if required. Some Connectors in the directory require additional configuration (a custom URL or API key). You'll be prompted during setup. > **Note:** > > This is an administrator-only feature. On Free, Pro, and Student plans, the account owner is the administrator by default. ### Configuring a custom Connector Custom Connectors let you connect Work to any MCP-compatible server. This is useful for internal tools, private APIs, or services that aren't in the directory. 1. Open the `Connectors` page. 2. Click `+ Add Connector` and switch to the `Custom MCP Connector` tab. 3. Fill in the required fields: - **Connector name**: a unique identifier (no spaces or special characters). - **Server URL**: the full URL of your MCP-compatible server. - **Description** (optional): a short explanation of what this Connector does. 4. Click `Connect`. The platform detects the server's authentication method automatically. 5. Complete the authentication flow if prompted. #### Supported authentication methods Our platform auto-detects the authentication method when you provide the server URL: - **No authentication**: for publicly accessible or trusted internal servers. - **HTTP Bearer Token / Basic Auth**: for servers that require credentials in the `Authorization` header. - **OAuth 2.1** (with dynamic client registration): for servers using standard OAuth 2.1 delegated access. You'll be guided through the consent flow. ### Per-function permissions After setup, every user can control whether Work asks for permission each time it calls a Connector function, or whether it should be pre-authorized. 1. Go to `Connectors` and select the `My Connectors` tab. 2. Click the Connector card to open its details. 3. Open the `Functions` tab. 4. Toggle `Always allow` for each function you want to pre-authorize. MCP Connectors expose two types of functions: - **Read functions**: retrieve information (list events, search files, get data). Lower risk. - **Write functions**: perform actions (send emails, create events, modify records). Higher risk. > **Tip:** > > Pre-authorize read functions you use frequently to reduce approval prompts. Keep write functions on manual approval until you're confident in the Connector's behavior. ### Security best practices Since MCP Connectors connect Work to servers we haven't reviewed, you're responsible for vetting them. Keep these practices in mind: - **Vet every server you connect.** Check the publisher, review documentation, and verify the server's purpose before adding it. - **Watch for unexpected changes.** Server developers can update tools at any time, which may change behavior. Monitor Connector outputs periodically. - **Guard against prompt injection.** A malicious server could attempt to inject hidden instructions. Work has built-in protections, but review tool inputs and outputs for anything unexpected. - **Grant only the permissions you need.** Use the per-function `Always allow` toggle deliberately. Start with manual approval and only pre-authorize functions you trust. If you discover a malicious MCP server, report it to our support team. ### Current limitations Custom MCP Connectors don't yet support all MCP capabilities: - [Dynamic tool discovery](https://modelcontextprotocol.io/specification/2025-06-18/server/tools) - [Resources](https://modelcontextprotocol.io/specification/2025-06-18/server/resources) - [Automatic prompt templates](https://modelcontextprotocol.io/specification/2025-06-18/server/prompts#prompts) We plan to add support for these in future updates. ### Troubleshooting If you see *"MCP connection requires additional information or is invalid"*, check the following: - **Endpoint URL**: make sure you're using the correct path (some servers use `/mcp` or `/sse`). Streamable HTTP is the current standard. - **Server reachability**: the server must be accessible over HTTPS with a valid TLS certificate. - **Authentication**: verify your credentials. OAuth servers should return a `401` with a `WWW-Authenticate` header; API key servers should return `200` on a valid request. - **MCP handshake**: the server must respond correctly to the `initialize` JSON-RPC call. > **Tip:** > > Use the [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) to test your server's compatibility before configuring it in Work. #### Quick checks with curl **Test reachability:** ```bash curl -I https://your-server.example.com/mcp ``` **Test API key authentication:** ```bash curl -H "Authorization: Bearer YOUR_API_KEY" https://your-server.example.com/mcp ``` **Test MCP initialize handshake:** ```bash curl -X POST https://your-server.example.com/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{}}}' ``` A successful response includes `"result"` with the server's capabilities. An error response or timeout indicates a configuration issue on the server side. --- # Set custom instructions Source: /vibe/work/web/custom-instructions > Define persistent preferences such as your role, domain, and output style that Work applies to every task. Custom instructions let you define **persistent preferences** that shape how Work responds across every task. > **Note:** > > Think of them as a brief profile you give the assistant: your role, your domain, your preferred output style. Instead of repeating *"I work in compliance"* or *"use metric units"* at the start of each task, you set it once and Work applies it automatically. For teams, custom instructions help standardize how your organization interacts with Work, so everyone gets responses tailored to shared conventions, terminology, and formatting requirements. ### Setting up custom instructions 1. In the left sidebar, click `Context` then `Instructions`. 2. The Custom instructions pop-up opens. 3. Choose a **Tone** and enter your instructions: describe your role, output format, or any context you want Work to assume. 4. Save your changes. Your instructions take effect in all new tasks from that point on. Existing tasks aren't affected. > **Info:** > > Custom instructions are included in the context Work uses to plan and execute every task, alongside your prompt, attached files, Connectors, Libraries, and Skills. ### Interactions with other features Custom instructions apply alongside other context sources, but their priority depends on the feature. - **[Skills](/vibe/work/web/skills)**: when a Skill is active for a task, its instructions take precedence over your custom instructions. This lets you apply task-specific procedures without conflicting with your general preferences. - **[Projects](/vibe/work/web/projects)**: Projects can provide context tied to a specific work area. Both apply together for tasks inside a Project. - **Tools**: custom instructions shape how Work communicates with you, but they don't change how tools execute. For example, a Connector still queries the same data regardless of your formatting preferences. ### Examples A good custom instruction is short, specific, and tells Work something it can't infer from your prompts alone. **Role and domain expertise** - *"I'm a compliance officer at a European bank. Reference EU regulations (MiFID II, GDPR) when relevant."* - *"I'm a software engineer working with Python and TypeScript. Tailor code examples accordingly."* - *"When I ask about data, assume I'm working with PostgreSQL."* **Output formatting** - *"Structure all technical responses with Problem, Analysis, Solution, and Next Steps sections."* - *"Always format financial figures with two decimal places and include the currency symbol."* - *"Keep responses concise. Use bullet points instead of paragraphs."* **Language and tone** - *"Always respond in French unless I ask otherwise."* - *"Respond in British English. Use formal tone for client-facing content, casual for internal notes."* **Constraints** - *"Don't include disclaimers or caveats unless I'm asking about medical, legal, or financial advice."* - *"When generating code, always include error handling and type annotations."* ### What to avoid Custom instructions work best when they're focused. - **Don't use them as a project brief.** They're meant for persistent preferences, not task descriptions. For task-specific context, use the prompt itself or [Projects](/vibe/work/web/projects). - **Don't contradict your prompts.** If your custom instruction says "always respond in French" but you ask questions in English and expect English answers, you'll get inconsistent results. - **Keep them concise.** A few well-written sentences work better than multiple paragraphs. The more focused your instructions, the more reliably Work follows them. - **Don't include secrets or credentials.** Custom instructions are persistent and apply across all your tasks. --- # Work with Files and Canvas Source: /vibe/work/web/files-and-canvas > Upload documents, images, audio, and spreadsheets into a task, then review, edit, and refine Work's output in Canvas. **Files** bring source material into a task. **Canvas** is the built-in editor where Work produces, previews, and refines outputs. Together, they let you go from a raw upload (CSV, PDF, screenshot, document) to a polished, editable deliverable without leaving the chat interface. > **Info:** > > Files and Canvas are available on **all plans** with no setup required. Usage limits apply based on your plan. See our [pricing page](https://mistral.ai/pricing) for details. ### Files: bring source material into a task Upload documents, images, and spreadsheets directly into a chat. Work reads the content and uses it as context, so you can ask questions, extract information, and get answers based on your data. #### How to upload Two ways to get files into a chat: - **Drag and drop**: drag one or more files into the chat window. - **`+` button**: click the `+` icon in the chat toolbar then select `Upload Files` and select files from your device. You can upload multiple files at once (or even a folder). Work keeps them in context for the full chat, so you can ask follow-up questions without re-uploading. > **Tip:** > > Use descriptive filenames. They make it easier to reference specific files when you have several in the same chat. #### Supported formats | Category | Formats | |----------|---------| | **Documents** | PDF, Word (`.docx`, `.doc`), PowerPoint (`.pptx`, `.ppt`), ODT, EPUB, RTF | | **Spreadsheets** | Excel (`.xlsx`, `.xls`), CSV, ODS, Numbers | | **Images** | PNG, JPEG, WebP, GIF | | **Text and markup** | TXT, Markdown, RST, LaTeX | | **Data formats** | JSON, JSONL, XML, YAML | | **Code files** | Python, JavaScript/TypeScript, Java, Go, Rust, C/C++, Ruby, PHP, SQL, and more | | **Email** | EML, MSG | | **Audio** | | #### Querying text documents Upload a PDF, Word file, or presentation and ask Work to focus on what matters to you. Answers come directly from the uploaded content, not from general knowledge. Typical prompts: - *"Summarize this annual report with a focus on financial risks."* - *"Extract all dates, parties, and obligations from this contract."* - *"List the key security findings in this audit report."* - *"Compare slide 3 and slide 7 and list the differences."* Follow up to go deeper. Work remembers uploaded files throughout the chat, so you can refine, drill into specifics, or ask for translations without re-uploading. #### Analyzing images Work can interpret photos, diagrams, screenshots, and scanned pages. Upload an image with the `+` button and ask your question. - **Text extraction**: *"Extract all the text from this scanned invoice."* Works with handwritten notes, printed forms, and photographed whiteboards. - **Diagram interpretation**: *"Describe the architecture shown in this diagram."* - **Screenshot analysis**: *"What error is shown in this screenshot?"* > **Note:** > > For heavier document processing needs (structured extraction from scanned PDFs, multi-page forms, or handwritten content in bulk), check Studio's [Document AI](/studio/document-processing) features. #### Analyzing audio Upload a recording, such as a meeting, a voice memo, or a call, and ask Work about it. Work transcribes the audio, then answers from the transcript: it can quote the transcript, summarize it, translate it, or find a detail. - **Transcription**: *"Transcribe this recording."* - **Details**: *"Find the number in this recording."* - **Summaries**: *"Summarize this meeting and list the action items."* > **Note:** > > For transcription at scale, speaker labels, timestamps, or custom vocabulary, use Studio's [Speech to Text](/studio/audio/speech-to-text) features. #### Analyzing spreadsheets For tabular files like CSV or Excel, Work can answer questions, summarize, and extract data directly from the upload. Typical prompts: - *"Show me all sales from the North region."* - *"What's the average deal size by quarter?"* - *"List the top 10 customers by revenue."* > **Note:** > > For data analysis (custom statistics, charts, transformations), use [Code Interpreter](/vibe/work/web/code-interpreter) in Work — a native sandbox available on paid plans. ### Canvas: review, edit, and iterate on Work's output Canvas is the built-in editor where Work produces and refines text, data, code, and presentations. You go from a raw upload to a polished deliverable without leaving the chat. #### Activation 1. Click the `+` icon or type `/` in the chat window. 2. Select `Tools` then enable `Canvas`. Once activated, Canvas **opens automatically** when Work determines it would be useful. You can also **trigger it manually** by typing `/canvas` in the message box or asking Work to *"open in Canvas"* in your prompt. Typical prompts that open Canvas: - *"Create a presentation outline for our Q3 results."* - *"Analyze the attached CSV and show it as a table."* - *"Write a Python script to parse JSON logs."* #### Canvas features **Editing** Work directly in the Canvas like you would in any editor. - **Direct editing**: click anywhere to edit text, code, or data by hand. Fix a typo, rename a column, or rewrite a paragraph. - **Multiple Canvases**: open several Canvases in one chat. Each one appears as a tab, so you can switch between a data table and a draft report without losing context. - **Version control**: use the navigation arrows to move between versions. Toggle the change-tracking view to see exactly what changed. Restore any previous version at any time. **AI assistance** Let Work refine, translate, or transform your content. - **Inline prompts**: select a passage to reveal the `Ask Work` field. Type a request (*"make this more concise"*, *"translate to French"*) and Work applies the change to the selection only. - **Quick actions**: click the sparkle icon for context-aware shortcuts like translate, optimize, or visualize. Available actions depend on the content type. - **Preview mode**: click the eye icon to toggle between raw content and rendered output. Supports HTML, React components, [Mermaid](https://mermaid.js.org/) diagrams (text-based charts and flowcharts), and [Marp](https://marp.app/) presentations (text-based slides). **Export and sharing** Get your work out of Canvas and into your tools. - **Export**: save Canvas output as a file. For example, export a slide deck as PowerPoint or a table as a CSV/Excel file. - **Share**: distribute the full chat, including Canvas content. - **Copy**: transfer raw Canvas content to your clipboard. ### Common use cases - **Quarterly reports**: upload financial data, generate tables and summaries, export as slides. - **Project briefs**: draft structured documents with inline AI editing. - **Contract review**: extract clauses, parties, dates, and obligations from PDF uploads. - **Data exploration**: query CSVs and spreadsheets with direct editing. - **Image and screenshot analysis**: extract text, interpret diagrams, debug error screens. - **Presentations**: build and preview Marp slide decks without leaving Work. - **Code prototyping**: write and iterate on Python scripts or React components. - **Email and content drafts**: compose, refine, and translate written content with inline prompts. ### Worked example: from data to slides Files and Canvas shine when chained together. Here's a typical sequence for turning a raw upload into a shareable deliverable. #### Upload and explore your data Import a CSV or spreadsheet using the `+` button and select `Upload Files`, then ask: ```txt Analyze the attached CSV and open it in Canvas. ``` Canvas displays your data as an editable table. Click into cells to fix headers, rename columns, or remove empty rows. > **Tip:** > > If Canvas opens in the wrong format, ask *"Show this as a table"* and it will switch. #### Generate a written summary Once your data looks right, ask Canvas to produce a text summary: ```txt Transform this table into a concise executive summary. ``` Canvas drafts a write-up based on your data. You can edit the result directly or use inline prompts to refine specific sections. #### Create a slide deck Turn your analysis into presentation-ready slides: ```txt Create slide-ready bullet points with the key insights and recommendations. ``` Canvas generates slides using [Marp](https://marp.app/) syntax, a text-based format for presentations. Click the **eye icon** to preview the rendered deck. When the slides look good, use the export button to save the deck as a PowerPoint file for final adjustments in your preferred tool. > **Tip:** > > To create a PowerPoint presentation that you can edit, present, and share directly in Canvas, see [Slides](/vibe/work/web/slides), available on paid plans. ### Tips for better results - **Be specific.** Tell Work what to focus on: *"Summarize this contract for a compliance officer"* gives better results than *"Summarize this file."* - **Use action verbs.** Summarize, extract, compare, explain, highlight, list, convert. - **Reference files explicitly.** When you have several uploads, mention the filename: *"In `AnnualReport_2024.pdf`, page 14, extract the revenue breakdown."* - **Iterate.** Follow up with requests to refine, translate, or reformat the output. - **Verify before sharing.** Treat generated content as a draft. Check facts, numbers, and citations against the source. --- # Generate images Source: /vibe/work/web/image-generation > Enable image generation in Work, then create and edit images from plain-language prompts, with templates and best practices. Work can **generate and edit images** directly in the chat interface. Describe what you need **in plain language** and get visuals you can use for presentations, product mockups, marketing materials, and more. > **Note:** > > Work uses [Black Forest Labs](https://blackforestlabs.ai) models for image generation. ### Activation 1. Click the `+` icon or type `/` in the chat window. 2. Select `Tools` then enable `Image generation`. Image generation stays active for the current session. You can enable other tools at the same time. > **Info:** > > Daily generation limits apply based on your plan. For details, visit our [pricing page](https://mistral.ai/pricing). ### Creating images Describe the image you want **in natural language**. You don't need complex prompts or special syntax. Say what you're looking for and Work handles the rest. For the best results, include: - **Subject**: what the image shows. - **Style**: illustration, photorealistic, diagram, flat design, etc. - **Constraints**: aspect ratio / orientation. Example prompt: *"Create a flat illustration of a modern office interior with natural light and plants."* ### Editing images You can refine generated images or edit existing ones in two ways. #### Continue in the same chat After generating an image, describe the changes you want **in a follow-up message**. Work understands you're referring to the previous image and produces an updated version. Example: *"Add a whiteboard on the back wall. Keep the lighting and color palette unchanged."* #### Upload an image in a new chat Start a new chat, then upload an image using the `+` button by selecting `Upload Files`. Describe the edits you want, and Work generates a new version based on your instructions. > **Tip:** > > This is useful when you want to pick up a previous result or edit an image from another source. ### Prompt templates Here are reusable patterns for common use cases: | Type | Template | |------|----------| | **Scene** | Subject, style (flat/minimal), composition, aspect ratio | | **Photographic** | Subject, photorealistic style, lighting type, lens, aspect ratio | | **Product mockup** | Subject, studio shot, background, composition, aspect ratio | | **Diagram** | Subject, clean lines, readable labels, accessible colors, aspect ratio | | **Presentation visual** | Subject, slide-friendly composition, brand colors, minimal text, aspect ratio | | **Marketing material** | Subject, target audience tone, style, brand guidelines, aspect ratio | ### Common use cases - **Pitch and deck visuals**: hero images, section dividers, and stylized backgrounds for investor decks or internal presentations. - **Marketing assets**: campaign banners, landing-page heroes, social posts with consistent brand tone. - **Product mockups**: render a concept on a neutral background to compare directions before a designer takes over. - **Internal communications**: header imagery for announcements, onboarding decks, all-hands recap docs. - **Concept exploration**: generate multiple visual directions from a brief before committing one to production. - **Diagrams and conceptual illustrations**: process flows, organizational charts, abstract concept visuals for documents and reports. - **Placeholder visuals during drafting**: get a stand-in image immediately while a final asset is in production. ### Best practices - **Be specific.** *"A photorealistic hero image for a fintech landing page, dark background, abstract light trails"* produces better results than *"make a banner."* - **Iterate.** Treat the first result as a starting point. Refine with follow-up prompts until you're satisfied. - **Pair with professional tools.** Image generation works best alongside dedicated editing software for final adjustments like precise cropping, color correction, or brand overlays. - **Download and reuse.** Click the download button on any generated image to save it locally. > **Tip:** > > For charts, graphs, and data visualizations, use [Code Interpreter](/vibe/work/web/code-interpreter) in Work instead. It generates accurate visuals from your actual data using code. ### Limitations - Prompts or images that contain copyrighted or inappropriate content may be blocked by safety filters. - Fine details (small text, complex patterns) can sometimes be lost or altered during editing. --- # Knowledge Source: /vibe/work/web/knowledge > How Knowledge saves context from your conversations so Vibe can recall it later, and how to manage, turn off, or control it. Knowledge saves **what matters from your conversations** so Vibe can recall it later. Instead of restating your preferences, projects, and context at the start of every chat, you explain once and Knowledge **carries that context forward**. Less repetition means **more relevant responses and more productive conversations**. Knowledge also surfaces saved information when you search for a specific detail, so you can find a fact or preference without scrolling back through old conversations. > **Info:** > > Knowledge is the successor to [Memories](/vibe/chat-legacy/memories) and is available only in Vibe Work. If you used Memories in Chat, your memories migrate into Knowledge as a knowledge topic. Chat Memories remain available until the migration completes. ### How it works Think of Knowledge as a self-organized notepad: it saves what you explicitly ask it to save, and picks up recurring information from your conversations as a second mode. Two mechanisms decide what gets stored. - **Explicit saving**: use keywords such as "remember" or "save" to tell Vibe to store a specific fact. For example, *"Remember that I work with TypeScript,"* or *"Save that my team uses Linear for tracking."* This is the mode that works best for anything you want to recall reliably. - **Implicit saving**: Vibe also detects recurring details that would be useful later, such as your preferred formats or the tools you rely on, and stores them on its own. As you chat, Vibe reviews your knowledge at each turn in a conversation and decides which knowledge entries are relevant to the current task. Retrieval is non-deterministic: the same knowledge isn't used in every conversation, only when it fits the request. You can see when this happens. Vibe displays a **read** pill when it consults your knowledge and a **write** pill when it saves a new entry. These pills appear inline in the chat, so you can see when Knowledge is active. > **Info:** > > Knowledge captures information from your conversations and supports Markdown and text content. You manage everything through the chat interface; there's no separate API for knowledge entries. ### Get started Knowledge is enabled by default. To set it up for the first time, follow these steps: 1. In the sidebar, click `Context`. 2. Click `Knowledge`. 3. Click the `Get Started` button to test it with a first conversation. > **Tip:** > > After you set it up, Knowledge runs in the background. You don't need to switch it on for each conversation. You can turn it off in your `Privacy` settings or from the `Knowledge` page. ### Manage your knowledge All your knowledge entries appear in the `Knowledge` section, where you can review and control what's stored. You can also turn on Knowledge and delete all your knowledge from the action button at the top right of the `Knowledge` page, or from `Settings`. - **List**: open the `Knowledge` section to see every knowledge entry Vibe has saved, with a title and description for each. - **Edit**: highlight the information you want to change and ask the model to refine it. For example, *"Make this more specific,"* or *"Add that I now use PostgreSQL."* You can't edit the text of a knowledge entry directly; changes go through the model in chat. - **Delete a topic**: click the three dots `...` at the top right of the knowledge page and select the delete option to remove an entire topic. - **Delete a single entry**: ask Vibe directly in the conversation to remove a specific fact. For example, *"Forget that I mentioned my location."* - **Delete all**: remove every knowledge entry at once from the action button at the top right of the knowledge page or from `Settings`. This action is irreversible. - **Export**: export your data at any time from `Settings` for a live copy of what's stored. You can also ask Vibe directly in a conversation to remove, correct, or modify any knowledge entry. ### Turn off Knowledge To turn off Knowledge for your account, click your organization name at the bottom left of the sidebar, then `Privacy`. In the `Personalization` section, deactivate `Knowledge` ("Allow Vibe to automatically save and organize key insights from your chats."). You can also toggle it off from the `Knowledge` page. Your existing knowledge entries stay visible, but they no longer influence responses until you turn the feature back on. > **Warning:** > > Turning off Knowledge doesn't delete your stored knowledge entries. To remove them, use `Delete all knowledge` before deactivating. ### Privacy and data Knowledge is designed to give you control over what's stored and how it's used. - **Sensitive data is off by default.** Knowledge doesn't save sensitive personal information (such as political opinions, religious beliefs, or health details) unless you turn on `Sensitive data in Knowledge`. Highly sensitive information is never saved. Memories migrated from Chat stay as they are. For details, see [Sensitive data](#sensitive-data). - **Transparency.** When a fact is added to your knowledge, it's indicated as a Knowledge entry, so you can see what's been saved. - **No inference or new information.** Knowledge captures information from your conversations; it doesn't infer or create new information on its own. It's a source of context to support Vibe's responses, not a separate reasoning step. - **No autonomous action.** Knowledge doesn't let Vibe take actions on its own. Vibe remains bound by your Connector permissions and the same approval prompts as any other task. - **Organization-level control.** Workspace admins can turn off Knowledge for everyone in the organization: 1. Open the admin console at `admin.mistral.ai/vibe/preferences`. 2. Go to the `Tools` section. 3. Turn off `Knowledge` ("Allow users to save and use personal Knowledge across conversations in Work mode"). When an admin turns it off, Knowledge is unavailable to all members. ### Sensitive data By default, Knowledge doesn't save sensitive personal information. To let it save some sensitive information about you, such as health details, turn on `Sensitive data in Knowledge`. To turn it on, click your organization name at the bottom left of the sidebar, then `Privacy`, and turn on `Sensitive data in Knowledge`. This setting appears only when Knowledge is on, and it applies only to information saved after you turn it on. The following table lists the sensitive information that Knowledge saves when the setting is on, and the information that it never saves. | Saved when the setting is on | Never saved | | --- | --- | | Race or ethnic origin | Government identifiers, such as Social Security, passport, national identity, or tax ID numbers | | Political opinions | Criminal records | | Religious or philosophical beliefs | Financial account numbers, banking information, and payment details | | Trade union membership | Passwords, secrets, credentials, and tokens | | Genetic and biometric data | Sensitive information about other people | | Health and medical details | | | Sex life or sexual orientation | | When the setting is on, Vibe saves sensitive information about you under the same rules as any other knowledge: when you ask it to, or when the information is clearly meant to last. Each time it saves sensitive information, Vibe tells you without repeating the value. It never infers sensitive information that you haven't shared. When the setting is off, Vibe doesn't save sensitive information, even if you ask it to. The first time you share sensitive information about yourself in a conversation, Vibe tells you that it wasn't saved and points you to the setting. You can still discuss any topic. The setting only controls what Knowledge stores. > **Info:** > > Turning off `Sensitive data in Knowledge` doesn't delete knowledge entries already saved. To remove them, ask Vibe in a conversation or delete them from the `Knowledge` page. #### Admin controls Admins can prevent members from turning on `Sensitive data in Knowledge`. When an admin turns it off, the setting stays off for every member that it applies to, and they can't turn it back on. Members can see which admin turned it off. - **Organization**: in the admin console at `admin.mistral.ai/vibe/privacy`, turn off `Sensitive data in Knowledge`. - **Workspace**: in the workspace settings, open `Chat Settings` and turn off `Sensitive data in Knowledge`. The organization setting takes precedence over the workspace setting. ### Related features Knowledge works alongside other sources of context in Work: --- # Add context with Libraries Source: /vibe/work/web/libraries > Build persistent knowledge bases from your documents and web pages, attach them to tasks, and share them with your Organization. Libraries are **persistent knowledge bases** you build from your own documents and web pages. Attach a Library to any task and Work **searches its contents in real time**, returning answers **based on your data** with direct references to the source material. > **Info:** > > Unlike [file uploads](/vibe/work/web/files-and-canvas), which last for a single chat, Libraries persist across sessions. Upload once, use everywhere. ### Common use cases Libraries work best when you need the same set of documents available across multiple tasks: - **Internal documentation**: upload your company handbook, IT policies, or HR guidelines and let your team ask questions in natural language. - **Product specs and release notes**: keep technical specifications in a Library so product, sales, and support teams can all reference the same source of truth. - **Research and reports**: build a Library from industry reports, white papers, or academic articles and query them without re-reading hundreds of pages. - **Client or project knowledge**: create a Library per client or project with contracts, briefs, and meeting notes for quick retrieval. - **Onboarding material**: build a Library of onboarding docs so new hires can ask Work questions in natural language. ### Creating and populating a Library 1. Open the `Libraries` page from the sidebar. 2. Click `New Library`. 3. Give it a descriptive name. This is visible to others if you share the Library, so choose something meaningful (for example, `Q1 product specs` or `Engineering onboarding`). #### Uploading documents Drag and drop files into the Library, or click `Upload` to browse your device. You can upload up to **100 files at once**, with a maximum file size of **100 MB per file**. A status indicator shows processing progress. Most standard documents (a few MB) process in seconds to a couple of minutes. Larger or more complex files take longer. #### Adding web pages You can also add external web pages to a Library: 1. Click `Webpage` in the Library view. 2. Enter one or more URLs. 3. Click `Index`. > **Note:** > > Only the text content of the page is indexed. Child pages, images, and charts aren't included. If you need the full visual content, download the page and upload it as a file instead. ### Supported formats Libraries accept the same formats as [file uploads](/vibe/work/web/files-and-canvas): | Category | Formats | |----------|---------| | **Documents** | PDF, Word (`.docx`, `.doc`), PowerPoint (`.pptx`, `.ppt`), ODT, EPUB, RTF | | **Spreadsheets** | Excel (`.xlsx`, `.xls`), CSV, ODS, Numbers | | **Images** | PNG, JPEG, WebP, GIF | | **Text and markup** | TXT, Markdown, RST, LaTeX | | **Data formats** | JSON, JSONL, XML, YAML | | **Code files** | Python, JavaScript/TypeScript, Java, Go, Rust, C/C++, Ruby, PHP, SQL, and more | | **Email** | EML, MSG | ### Using Libraries in tasks #### Attaching a Library to a chat In any chat, click the `+` button then select `Libraries` and search for the Library of your choice or create one from scratch. You can attach **multiple Libraries** to a single chat. #### Querying your documents Once attached, Work searches across all documents in the Library to answer your task. Ask naturally: - *"What does our refund policy say about international orders?"* - *"Summarize the key findings from the Q2 market analysis."* - *"Find all references to data retention in the compliance docs."* > **Tip:** > > To query a single document instead of the full Library, click `+`, select `Upload Files`, choose your Library, and pick the specific document you want to attach. You can also mention the document by name in your prompt to help Work focus its search. #### Verifying sources Each response includes **numbered footnotes** linked to the original source material. Click a footnote to jump to the relevant passage. To see every reference used in a response, click the `Sources` button at the bottom of the message. This makes it easy to verify answers against your original documents before using them in reports, emails, or presentations. ### Sharing and permissions By default, a new Library is **private** (only you can see and use it). #### Sharing with specific people 1. Open the `Libraries` page. 2. Select the Library you want to share. 3. Click `Share` to open the access modal. 4. Search for users by name or email and assign a permission level: - **Collaborator**: can use the Library, upload or delete documents, and modify settings. - **Viewer**: can use the Library in their own chats but can't modify it. #### Sharing with your entire organization In the same modal, toggle `Entire organization` and choose whether everyone gets Collaborator or Viewer access. > **Note:** > > Recipients may need to refresh the page to see newly shared Libraries in their list. ### Managing Libraries #### Viewing and downloading documents Open a Library and click any document in the list. The right panel shows the processed content and an auto-generated summary. Click `Download` in the panel or use the three-dots menu to save the original file. #### Renaming a Library Rename a Library from its settings. The change is visible to all users who have access (they may need to refresh). #### Deleting a Library Delete a Library from the `Libraries` page. This removes it permanently for everyone, including all uploaded documents. > **Warning:** > > Deleting a Library is permanent and can't be undone. All documents inside are removed from our systems. ### Limits and processing - **No restriction** on the number of Libraries you can create. - Up to **100 files** can be uploaded at once per Library. - Maximum file size: **100 MB** per file. - Each document uses processing capacity based on its size. Your monthly allowance resets automatically and is shared across all your Libraries. > **Info:** > > If you've reached your processing limit for the month, new uploads are paused until the allowance resets. Existing Libraries and their content remain fully usable. ### Data and privacy - Storage lasts as long as the Library exists in an active account. Deleting a Library or your account triggers permanent removal from our systems. - Training policies depend on your plan. You can [opt out](https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-for-training) of data training at any time. For more details, see the [Mistral AI terms](https://mistral.ai/terms) and [trust center](https://trust.mistral.ai/). --- # Mini apps Source: /vibe/work/web/mini-apps > Ask Work to build interactive React mini apps in Canvas, switch between preview and code, iterate, download, and share them. Vibe Work can build interactive mini apps: self-contained React applications that run directly in the Canvas panel. Describe what you want and Work generates the code and renders the app live. ### Create a mini app Describe the app you want in plain language. Work generates the code and renders it immediately. Example prompts: - *"Build a unit converter for length, weight, and temperature."* - *"Create a Pomodoro timer with start, pause, and reset controls."* - *"Make a quiz app with five questions about world capitals."* - *"Build a color palette generator that lets me adjust hue and saturation."* The app appears inline in the chat as a preview panel and is interactive right away. Click buttons, fill forms, and use it as you normally would. Click `Expand` at the bottom of the panel to open it in the side Canvas view. ### Switch between preview and code The Canvas panel has two views, toggled with the icons in the top-left corner: - **Preview** (eye icon): renders the running app. This is the default view. - **Code** (`<>` icon): shows the source files. A file list appears on the left; click any file to open it in the editor. ### Iterate on the app Refine the app by continuing the conversation in chat: - *"Add a dark mode toggle."* - *"Change the button colors to match our brand."* - *"Add a reset button that clears all inputs."* Work updates the code and re-renders the app. You can also edit source files directly in the code view. ### Download the source code To download the app as a ZIP archive: Click the download icon in the top-right corner of the Canvas panel. The ZIP contains the full source files (`index.js`, `styles.css`, and any other files Work created) and can be opened in any code editor or deployed to a static host. ### Share the app To share a live, interactive version of the app: 1. Click `Share` in the top-right corner of the Canvas panel. 2. Toggle `Link accessible to anyone` on. 3. Click `Copy link` to copy the public URL, or use one of the `Share to` buttons to send it directly via email, X, LinkedIn, Reddit, or WhatsApp. Anyone with the link can view and interact with the app. Your chat messages aren't shared. Only the app itself is accessible through the link. To stop sharing, return to the Share dialog and toggle `Link accessible to anyone` off. --- # Group tasks with Projects Source: /vibe/work/web/projects > Group chats into Projects with their own instructions and shared files, and add, move, or remove chats between them. Projects let you **group chats** into distinct, manageable collections — and give each group its own tone, instructions, and shared files. Use them to keep context, preferences, and reference material scoped to one initiative: you switch from a client engagement to a launch plan without remixing prompts, re-uploading files, or losing track of past chats. > **Info:** > > Projects are available on all plans. Limits may apply to the number of Projects and chats per Project. See our [pricing page](https://mistral.ai/pricing) for details. ### Creating a Project 1. Click the `New Project` button next to the `Projects` header in the left sidebar. 2. Choose a name and an icon for your Project. 3. Click `Create`. Your new Project appears in the sidebar, ready to receive chats. ### Project instructions and context Each Project can carry its own tone, instructions, and shared context that apply to every chat inside it. Open a Project to access these settings: - **Tone**: pick a tone for this Project, or keep `Default (Global)` to inherit the tone from your account-level [Custom instructions](/vibe/work/web/custom-instructions). - **Instructions**: click `Customize` to write Project-specific instructions — formatting rules, domain-specific guidance, or any persistent context that should apply to every chat in the Project. - **Additional context**: - **Files**: click `Upload files` to attach documents, spreadsheets, PDFs, or images directly to the Project. Every chat can reference them without re-uploading. - **Other chats**: toggle `Include other projects' chats as context` to let Work draw on the other chats in this Project when planning new tasks. ### Managing chats The Project overview page shows all your chats in list or grid view. From there you can add, move, or remove chats. #### Adding a chat **Drag and drop** 1. Locate the chat in the sidebar. 2. Drag it over the target Project name and release. **Folder icon** 1. Open the chat. 2. Click the folder icon in the chat header. 3. Select a Project from the dropdown. #### Moving a chat to another Project Open the chat, click the folder icon, and select a different Project. The chat moves there automatically. #### Removing a chat **From the Project overview** 1. Open the Project. 2. Click the three-dots menu on the chat card. 3. Select `Remove from project`. **From the chat itself** 1. Open the chat. 2. Click the folder icon. 3. Deselect the current Project. Removing a chat from a Project doesn't delete it. The chat stays in your main chat history and can be reassigned at any time. > **Note:** > > A chat can only belong to one Project at a time. ### Deleting a Project 1. Open the Project. 2. Click the three-dots menu in the top-right corner. 3. Select `Delete` and confirm. > **Warning:** > > Deleting a Project is permanent and can't be undone. The chats inside aren't deleted. They return to your main chat history and can be reassigned to another Project. --- # Safety and approvals Source: /vibe/work/web/safety-and-approvals > Supervise Work with action approvals, per-function Connector permissions, todos, reasoning summaries, and Organization controls. Work is built for **delegation with supervision**. You see what the agent intends to do, follow its progress in real time, and approve sensitive steps before they happen. Nothing important happens in a connected tool **without you signing off** on it. This page covers every control surface Work gives you, starting with the approval flow you'll encounter most often, then the broader supervision features (todos, reasoning, tool transparency), and finally the admin/org perimeter. ### Approving sensitive actions Before Work performs an action that touches an external system, it **stops and asks for your approval**. This applies to anything that creates, modifies, sends, posts, or deletes. For example: - Sending an email through Gmail or Outlook. - Posting a message or canvas in Slack. - Creating, updating, or deleting an issue in Linear or GitHub. - Creating a calendar event or accepting an invitation. - Modifying a Notion page or SharePoint file. When Work asks, you get three options: | Option | Behavior | |---|---| | **Continue** | Approve this specific action only. Work will ask again next time. | | **Always allow** | Pre-authorize this function for the session so Work won't ask again. | | **Decline** | Cancel the action. Work either skips the step or asks how to proceed. | > **Warning:** > > **Read what Work is about to do** before clicking `Continue`. Verify recipients, subject, content, and destination (especially for emails, messages, and anything that modifies shared data). > > You can still try to interrupt a running action with the **stop** button (the black square), but there's no guarantee. If the action already reached the external system, consider it as done. ### Per-function Connector permissions Each [Connector](/vibe/work/web/connectors) exposes many individual **functions** (a Connector for Linear, for example, exposes dozens of them). You can control which ones Work can run without asking, and which always require approval. #### Accessing the functions tab 1. Open the `Connectors` page from the sidebar. 2. Select `My Connectors`. 3. Click the Connector card to open its details. 4. Open the `Functions` tab. You'll see every function grouped by type, with a description and an `Always allow` toggle on each. Click `Refresh tools` to reload the function list (useful after a Connector update). #### Interactive vs. Read-only tools Functions are split into two groups: - **Interactive tools**: tools that create, update, delete, send, or post data. These actions carry higher risk, so keeping them on manual approval is recommended until you trust the Connector in your workflow. - **Read-only tools**: tools that retrieve information (get, list, search). Lower risk and usually safe to pre-authorize. For example, the Linear Connector exposes: | Group | Examples | |---|---| | **Interactive** | `Save Issue`, `Save Comment`, `Delete Customer`, `Save Project`, `Create Attachment`, `Save Status Update`... | | **Read-only** | `Get Issue`, `List Comments`, `List Projects`, `Get Diff`, `List Users`, `Search Documentation`... | #### How the Always allow toggle helps Toggling `Always allow` on a function tells Work it can call that function without stopping for approval. Use this to reduce friction on actions you trust: - **Pre-authorize read-only functions you use often** (`List Issues`, `Get Issue`, `List Projects`...) so Work doesn't pause for every lookup. - **Keep interactive functions on manual approval** until you're confident, especially deletes (`Delete Attachment`, `Delete Comment`) and broad writes (`Save Issue` with no filter scope). - **Revisit periodically**: if a function turns out to be safer (or riskier) than expected, flip the toggle. > **Note:** > > Per-function permissions are **per-user**. Your `Always allow` choices don't affect your teammates. ### Clarifying questions before Work commits For non-trivial tasks, Work often asks **follow-up questions** before doing anything. This is how Work catches missing context early (e.g., the wrong audience, the wrong scope, the wrong source) instead of going off on a tangent. Typical clarifications: - *"Which Project should I look at: Q3 launch or Q4 planning?"* - *"Should the brief be one page or a full report?"* - *"Which Connector should I use to find the contract: Notion or Google Drive?"* Select one of the provided answers in the chat and Work continues. You can also redirect Work at any time by rewriting the prompt. > **Tip:** > > Treat clarifying questions as a feature, not friction. Two seconds of clarification beats a 30-second task that solves the wrong problem. ### Todos panel For longer or multi-step tasks, Work displays its **todos** in the **right-hand panel** as it works, a live checklist of steps it has completed or is about to do. There is no upfront plan to approve: Work starts immediately, and you watch the steps appear and complete in real time. You stay in control by: - **Following the todos** as they appear, so you always know what Work is doing and what's coming next. - **Stopping early** with the **stop** button (the black square) if Work goes the wrong direction. You can then redirect with a follow-up message. - **Asking Work to course-correct** in chat (skip a step, do something differently next). Work picks up the change on the following steps. > **Note:** > > Not every task gets a todos panel. Quick one-shot tasks (a summary, a translation, a single lookup) respond directly. ### See Work's reasoning summary in real time While Work executes, it shows a **reasoning summary** for each step. You see what Work is reading, comparing, deciding, and ruling out. This serves three purposes: 1. **Trust**: you understand *why* Work did what it did, not just *what* it did. 2. **Early correction**: if the reasoning veers off-course, you can interrupt before the output is wrong. 3. **Learning**: seeing how Work approaches a problem is often useful in itself, especially for tasks you'll want to repeat or save as a [Skill](/vibe/work/web/skills). > **Tip:** > > For pure reasoning tasks inside a chat (no tools, no actions), [Think mode](/vibe/chat-legacy/think-mode) in Chat is the dedicated surface. Work shows its reasoning as part of a broader execution, not as the main output. ### Tool-call transparency Every tool Work calls (such as a web search, a file read, a Connector function or an image generation) is shown in the chat with: - **Which tool** was called (for example, `Linear: Get Issue`, `Web Search`, `Gmail: List Messages`). - **What inputs** Work passed. - **What outputs** came back. - **Status**: pending, succeeded, or failed. You can expand any tool call to inspect the details. Use this to verify: - Work picked the right Connector (Notion vs Confluence, Gmail vs Outlook). - Work queried the right Project, repository, or workspace. - The data Work used to draft an output actually matches what you asked for. ### Organization and workspace controls Beyond what you control as a user, your organization sets the outer perimeter: - **Workspace admins** can disable specific [Connectors](/vibe/work/web/connectors) for the whole workspace, or force-enable specific [Skills](/vibe/work/web/skills) so they're always active. - **Organization admins** can turn entire features on or off per workspace (Skills, specific Connectors, MCP Connectors). If a tool you expect isn't available, ask your workspace admin: it may be disabled at the organization or workspace level. ### Control checklist before sharing output Before you use, send, or share an output Work produced, run through: - Did Work follow the todos it showed? - Are the tool calls and Connectors it used the ones I expected? - Are the facts, names, dates, numbers, and citations accurate against the source? - For anything that goes to a customer, teammate, or external party, did I read it end-to-end? > **Tip:** > > When in doubt, ask Work to revise. A second pass with sharper instructions is almost always cheaper than fixing a mistake downstream. --- # Schedule tasks Source: /vibe/work/web/scheduled-tasks > Run a prompt automatically at a future date or on a recurring schedule, and manage notifications, approvals, and your schedules. > **Note:** > > **Public Preview.** Scheduled tasks are available in Public Preview. The UI, naming, and options may evolve. Scheduled tasks let you **run a prompt automatically** at a future date or on a recurring schedule. Work picks up the prompt at the scheduled time, executes it like any other task, and notifies you when the result is ready. Use them for anything you repeat: a weekly competitive watch, a daily inbox triage, a Monday morning roll-up of unread emails and Slack messages, or a one-off reminder to draft a follow-up next Tuesday. > **Info:** > > Scheduled tasks run **in Work mode only** and use the [Workflows](/vibe/work/web/workflows) infrastructure under the hood. They take advantage of every Work capability: [Skills](/vibe/work/web/skills), inline [Connectors](/vibe/work/web/connectors), [Web search](/vibe/work/web/web-search-open-url), [Libraries](/vibe/work/web/libraries), and [Projects](/vibe/work/web/projects). Triggers are **time-based** for now; event-based triggers may follow. ### Common use cases Scheduled tasks shine when the **same question** comes back on a regular cadence: - **Weekly digest**: every Monday morning, summarize your unread emails and Slack messages from the past week. - **Release summary**: every Friday, generate a weekly release summary from Linear, Notion, and Slack. - **Meeting briefing**: daily at 9am, prepare a briefing for your first meeting of the day. - **Tech and competitive watch**: every Monday, summarize the past week's announcements from a list of competitors. - **One-off reminders**: a single prompt scheduled for next Tuesday to draft a follow-up email referencing today's notes. ### Creating a scheduled task You can create a scheduled task in two ways. #### From the Tasks page 1. In the sidebar, click `Scheduled`. 2. Click `New Task`. 3. Write the prompt you want Work to run. 4. Click `Schedule` and pick a frequency (see [below](#scheduling-options)). 5. Set the time of day. 6. Click `Schedule` to confirm, or `Cancel` to discard. A confirmation card summarizes the schedule in plain language (for example, *"Every Monday at 9:00"*) so you can double-check before activating it. #### From a chat You can also ask Work to schedule the current prompt directly in conversation. For example: - `Schedule this to run every Monday at 9am.` - `Run this every weekday morning.` - `Remind me with this prompt next Tuesday at 14:00.` Work proposes a schedule, you confirm, and the task is added to your Tasks page. The scheduled task uses **the same Work surface** as a manual prompt: Skills, Connectors, Web search, Libraries, and Projects are all available natively. You may also see **suggested schedules** based on your recent conversations and connected tools. ### Scheduling options Five frequencies are available: | Frequency | What you pick | |---|---| | `Once` | A single calendar date and time. | | `Daily` | A time of day. Runs every day at that time. | | `Weekly` | One or several days of the week, plus a time. | | `Monthly` | A day of the month, plus a time. | | `Yearly` | A day and a month (one date per year), plus a time. | ### Tools, Connectors, and approvals A scheduled task runs unattended, so think about **approvals upfront**. When the prompt triggers a sensitive Connector action (sending an email, posting a message, modifying a file), Work normally asks for confirmation. To let a scheduled task complete without you in front of the screen, pre-authorize the relevant actions with `Always allow` for that Connector. See [Safety and approvals](/vibe/work/web/safety-and-approvals#approving-sensitive-actions) and [Per-function Connector permissions](/vibe/work/web/safety-and-approvals#per-function-connector-permissions). > **Tip:** > > Use **read-only** prompts (summarize, brief, monitor) for unattended runs, and reserve **write actions** (send, post, modify) for prompts you'll review before pre-authorizing. ### Notifications and results When a scheduled task finishes, the result appears in the sidebar with an **unread dot**, just like any other conversation. Open it to: - Review the output. - Ask follow-up questions. - Jump to the **associated chat** if you want to refine the prompt for the next run. ### Managing your schedules From the `Scheduled` page, you can change a scheduled task at any time: - **Edit**: update the prompt, frequency, or next run date. - **Pause**: stop future runs without losing the schedule. Resume it later. - **Delete**: remove the schedule permanently. Past results stay in the conversation history. ### Limits The number of scheduled tasks you can create at the same time depends on your **plan**. If you hit the limit, pause or delete an existing task to free a slot, or upgrade your plan. See [pricing](https://mistral.ai/pricing) for the current numbers. --- # Reuse work with Skills Source: /vibe/work/web/skills > Package reusable instructions and resources as Skills, use built-in ones like deep research, and create your own from a task. Skills are **reusable instructions and resources** that give Work specialized capabilities for specific tasks. Use them when a task has a known method, checklist, template, output format, or domain-specific procedure: package an approach once and Work applies it whenever the task matches, with the same tone, format, and procedure every time. > **Info:** > > Skills follow the open [Agent Skills](https://agentskills.io/home) standard, originally developed by Anthropic and now adopted across multiple agentic clients. Each Skill is a folder containing a `SKILL.md` file (instructions + metadata) and any extra files Work should use alongside it (references, templates, examples, data). ### How Skills work Work loads Skills through **progressive disclosure** in three stages: 1. **Discovery**: at session start, Work loads only each Skill's name and description (~100 tokens each), just enough to know when it might be relevant. 2. **Activation**: when a task matches a Skill's description, Work reads the full `SKILL.md` instructions into context. 3. **Execution**: Work follows the instructions, optionally loading referenced files or running examples as needed. This means you can have many Skills enabled without overloading context: only the relevant ones expand into full instructions. > **Tip:** > > The Skill's **description** is what determines when it activates. Write descriptions that describe **when** to use the Skill, not just what it does (for example, *"Use when reviewing customer contracts for renewal risks"* rather than *"Helps with contracts"*). ### Built-in Skills Vibe Work ships with a set of **built-in Skills** covering common productivity tasks. They appear in your Skills list alongside personal and workspace ones, activate automatically when a task matches, and can be invoked explicitly with `/{skill-name}`. Disable any you don't need from `Context` > `Skills`. | Skill | Triggers on | |---|---| | `challenge-my-thinking` | Pressure-test a plan, devil's advocate, "what am I missing", risk review. | | `data-analysis` | Inspect, clean, transform, or aggregate data (`.csv`, `.json`, tables, metrics, anomalies). | | `deep-research` | Thorough research, source-backed synthesis, market or technical landscape analysis. | | `doc-coauthoring` | Co-author proposals, technical specs, decision docs, RFCs. | | `document-review` | Review documents for completeness, compliance, consistency, or quality. | | `internal-comms` | Status reports, leadership updates, 3P updates, FAQs, incident reports. | | `meeting-prep` | Prepare for upcoming meetings, brief on calendar items. | | `research-synthesis` | Synthesize multiple sources, notes, or files into a structured brief. | | `skill-creator` | Create, update, or delete Skills (loaded before any Skill edit). | | `stakeholder-translator` | Reframe content for a different audience (exec, engineering, leadership). | | `structured-extraction` | Extract structured data (tables, JSON) from emails, PDFs, or free-text. | | `vibe-work-onboarding` | Walk through Vibe Work capabilities for first-time users. | #### Example: `/deep-research` To see a built-in Skill in action, trigger `deep-research` explicitly: > `/deep-research` What are the main approaches to long-context LLMs in 2026? Work plans the search, runs multiple web queries, synthesizes the sources, and returns a structured brief with citations, opened in [Canvas](/vibe/work/web/files-and-canvas). ### Personal and workspace Skills Open the sidebar and go to `Context` > `Skills` to see your Skills, organized in two more sections: - **Personal**: Skills you've created for your own use. Only you see them. - **Workspace**: Skills shared across your workspace. Anyone in the workspace can use them. Toggle each Skill on or off individually to control which ones load into Work's context. If you create or edit a Skill in Studio, use the `Share` button on the Skill details page to keep it private or share it with the entire workspace. To make a Studio Skill available in Vibe Work, click `Publish to Vibe` on the Skill details page. > **Note:** > > Workspace admins can **force-enable** specific Skills for the whole workspace (for example, a finance team's domain Skills). Force-enabled Skills are always active and can't be disabled by individual users. ### Using Skills in a task Once a Skill is enabled, Work uses it automatically when the task matches its description. You can also invoke a Skill explicitly: - **Slash command**: type `/` in the chat window and pick a Skill from the list, or type `/{skill-name}` directly. - **Natural reference**: mention the Skill by name in your prompt (for example, *"Use the contract-review Skill on this PDF"*). When a Skill is active in a task, Work surfaces it in the chat so you know which one is being applied. ### Creating a Skill There are two ways to create a Skill: build it manually in the editor, or have Work create one for you from a chat. #### Create from the editor 1. Open `Context` > `Skills` in the sidebar. 2. Click `New Skill`. 3. Fill in the form: - **Title**: a short, descriptive name (for example, `Brand voice copywriting`). - **Description**: when Work should use this Skill. This text is what Work reads at discovery to decide whether to activate the Skill, so make it specific. - **SKILL.md**: the full instructions Work follows when the Skill activates. Write them as you would brief a colleague: tone, format, steps, examples. 4. (Optional) Add **files or folders** alongside the Skill (reference documents, templates, brand guidelines, sample outputs, datasets). Work loads them as needed when the Skill activates. 5. Click `Create Skill`. #### Create a Skill from a task (recommended) The fastest way to build a Skill is to let Work draft it for you from a real task: 1. Run a task where you refine an approach you'd like to reuse (a writing style, a review checklist, a research method). 2. Ask Work to *"turn this into a Skill"* or *"save this as a Skill"*. 3. Work generates a `SKILL.md` draft, lists the contents, and proposes it for review. 4. Edit if needed, then save. > **Tip:** > > Skills built from real usage capture the actual patterns that worked, including details you wouldn't think to write down from scratch. Iterate in a task, save when satisfied, then refine over time. ### Editing and managing Skills From the `Context` > `Skills` page, you can: - **Edit** a Skill's title, description, `SKILL.md`, or attached files. - **Disable** a Skill without deleting it. - **Delete** a personal Skill (workspace Skills require the appropriate permission). - **Share** a Skill with the workspace, or keep it private, from the Skill details page. When you edit a Skill, your changes take effect in new chats from that point on. Active chats keep the previous version until you start a new one. ### Best practices - **Build Skills from real tasks.** See [Create a Skill from a task](/vibe/work/web/skills#create-a-skill-from-a-task-recommended) above. It's the highest-leverage way to start. - **Write descriptions as triggers.** The description tells Work **when** to activate the Skill. *"Use when..."* phrasing beats *"This Skill helps with..."* every time. - **Keep Skills focused.** One Skill per job. If a Skill grows into many unrelated procedures, split it. - **Avoid near-duplicates.** Two Skills with overlapping descriptions confuse Work and inflate context. Edit the existing Skill rather than saving a slight variant. - **Bundle supporting files.** Templates, brand guides, sample outputs, or reference data live next to the `SKILL.md` and load when the Skill activates. Supporting files are subject to a file-count limit; for larger methods, use [progressive disclosure](https://agentskills.io/skill-creation/best-practices#structure-large-skills-with-progressive-disclosure). - **Iterate.** Run the Skill on real tasks, note gaps, edit, and improve. --- # Slides Source: /vibe/work/web/slides > Create PowerPoint decks in Vibe Work from a prompt, your documents, or a template, then refine them and deliver them from Canvas. > **Note:** > > Slides are available on paid plans only, in Vibe Work on the web and desktop apps, and in private cloud deployments. On mobile, you can download a presentation but not edit it. Vibe Work creates and edits PowerPoint presentations (`.pptx`). You describe the deck in the chat, Work builds it, and the presentation opens in Canvas next to the chat. From there, you refine it with Work or by hand, then present, download, or share it. The following sections walk through the life of a presentation, from the first draft to the file you send. For the editor tools, see [Edit slides](/vibe/work/web/slides/edit-slides). For presenting, downloading, and sharing, see [Present, export, and share](/vibe/work/web/slides/present-export-share). ### How a presentation comes together Most presentations follow the same three steps: 1. **Start the deck**: ask Work to generate it from a prompt, your files, or a template, or upload an existing `.pptx`. 2. **Refine it**: ask Work for changes in the chat, leave comments on specific elements, and polish the details yourself in the slide editor. 3. **Deliver it**: present it full screen, download it as a PowerPoint or PDF file, open it in Google Slides, or share a link. You can go back and forth between steps. For example, generate a first draft, fix a title by hand, ask Work to restructure two slides, then download the result. ### Step 1: Start the deck #### Generate a deck from a prompt Ask Work for a presentation in plain language. Give the topic, the audience, the goal, and the number of slides you want. The slide count includes the title slide unless you say otherwise. Example prompts: - *"Create a 10-slide deck presenting our Q3 results to the leadership team."* - *"Build a 5-slide project kickoff deck with an agenda, a timeline, and a team slide."* - *"Make a 6-slide pitch for a new onboarding program, with a closing slide that lists next steps."* Work plans the deck, builds it, checks a preview of each slide, and tells you how many slides it created. If a missing detail would change the deck, such as the audience or the length, Work asks you before it starts. The agent uses native PowerPoint elements, so you can edit the result in the editor or in PowerPoint. These elements include text, shapes, tables, charts, and diagrams such as flows, timelines, and architectures. #### Generate a deck from your documents and data To build the deck from your own content, upload files to the chat, such as PDF, Word, or Excel files. You can also point Work to sources from your [Connectors](/vibe/work/web/connectors) or [Libraries](/vibe/work/web/libraries). - *"Turn the attached report into a 6-slide summary for the sales team."* - *"Summarize the last quarter's product launches from our Google Drive into an 8-slide review."* Work takes figures and facts from your sources. If your data can't support a figure you asked for, Work says so instead of estimating it. To add images, upload them to the chat and ask Work to place them, for example *"Use the attached photos on the team slide."* Work uses only the PNG and JPEG images you upload. It doesn't search the web for images. If you explicitly ask for generated illustrations, Work can create them. #### Generate a deck from a template To keep your brand fonts, colors, and logo, base the deck on a PowerPoint template (`.pptx`). Use one of these sources: - **Attach a template**: add the `.pptx` file to your message and ask Work to use it. For example, *"Use the attached template to create a 6-slide customer update."* - **Use a template from a Library**: upload the template to one of your [Libraries](/vibe/work/web/libraries), then name it in your prompt. For example, *"Use the Q4 brand template from my Sales library to create a 6-slide customer update."* A template is a regular Library file, so anyone with access to the Library can use it. Work builds the new slides from the layouts and placeholders of your template, so they inherit its fonts, colors, and positions. It removes the template's sample slides unless you ask to keep them. You can also give Work a visual reference that isn't a template, such as a website, a screenshot, or a PDF. Work picks up its colors, fonts, and overall style, and tells you what it had to approximate, such as a font it doesn't have. For example: *"Create a 5-slide deck about our product in the style of `https://mistral.ai`."* #### Import an existing presentation To work on a deck you already have, upload the `.pptx` file to the chat and describe the changes you want: - *"Update the figures on slides 4 and 5 with the attached Q4 numbers."* - *"Translate this deck into French and keep the layout."* - *"Replace the customer name with Contoso throughout the deck."* Work changes only what you ask for. The other slides, layouts, fonts, images, and speaker notes stay the same. If a request is ambiguous, such as which of two titles to change, Work asks you to choose. ### Step 2: Refine the deck The presentation opens in Canvas, with the slide editor and the `Pages` panel that lists your slides. Use the approach that fits the change. | Change | Best approach | |--------|---------------| | Restructure the deck, rewrite content, add slides on a topic | Ask in the chat | | Change specific elements on one or more slides | Comment on the elements | | Fix a word, move a shape, change a color, reorder slides | Edit by hand | #### Ask for changes in the chat Describe the change in the chat. For example: - *"Make slide 3 more visual."* - *"Add a slide comparing our three pricing options after slide 5."* - *"Shorten the text on every slide to three bullet points at most."* Work edits only what you target and keeps your existing text. If it can't apply a change exactly, it tells you what it did instead. #### Comment on slide elements Comments let you point at the exact elements to change, then let Work handle them. To comment: 1. In the editor toolbar, click `Comment` (the speech bubble icon). 2. Click an element, or drag over several elements, to select what you want to comment on. 3. Type your instruction, for example *"Make this chart a bar chart"*. 4. Send the comment, or add it to a batch. You have two ways to send comments: - **Send one comment now**: click `Send comment` (the arrow button), or press `Cmd+Enter` on macOS or `Ctrl+Enter` on Windows and Linux. Work handles it right away. - **Batch several comments**: press `Enter` or click `Add comment to batch` to keep the comment and move on to the next element. Your comments collect above the message box. Send your message to have Work handle all of them at once. To edit or remove a comment before you send it, click it on the slide. #### Edit by hand For quick fixes, edit the slides directly. You can edit text and fonts, add text boxes, images, shapes, lines, and tables, change backgrounds, and add, duplicate, reorder, or delete slides. Your changes save automatically. For every tool, see [Edit slides](/vibe/work/web/slides/edit-slides). ### Step 3: Deliver the deck When the deck is ready, use the Canvas toolbar to: - **Present** the deck full screen. - **Download** it as a PowerPoint file (`.pptx`) that opens in PowerPoint, Keynote, or Google Slides, or as a PDF. - **Open it in Google Slides** to continue there. - **Share** a view-only link with your organization. For the steps, see [Present, export, and share](/vibe/work/web/slides/present-export-share). Treat generated decks as drafts. Before you present or share a deck, check figures, names, and dates against your sources. ### Tips for better decks - **Give the essentials up front**: audience, goal, number of slides, and tone. Work asks fewer questions and the first draft is closer to what you need. - **Bring your sources**: upload the data and documents the deck must use. Figures then come from your content, not from general knowledge. - **Start from your template**: a `.pptx` template keeps your brand consistent without extra instructions. Store it in a Library to reuse it without uploading it again. - **Iterate in small steps**: ask for one change at a time, or batch comments on specific elements, rather than rewriting the whole request. --- # Edit slides Source: /vibe/work/web/slides/edit-slides > Polish a presentation by hand in the Canvas slide editor: manage slides, insert and format elements, and use keyboard shortcuts. The slide editor lets you polish a presentation by hand in Canvas, without going back to the chat. It covers managing slides, inserting elements, formatting, and keyboard shortcuts. To change a deck by asking Work, or to comment on elements so that Work handles them, see [Slides](/vibe/work/web/slides#step-2-refine-the-deck). > **Note:** > > Slides are available on paid plans only. Editing is available on the web and desktop apps. Your changes save automatically. ### Find your way around the editor When a presentation opens in Canvas, the editor shows: - **The `Pages` panel**: thumbnails of every slide, with a counter such as `3 of 12`. Click a thumbnail to open that slide. - **The slide**: the slide you're editing, where you select and change elements. - **The editor toolbar**: tools to insert text, images, shapes, and tables, select the background, and comment. It also holds undo and redo, the side panel toggle, and `Present`. - **The side panel**: formatting controls for the current selection. Use `Show side panel` and `Hide side panel` to toggle it. ### Manage slides Use the `Pages` panel to organize the deck: - **Add a slide**: click `Add slide` at the end of the panel to add a blank slide. - **Insert a slide**: hold the pointer between two thumbnails and click the insert button that appears to add a blank slide at that position. - **Duplicate a slide**: click the actions button (`...`) on a thumbnail, then select `Duplicate`. - **Delete a slide**: click the actions button (`...`) on a thumbnail, then select `Delete`. To restore it, press `Cmd+Z` on macOS or `Ctrl+Z` on Windows and Linux. - **Reorder slides**: drag a thumbnail to a new position, or select it and press `Alt` with the left or right arrow key. - **Copy and paste slides**: copy a slide and paste it elsewhere in the deck. When you copy a slide, its charts, diagrams, media, animations, speaker notes, and comments aren't copied. A presentation can have up to 100 slides. ### Insert elements To insert an element, select a tool in the editor toolbar, then click the slide to place the element, or drag to set its size. | Tool | What it adds | |------|--------------| | `Text` | A text box. | | `Image` | An image from your device: PNG, JPEG, GIF, or WebP, up to 20 MB. | | `Shapes` | A `Triangle`, `Circle`, `Square`, or `Star`. | | `Shapes` > `Connector` | A `Line`, an `Arrow`, or a `Double arrow`. Click or drag to draw it. Its ends can attach to other shapes. | | `Table` | A table. Choose the number of `Rows` and `Columns` before you place it. | Work can also add charts, diagrams, and generated content when you ask in the chat. #### Change the slide background To change the background of a slide: 1. In the editor toolbar, click `Select background`. 2. In the side panel, set a `Background color`, or add a `Background image`. 3. To adjust the position of a background image, use `Reframe background image`. Drag the image and use `Zoom`, then click `Apply`. To leave background selection, click an element on the slide. ### Edit elements #### Select, move, and resize - **Select**: click an element. To select several, drag over them. To select every element on the slide, press `Cmd+A` on macOS or `Ctrl+A` on Windows and Linux. - **Move**: drag the selection. Alignment guides appear to line it up with other elements. - **Resize**: drag a handle on the edge or corner of the selection. - **Delete**: press `Delete` or `Backspace`, or use `Delete` in the side panel. - **Copy and paste**: copy elements and paste them on the same slide or another one. - **Deselect**: press `Escape`. #### Edit and format text Click into a text box to type. To format the text, select it and use the formatting toolbar or the side panel: - `Font` and `Font size` - `Bold`, `Italic`, and `Underline` - `Text color` - Alignment: `Align left`, `Center`, `Align right`, or `Justify` #### Style shapes, images, and tables Select an element to see its options in the side panel: - **Shapes and text boxes**: `Fill color` and `Border color`. Pick a preset, or select `Custom` to set a hex color and opacity. - **Images**: `Replace image` or `Reframe`. - **Tables**: insert or delete rows and columns, change the cell fill, and show or hide borders. - **Order**: `Bring to front` or `Send to back` to change which element sits on top. ### Undo, redo, and zoom - **Undo**: click `Undo`, or press `Cmd+Z` on macOS or `Ctrl+Z` on Windows and Linux. - **Redo**: click `Redo`, or press `Cmd+Shift+Z` on macOS or `Ctrl+Shift+Z` on Windows and Linux. - **Zoom**: click `Zoom in` or `Zoom out`. Undo and redo work on your recent edits. To go further back, use Canvas versions: each time Work changes the presentation, Canvas keeps the earlier version. Open an earlier version from the chat, then click `Restore` to make it the current one. ### Keyboard shortcuts The following shortcuts work in the slide editor. On Windows and Linux, use `Ctrl` instead of `Cmd`. | Action | Shortcut | |--------|----------| | Undo | `Cmd+Z` | | Redo | `Cmd+Shift+Z` | | Select all elements on the slide | `Cmd+A` | | Delete the selection | `Delete` or `Backspace` | | Deselect, or leave a tool | `Escape` | | Move the selected slide in the `Pages` panel | `Alt+Left arrow` or `Alt+Right arrow` | | Send a comment now | `Cmd+Enter` | | Add a comment to the batch | `Enter` | ### Next steps - To present, download, or share the deck, see [Present, export, and share](/vibe/work/web/slides/present-export-share). - To change the deck by chatting or with comments, see [Slides](/vibe/work/web/slides#step-2-refine-the-deck). --- # Present, export, and share Source: /vibe/work/web/slides/present-export-share > Present a deck full screen, download it as PowerPoint or PDF, open it in Google Slides, or share a view-only link. > **Note:** > > Slides are available on paid plans only. When your presentation is ready, you can present it full screen from Canvas, download it as a PowerPoint or PDF file, open it in Google Slides, or share a view-only link. The size limits for presentations are listed at the end. To create or edit a presentation, see [Slides](/vibe/work/web/slides) and [Edit slides](/vibe/work/web/slides/edit-slides). ### Present the deck To present, click `Present` (the play icon) in the editor toolbar. The deck opens full screen in presentation mode, starting from the first slide. Use the following keys to move through the deck: | Action | Keys | |--------|------| | Next slide | `Right arrow`, `Down arrow`, `Space`, `Page Down`, or click | | Previous slide | `Left arrow`, `Up arrow`, or `Page Up` | | First slide | `Home` | | Last slide | `End` | | Leave presentation mode | `Escape` | To work on the deck on a larger screen without presenting it, use `Fullscreen` in the Canvas toolbar instead. ### Download as PowerPoint or PDF To download the presentation: 1. Click the download icon (`Export as`) in the Canvas toolbar. 2. Select a format: - `PowerPoint`: a `.pptx` file that opens in PowerPoint, Keynote, Google Slides, or any compatible application. It keeps native text, shapes, tables, and charts that you can edit. - `PDF`: a fixed copy of the slides to read or print. ### Open in Google Slides To continue working in Google Slides: 1. Click `Open in Google Slides` in the Canvas toolbar. 2. If Google Drive isn't connected, click `Connect` and sign in to your Google account. 3. When the `Google Slides file created` message appears, click `Open`. Work saves a copy of the presentation to your Google Drive, which you then open in Google Slides. Changes you make in Google Slides don't sync back to the Canvas version. ### Share a link To share the presentation as a view-only link: 1. Click `Share` in the Canvas toolbar. 2. Turn on `Link accessible to organization members`. 3. Click `Copy link`. Any organization member with the link can view the presentation. Your chat messages aren't shared. If your organization allows public sharing, the option reads `Link accessible to anyone` instead, and you can also share the link by email or on social networks. Admins control this with the `Allow public sharing of chats content` setting in [Admin Panel › Vibe › Preferences](https://admin.mistral.ai/vibe/preferences). If you edit the deck after sharing it, the link still shows the earlier version. To share your latest changes, open the `Share` dialog and click `Update link`. To stop sharing, open the `Share` dialog and turn off the link toggle. ### Use presentations on mobile On mobile, you can't open the slide editor. Download the PowerPoint file to view or share it. ### Limits | Limit | Value | |-------|-------| | Slides per presentation | Up to 100 | | Image inserted in the editor | Up to 20 MB, in PNG, JPEG, GIF, or WebP format | | Presentation you can view and edit | Up to 50 MB. Larger presentations are download-only. | When a presentation is over a limit, the Canvas shows one of these messages: - `This presentation is too large to edit. You can still view and download it.` - `Presentation too large to preview. Download it to open it.` - `This image would make the presentation too large to edit. Remove some images or use a smaller one.` --- # Spreadsheets Source: /vibe/work/web/spreadsheets > Create spreadsheets with multiple sheets and formulas in Vibe Work, edit them in Canvas, and export, open in Google Sheets, or share. > **Note:** > > Spreadsheets are available on paid plans only, until further notice. Vibe Work can create spreadsheets with multiple sheets, formulas, and formatted data. You create and edit the spreadsheet directly in Work — no Google or Microsoft account needed. The result opens directly in the **Canvas panel** where you can view, edit, export, and share it without leaving the chat. ### Create a spreadsheet Ask Work to build a spreadsheet in plain language. Describe the structure, purpose, or data you need, and Work generates the sheets and formulas automatically. Example prompts: - *"Create a 3-year financial projection model with income statement, cash flow, and balance sheet."* - *"Build a project tracker with task, owner, status, due date, and priority columns."* - *"Make a budget spreadsheet with monthly income and expense categories."* The spreadsheet appears inline in the chat as the Canvas panel. A spreadsheet can contain multiple sheets, each as an individual tab within the file. Switch between them using the tabs at the bottom of the panel. Click `Expand` at the bottom of the panel to open it in the Canvas view. ### Edit the spreadsheet You can work with the spreadsheet directly in Canvas: - **Click any cell** to select and edit its content or formula. - **Ask Work to modify it** in the chat. For example, *"Add a dashboard sheet that summarizes the key metrics"* or *"Update the tax rate to 30%"*. - **Click `Expand`** (bottom of the Canvas panel) to open the spreadsheet in the Canvas view. - **Click `Edit`** (top right of the Canvas view) to switch between view and edit mode. ### Export as Excel To download the spreadsheet as an Excel file (`.xlsx`): Click the download icon in the top-right corner of the Canvas panel. The file downloads to your device and can be opened in Excel, Numbers, LibreOffice, or any compatible application. ### Open in Google Sheets To continue working in Google Sheets: Click `Open in Google Sheets` in the top-right corner of the Canvas panel. The spreadsheet opens in a new tab in Google Sheets. From there you can edit it, share it with collaborators, and use the full Google Sheets feature set. Changes made in Google Sheets are independent. They don't sync back to the Canvas version. ### Share the spreadsheet To share the spreadsheet as a public link: 1. Click `Share` in the top-right corner of the Canvas panel. 2. Toggle `Link accessible to anyone` on. 3. Click `Copy link` to copy the public URL to your clipboard, or use one of the `Share to` buttons to send it directly via email, X, LinkedIn, Reddit, or WhatsApp. Anyone with the link can view the spreadsheet. Your **chat messages are not shared**. Only the spreadsheet content is accessible through the link. To stop sharing, return to the Share dialog and toggle `Link accessible to anyone` off. --- # Switch Organization or Workspace Source: /vibe/work/web/switch-organization-workspace > Switch between Organizations and Workspaces from the Vibe sidebar, and understand how resources and settings are scoped per Workspace. Your Mistral account belongs to one or more **Organizations**, and each Organization contains one or more **Workspaces**. A Workspace is an **isolation boundary**: use it to keep resources separate between departments, projects, or environments. It is not a team-management container. > **Info:** > > Workspaces are shared across Vibe, Studio, and the Admin Panel: the same Workspace entity is visible in all three. In Vibe Work, switching Workspace changes which scope you're working in. See [Organizations and Workspaces](/admin/workspaces) for the admin view. ### Switch from the sidebar Click your **Organization name** in the bottom-left corner of the Vibe app, next to your initials. The popover shows: - Your current **Workspace** (named **Default Workspace** if the Organization has only one). - Other Workspaces in the same Organization. - Other Organizations you belong to. Pick a Workspace to switch directly. Pick an Organization to land on its default Workspace. > **Note:** > > If your account only has access to one Workspace, the switcher is hidden. Nothing to do. > **Warning:** > > Switching Workspace switches **all open tabs** (single session per user). Open separate browser profiles if you need to work in two Workspaces at once. ### Everything is scoped per Workspace When you switch Workspace, your view in Vibe Work resets. The following resources stay where you created them and **are not shared across Workspaces**: - Chat history - [Projects](/vibe/work/web/projects) - [Skills](/vibe/work/web/skills) (personal and Workspace-published) - [Scheduled tasks](/vibe/work/web/scheduled-tasks) - [Custom instructions](/vibe/work/web/custom-instructions) - Connector authentications If you need any other resource in another Workspace, you have to recreate it there. > **Info:** > > [Libraries](/vibe/work/web/libraries) are also scoped per Workspace by default, but your Organization admin can allow Org-level sharing so a Library is visible across all Workspaces in the Organization. ### Workspace-level admin settings Some Vibe Work behavior is configured per Workspace by Organization Admins: - **Available tools**: which Vibe Work tools and Connectors are enabled. - **User access and roles**: who can join the Workspace and at what role. - **Usage metrics**: per-Workspace usage tracking. If a feature is missing or behaves differently between Workspaces, this is usually why. Reach out to your Organization admin to adjust settings, or see [Organizations and Workspaces](/admin/workspaces) for the configuration details. > **Tip:** > > More granular sharing of individual resources with specific users or groups, without requiring a Workspace switch, is on the roadmap. --- # Use Voice mode Source: /vibe/work/web/voice-mode > Dictate prompts to Work with your voice on web and mobile, talk in conversation mode, and check supported languages and privacy. Voice mode lets you start a task in Work using your voice instead of typing. Your speech is transcribed into text that you can review, edit, and send as a prompt. It's available on the web app and mobile apps ([iOS](https://apps.apple.com/us/app/le-chat-by-mistral-ai/id6740410176) and [Android](https://play.google.com/store/apps/details?id=ai.mistral.chat)) for all plans. > **Info:** > > Voice mode is powered by , a speech-to-text model we developed for fast, accurate transcription across languages. ### How to use 1. Click the microphone icon at the bottom right of the chat window. 2. Allow microphone access when prompted by your browser or device. 3. Speak naturally. What happens next depends on the `Autosend` setting: - **Autosend ON**: your speech is transcribed and sent to Work automatically. No manual step needed. - **Autosend OFF**: the transcribed text appears in the message box. You can review it, correct any errors, attach context (Connectors, Libraries, Skills, files), and click `Send` when you're ready. To discard a recording, click the cancel icon before sending. > **Tip:** > > If you previously denied microphone access, enable it in your browser's site settings or your device's app settings. ### Talk with Work in conversation mode ### Supported languages - English - French - Spanish - German - Russian - Chinese - Japanese - Italian - Portuguese - Dutch - Arabic - Hindi - Korean ### Privacy How we handle voice data depends on your plan: - **Free, Pro, Student, and Team plans**: voice messages fall under our data training policies and may be used to improve our models. You can [opt out](https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-for-training) at any time. - **Enterprise plans**: voice messages aren't used for model training by default. Your organization would need to explicitly opt in. ### Troubleshooting If your voice message wasn't transcribed correctly: - **Speak clearly** and reduce background noise. - **Check microphone permissions** in your browser's site settings or your device's app settings. - **Review and edit** the transcription in the message box before sending — especially for exact names, links, file paths, or numbers. --- # Search the web Source: /vibe/work/web/web-search-open-url > Enable web search and Open URL so Work answers with up-to-date, cited sources or reads pages you link to. Work can browse the internet in real time and read specific web pages as part of a task. **Web search** answers questions with up-to-date, sourced information. **Open URL** lets Work read and analyze a page you already have the link to. > **Info:** > > **Knowledge cutoff**: every language model is trained on data collected up to a fixed date. After that date, the model has no built-in knowledge of new events, releases, or facts. Web search and Open URL let Work go past that cutoff and answer with **verifiable, up-to-date sources**. > **Note:** > > For multi-source, in-depth research with structured cited reports and PDF export, use [Deep Research](/vibe/chat-legacy/deep-research), now available as a Skill in Work. ### Web search Web search lets Work fetch current information from across the web and use it to answer your prompt. #### Activation 1. Click the `+` icon or type `/` in the chat window. 2. Select `Tools` then enable `Web search`. When you ask a question that needs current information, Work **searches the web** and weaves the findings into its response. Ask your question naturally. #### Reading the results When Work uses web search to answer your question, you'll notice: - A **globe icon** next to the response, confirming that web data was used. - **Inline links** pointing back to the original sources. - A `Sources` button at the bottom of the response that opens a panel listing every reference in one place. Every **web-sourced response comes with its references** so you can check the underlying material yourself. #### News search For news queries, Work draws from professional news partners [Agence France-Presse](https://www.afp.com/en) (AFP) and [Associated Press](https://apnews.com/) (AP), so results come from **verified, editorially vetted sources** you can cite with confidence. When news results are included, you'll see a **news icon** alongside the globe icon. Sources link directly to the original agency reporting, giving you reliable material for briefings or internal updates. > **Tip:** > > For quick competitive or market intelligence, try prompts like *"Latest regulatory updates in [your industry]"* or *"Recent funding rounds in [sector]."* ### Open URL Open URL lets you **bring web content directly into a Work chat**. Instead of copying and pasting text from a webpage, paste the URL and let Work fetch, read, and use the page content as context. #### How to use 1. Ensure **Web Search** is enabled: + Click the `+` icon or type `/` in the chat window. + Select `Tools`. + Enable `Web Search`. Without this, Work cannot browse the web. 2. Paste a URL into the message box, along with your question or instruction. 3. Send the message. Work fetches the page and uses its content to answer. You'll see a link icon and an `Opened Page` mention in the response, confirming that Work read the page content. > **Tip:** > > Open URL also works with links to online files (PDFs, documents). Work fetches the file and answers your question with context. #### Working with multiple URLs You can paste **several URLs in a single chat**. Work keeps the content from each page in context, so you can ask follow-up questions that reference or compare them. For example, paste two competitor product pages and ask: *"Compare the feature sets described on these two pages."* Work uses both pages as context to generate a side-by-side comparison. #### Common use cases - **Competitor analysis**: paste a competitor's product page and ask Work to extract features, pricing, or positioning. - **Documentation review**: share a docs page and ask for a summary, or check it against your own specifications. - **Article summarization**: drop in a long article and get the key takeaways. - **Meeting prep**: paste an agenda or briefing document hosted online and ask Work to highlight the most important items. ### Choosing the right tool Pick the option that fits your situation: | You want to... | Use | |----------------|-----| | Get a quick, up-to-date answer with sources | **Web search** | | Analyze a specific page you already have the link to | **Open URL** | | Get a structured, cited report pulling from many sources | **[Deep Research](/vibe/chat-legacy/deep-research)** Skill in Work | | Search trusted internal documents | **[Libraries](/vibe/work/web/libraries)** | | Pull live data from a connected tool (Gmail, Drive, Notion...) | **[Connectors](/vibe/work/web/connectors)** | ### Limitations - Open URL fetches only the single page at the URL you provide. It doesn't crawl the entire site or follow links. - Pages behind a login or paywall can't be accessed. Download the content and [upload it as a file](/vibe/work/web/files-and-canvas) instead. - Some highly interactive websites may not load fully, which can result in incomplete content. - Web search can return outdated or incomplete content depending on what the source page exposes. --- # Run Workflows Source: /vibe/work/web/workflows > Attach Workflows that developers published from Studio to a Work chat, run them with a prompt, and get the result back in the chat. If your team has built an internal automation (a data pipeline, a report generator, a ticketing flow), you can call it from Work by selecting it from the `+` menu. Pick one, prompt naturally, get the result back in the chat. No CLI, no API call. > **Info:** > > Workflows aren't built inside Work. They're built in Mistral's Studio environment by developers, then published as Chat-compatible assistants that surface in Work. If you're a developer building or publishing Workflows, see [Conversational Workflows](/studio/workflows/interacting-with-workflows/conversational-workflows) in the Studio API docs — or skip the setup entirely and [build a workflow from a prompt in Vibe Code Web](/studio/workflows/building-workflows/build-in-vibe). ### How Workflows work in Work - **Developers** in your organization build Workflows in Studio and publish them as chat-compatible assistants. - **You** see those Workflows in Work's tool menu, ready to attach to any chat. - When attached, Work calls the Workflow as part of its reasoning, like any other tool, with the Workflow's name surfaced in the chat so you always know which one ran. The Workflow handles its own inputs, its own logic, and its own output format. Work routes your prompt to it and renders the result back in the chat. ### Using a Workflow in a chat 1. Click the `+` icon in the chat window. 2. Select `Workflows` from the menu. 3. Pick the Workflow you want to run from the list. 4. The Workflow name appears as a **tag in the chat input**, confirming it's attached. 5. Send your prompt. Work calls the Workflow immediately, alongside its thinking chunk. Once the Workflow runs, the tag also appears **above your message in the chat history**, so you can scroll back and see which Workflow was used at each step. ### What you see during a run A typical Workflow call surfaces: - **Thinking chunk**: Work reasons about what arguments to pass to the Workflow based on your prompt. - **Workflow started: `{workflow-name}`**: confirmation that the Workflow has been invoked. - **Workflow output** (or failure): the result rendered in the chat. Some Workflows render inline; others may open in [Canvas](/vibe/work/web/files-and-canvas). - **Workflow failed: `{workflow-name}`**: if the Workflow can't run (missing access, invalid input, tier restriction), the error is reported back. Example, a Workflow that fails because of a tier restriction: ```txt Workflow started: vibe-nuage Your account tier (free) does not have access to this feature Workflow failed: vibe-nuage ``` Work reads the failure and surfaces it back to you in plain language: > The workflow failed: your free account tier does not have access to this feature. ### Skills vs. Workflows Both extend Work's capabilities, but they're different shapes for different jobs: | | [Skills](/vibe/work/web/skills) | Workflows | |---|---|---| | **What it is** | Instructions + resources (a `SKILL.md` and optional files) | A coded process built in Studio | | **Who creates it** | Any user, often from a chat | Developers in Studio | | **What it does** | Tells Work *how* to approach a task | Runs deterministic logic and returns a structured output | | **Best for** | Style, procedure, checklist, repeatable method | Data pipelines, automations, integrations with internal systems | | **Triggered by** | Auto-match on description, slash command, or natural reference | Explicit selection via `+` > `Workflows` | Use a Skill when you want Work to *behave a certain way*. Use a Workflow when you want Work to *call something that already exists*. ### Limitations and availability - Workflows must be **published to your workspace** by a developer in your organization. If you don't see any Workflows in the menu, ask your team's Studio developer or your workspace admin. - Some Workflows may be **gated by account tier or organization plan**. Failures of this type appear in the chat with a clear reason. - Workflows are invoked **explicitly** via the `+` menu. Work doesn't auto-trigger them based on the prompt (unlike Skills). ### For developers If you're building Workflows that should appear in Work: - See [Conversational Workflows](/studio/workflows/interacting-with-workflows/conversational-workflows) for the API and concepts. - See [Publish in Vibe](/studio/workflows/interacting-with-workflows/conversational-workflows/publish-in-vibe) for the requirements (workflow must return a `ChatAssistantWorkflowOutput`). - See [Forms and confirmations](/studio/workflows/interacting-with-workflows/conversational-workflows/forms-and-confirmations), [Progress tracking](/studio/workflows/interacting-with-workflows/conversational-workflows/progress-tracking), and [Canvas](/studio/workflows/interacting-with-workflows/conversational-workflows/canvas) for richer UX in the chat.