Skip to main content

How do I log in to Mistral Code in JetBrains IDEs?

Updated this week

After installing the Mistral Code plugin in your JetBrains IDE (like IntelliJ IDEA, PyCharm, etc.), you need to log in with your Mistral AI account to activate its features.

The process for JetBrains IDEs involves an API key exchange.

Steps to log in

1. Open Mistral Code

Locate the Mistral Code plugin in the Tool Window Bar (typically located on the right, left, or bottom edge of your JetBrains IDE window) and click the Mistral Code icon.

2. Initiate login process

In the Mistral Code panel, click the Open Mistral Code Page button as shown in the screenshot below.

image

Click on the Open Mistral Code Page 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 access the API key page.

4. Retrieve your API Key

After successfully logging in, the webpage should display an API Key created specifically for your Mistral Code usage in JetBrains IDEs.

If needed, you can display the key, generate a new API key or even delete it (be sure to have at least one valid Mistral Code API key to complete the login process).

image

Copy the API key

5. Enter API key in your JetBrains IDE

  1. Return to your JetBrains IDE and enter the API key you copied from the Mistral Code webpage to the input field in the Mistral Code panel (1).

  2. Then click on the Login button (2).

image

Paste the API key (1) then click on the Login button (2)

πŸ”‘ This process is only required once. Your API key will be stored locally on your machine. However, logging out will remove this API key definitively and you will need to repeat the process from scratch upon next login.

6. Login confirmation

The plugin will validate the API key with Mistral AI servers.

Upon successful validation of the API key, 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 JetBrains IDE.

Did this answer your question?