# Support for Codestral?

**URL:** <https://forum.cursor.com/t/support-for-codestral/5469>\
**Category:** Feature Requests\
**Created:** [May 31, 2024, 4:10pm UTC](https://forum.cursor.com/t/support-for-codestral/5469 "2024-05-31T16:10:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![azer](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@azer](https://forum.cursor.com/u/azer)\
**Post date:** [May 31, 2024, 4:10pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/1 "2024-05-31T16:10:36Z")

</div>

So Mistral released Codestral, which I can use through the Continue plugin. However; it would be great to use it within the standard cursor interface/setup.

Any plans on adding support?

---

<div class="post-metadata">

**Author:** ![ManyHours](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@ManyHours](https://forum.cursor.com/u/ManyHours)\
**Post date:** [May 31, 2024, 4:17pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/2 "2024-05-31T16:17:56Z")

</div>

Also wondering about this. Using Codestral in a browser window is less than ideal, would be nice to have it in Cursor but hey I think you guys are doing a great job so not complaining, just offering a suggestion 🙂

---

<div class="post-metadata">

**Author:** ![andrewh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/andrewh/32/65515_2.png) [@andrewh](https://forum.cursor.com/u/andrewh)\
**Post date:** [June 1, 2024, 1:03am UTC](https://forum.cursor.com/t/support-for-codestral/5469/3 "2024-06-01T01:03:05Z")

</div>

Done! You can add `codestral` to the list of models in Settings.

If you try it out, LMK how you like it.

---

<div class="post-metadata">

**Author:** ![ManyHours](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@ManyHours](https://forum.cursor.com/u/ManyHours)\
**Post date:** [June 1, 2024, 1:42am UTC](https://forum.cursor.com/t/support-for-codestral/5469/4 "2024-06-01T01:42:06Z")

</div>

Thanks! That easy? What is our limit on use with codestral and is it the 32k context version?

Thanks again for the quick response, cool stuff.

---

<div class="post-metadata">

**Author:** ![wellmor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/wellmor/32/7164_2.png) [@wellmor](https://forum.cursor.com/u/wellmor)\
**Post date:** [June 1, 2024, 3:01pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/5 "2024-06-01T15:01:53Z")

</div>

Nope, it doesn’t work.  
I’ve tried the `https://codestral.mistral.ai/v1` api with my own mistral key.  
It says

```auto
estral-latest\" }"
{"object":"error","message":"Invalid JSON payload","type":"invalid_request_error","param":null,"code":null}curl: (3) bad range specification in URL position 13:
messages\: [ { \role\: \system\, \content\: \You

```

Looks like `messages` can’t accept the array.

It works pretty well with another ai extensions but I would be really appreciated if I can use codestral in cursor as well.

---

<div class="post-metadata">

**Author:** ![andrewh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/andrewh/32/65515_2.png) [@andrewh](https://forum.cursor.com/u/andrewh)\
**Post date:** [June 1, 2024, 9:42pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/6 "2024-06-01T21:42:24Z")

</div>

Looking into it.

---

<div class="post-metadata">

**Author:** ![KaddaTech](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@KaddaTech](https://forum.cursor.com/u/KaddaTech)\
**Post date:** [June 4, 2024, 3:00am UTC](https://forum.cursor.com/t/support-for-codestral/5469/7 "2024-06-04T03:00:38Z")

</div>

Yes looking for codestral as well. I have entered my codestral api key and using the fallback url of “[https://codestral.mistral.ai/v1](https://codestral.mistral.ai/v1)”

I get the error Invalid OpenAI API Key

---

<div class="post-metadata">

**Author:** ![Dreams](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/dreams/32/8283_2.png) [@Dreams](https://forum.cursor.com/u/Dreams)\
**Post date:** [June 4, 2024, 10:40am UTC](https://forum.cursor.com/t/support-for-codestral/5469/8 "2024-06-04T10:40:53Z")

</div>

> [@KaddaTech](#):
>
> codestral

just add the model codestral dont need nothing to do more

---

<div class="post-metadata">

**Author:** ![KaddaTech](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@KaddaTech](https://forum.cursor.com/u/KaddaTech)\
**Post date:** [June 4, 2024, 10:57am UTC](https://forum.cursor.com/t/support-for-codestral/5469/9 "2024-06-04T10:57:53Z")

</div>

Are you sure? I did that and it says it can’t find it when I type something in chat.

Also when I type in my api key into the openai field and click verify it also errors even though I have funds in the account

When you click the add model button what do you type in for codestral?

---

<div class="post-metadata">

**Author:** ![bluebabboon](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bluebabboon/32/1672_2.png) [@bluebabboon](https://forum.cursor.com/u/bluebabboon)\
**Post date:** [June 4, 2024, 12:06pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/10 "2024-06-04T12:06:45Z")

</div>

It doesn’t work. I just added codestral in the models

---

<div class="post-metadata">

**Author:** ![azer](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@azer](https://forum.cursor.com/u/azer)\
**Post date:** [June 4, 2024, 12:35pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/11 "2024-06-04T12:35:58Z")

</div>

It can’t possibly work by just adding the model because it requires a (preapproved) api key.

I’m getting a CORS error when trying to add:

Access to fetch at ‘[https://codestral.mistral.ai/v1/chat/completions](https://codestral.mistral.ai/v1/chat/completions)’ from origin ‘vscode-file://vscode-app’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.

---

<div class="post-metadata">

**Author:** ![KaddaTech](https://avatars.discourse-cdn.com/v4/letter/k/6de8d8/32.png) [@KaddaTech](https://forum.cursor.com/u/KaddaTech)\
**Post date:** [June 4, 2024, 5:20pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/12 "2024-06-04T17:20:51Z")

</div>

So what are the actual working steps to have codestral work with cursor?

What am I adding to the model field?

Am I inputting anything into the open ai field?

Should I put anything in the fallback url?

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 4, 2024, 6:47pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/13 "2024-06-04T18:47:34Z")

</div>

Nope, I just did this and it works for me:

> [@Support for Codestral?](https://forum.cursor.com/t/support-for-codestral/5469/3):
>
> Done! You can add codestral to the list of models in Settings. If you try it out, LMK how you like it.

---

<div class="post-metadata">

**Author:** ![wellmor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/wellmor/32/7164_2.png) [@wellmor](https://forum.cursor.com/u/wellmor)\
**Post date:** [June 4, 2024, 8:04pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/14 "2024-06-04T20:04:42Z")

</div>

Well… still waiting for support.  
It works with other vscode extension though…

---

<div class="post-metadata">

**Author:** ![nouveau](https://avatars.discourse-cdn.com/v4/letter/n/3bc359/32.png) [@nouveau](https://forum.cursor.com/u/nouveau)\
**Post date:** [June 30, 2024, 6:30pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/15 "2024-06-30T18:30:38Z")

</div>

Not working. Tried adding the codestral key and codestral chat api, giving error, problem reaching openai server. Its working on continue.dev

---

<div class="post-metadata">

**Author:** ![duksh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/duksh/32/1826_2.png) [@duksh](https://forum.cursor.com/u/duksh)\
**Post date:** [July 3, 2024, 4:23pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/16 "2024-07-03T16:23:37Z")

</div>

Note: tested on Mac OS 14.5 with following cursor build:

```auto
Version: 0.35.1
VSCode Version: 1.89.1
Commit: a915e3254b1192ce240c078da83fc1768a6e3e90
Date: 2024-06-21T23:14:50.455Z (1 wk ago)
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0

```

Step 1 - click ‘+ Add model’ and add ‘codestral’ as shown in screenshot

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/3/33041462d9d83180062c33d085656c415b782e9c.png)

Step 2 - test by disabling the other models

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/1/1bea15a56793e5ce52f4dacbce9453e57f8f1495.png)

**Conclusion - it worked for me**

---

<div class="post-metadata">

**Author:** ![duksh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/duksh/32/1826_2.png) [@duksh](https://forum.cursor.com/u/duksh)\
**Post date:** [July 3, 2024, 4:25pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/17 "2024-07-03T16:25:22Z")

</div>

it did for me on mac though → [Support for Codestral? - #16 by duksh](https://forum.cursor.com/t/support-for-codestral/5469/16)

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [July 3, 2024, 6:23pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/18 "2024-07-03T18:23:34Z")

</div>

I am also having the error mentioned above on chat. Interestingly, it works with inline completion. I would appreciate some clarification about the inconsistency.

Note that my cursor build is identical to the config that @duksh has shared above.

The request id is: `1dbe1b07-f0c6-4405-83cd-fa463f38cdc8`

```txt
Version: 0.35.1
VSCode Version: 1.89.1
Commit: a915e3254b1192ce240c078da83fc1768a6e3e90
Date: 2024-06-21T23:14:50.455Z
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.5.0

```

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/3/335edf11decfade7699d5aae1e9e4bee6194176c.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 3, 2024, 6:28pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/19 "2024-07-03T18:28:50Z")

</div>

Yes, I also have the same issue. However, everything was working fine a few days ago. 😤

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [July 3, 2024, 6:31pm UTC](https://forum.cursor.com/t/support-for-codestral/5469/20 "2024-07-03T18:31:38Z")

</div>

From the first day when codestral was integrated inside cursor, it only worked in in-line mode for me.

I am really curious about the root cause of this.

[Next page](https://forum.cursor.com/t/support-for-codestral/5469.md?page=2)
