Skip to main content

How do I log in to Mistral Code in VS Code?

Updated this week

After installing the Mistral Code extension in Visual Studio Code, you'll need to log in with your Mistral AI account to activate its features and start receiving AI-powered assistance.

This process involves authenticating with Mistral AI and automatically retrieving a dedicated API key that will enable the extension to communicate with Mistral AI servers.

Steps to log in

1. Open Mistral Code

Locate the Mistral Code extension in the Activity Bar (typically located on the left side of your editor) and click the Mistral Code icon.

2. Initiate login process

In the Mistral Code panel, click the Login to Mistral Code Enterprise button as shown in the screenshot below.

image

Click on the Login to Mistral Code Enterprise button

3. Log in to Mistral AI platform via browser

This action will open a new tab or window in your default web browser, directing you to Mistral AI authentication flow if you're unauthenticated.

🚨 You should log in with an Enterprise account that has access to Mistral Code otherwise you won't be able to complete the login process.

4. Complete the login process

After successfully logging in, the webpage will try to open back VS Code.

Accept the request and you will be automatically redirected to the Mistral Code extension.

πŸ”‘ Under the hood, the extension has automatically retrieved and validated a dedicated API key from Mistral AI servers. This process is done once and for all until you log out or the API key is deleted.

The plugin should now display the chat interface.

You can verify that you are logged in with an active subscription by checking in the User Account tab (1) and eventually Logout (2) when needed.

image

Mistral Code chat interface

That's it! You are now ready to use Mistral Code in your Visual Studio Code.

Did this answer your question?