Skip to content

Commit 3704a6a

Browse files
committed
feat(genapis): add doc for cursor
1 parent 182e3e6 commit 3704a6a

File tree

4 files changed

+78
-1
lines changed

4 files changed

+78
-1
lines changed

pages/generative-apis/menu.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ export const generativeApisMenu = {
118118
label: 'Integrating Generative APIs with n8n',
119119
slug: 'integrate-with-n8n'
120120
},
121+
{
122+
label: 'Integrating Generative APIs with Cursor',
123+
slug: 'integrate-with-cursor'
124+
},
121125
{
122126
label: 'Integrating Generative APIs with popular AI tools',
123127
slug: 'integrating-generative-apis-with-popular-tools',
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: Integrating Generative APIs with Cursor
3+
description: Learn how to integrate Scaleway Generative APIs with Cursor AI code editor for enhanced coding assistance using models like qwen3-coder-30b-a3b-instruct.
4+
tags: generative-apis ai machine-learning language-models cursor
5+
dates:
6+
validation: 2025-10-22
7+
posted: 2025-10-22
8+
---
9+
import Requirements from '@macros/iam/requirements.mdx'
10+
11+
Cursor is an AI-powered code editor that helps developers write and edit code more efficiently. It can read your existing codebase, help you navigate it, and generate code based on your natural language descriptions. Built on top of Visual Studio Code, it allows you to integrate language models directly into your coding workflows.
12+
13+
This guide will help you integrate Scaleway Generative APIs into Cursor. This lets you use models such as `qwen3-coder-30b-a3b-instruct` for code assistance and generation.
14+
15+
<Requirements />
16+
17+
- A Scaleway account logged into the [console](https://console.scaleway.com)
18+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
19+
- A valid [API key](/iam/how-to/create-api-keys/) for API authentication
20+
- Installed [Cursor](https://cursor.com/) on your local machine, and logged in.
21+
22+
## Configuring Cursor to use Scaleway Generative APIs
23+
24+
1. Open Cursor in your browser.
25+
1. Click on the gear icon in the top right corner. The **Cursor Settings** screen displays.
26+
2. In the left sidebar, click **Models**.
27+
3. Uncollapse the **API Keys** section, and toggle on the **OpenAI API Key** setting.
28+
4. Paste the secret part of your [Scaleway API key](/iam/how-to/create-api-keys/) into the **OpenAI API Key** field.
29+
5. Toggle on the **Override OpenAI Base URL** option.
30+
6. Enter `https://api.scaleway.ai/v1` as your base URL in the field that displays.
31+
<Message type="tip">
32+
If you are using a Project other than your [default Project](/organizations-and-projects/concepts/#default-project), modify the base URL accordingly: `https://api.scaleway.ai/{project_id}/v1`
33+
</Message>
34+
7. In the **Models** search bar at the top of the page, paste name of the model you want to use, for example, `qwen3-coder-30b-a3b-instruct`.
35+
8. Click **Add Custom Model**, then **Add** next to the name of the matching model.
36+
37+
The model is added. Close the **Cursor Settings** tab.
38+
39+
## Verifying the integration
40+
41+
To verify that Generative APIs are working correctly in Cursor:
42+
43+
1. Open a new file or existing code file in Cursor.
44+
2. Use `Ctrl+K` (or `Cmd+K` on Mac) to open the inline AI chat interface, or `Ctrl+L` (or `Cmd+L` on Mac) for the AI chat pane.
45+
3. Ask the AI to help with a coding task, such as "Write a function to calculate the factorial of a number".
46+
4. Check that the AI responds with code suggestions.
47+
48+
If the integration is working correctly, you should see AI-generated code suggestions that are relevant to your request.
49+
50+
If you encounter any issues, verify that your API key is correct and that the base URL is properly configured.
51+
52+
## Choosing a model
53+
54+
We recommended using the following models with Cursor:
55+
56+
- `qwen3-coder-30b-a3b-instruct` as the default choice for most tasks, especially autocompletion.
57+
- `qwen3-235b-a22b-instruct-2507` for agentic tasks.
58+
- `bge-multilingual-gemma2` for embeddings.
59+
60+
You can add multiple custom models to Cursor. By default, it will use **Auto model selection** to determine which of your added models to use for a given task. To override this:
61+
62+
1. Click **Auto** in the inline AI chat interface or at the bottom of the AI chat pane.
63+
2. Toggle off the **Auto** selection.
64+
3. Select the model you want Cursor to use from the list.

pages/generative-apis/reference-content/integrating-generative-apis-with-popular-tools.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The following table compares AI tools and libraries supported by Scaleway's Gene
2020
| [LlamaIndex](#llamaindex-advanced-rag-applications) | Library for building advanced AI RAG applications | Knowledge graph building, document retrieval, data indexing | Medium |
2121
| [Continue Dev](#continue-dev-ai-coding-assistance) | IDE extension for AI-powered coding assistance | Code completion, code review | Low |
2222
| [Zed AI](#zed-ai-coding-assistance) | IDE including AI-powered coding assistance | Code completion, code review | Low |
23+
| [Cursor](#cursor) | IDE for AI-powered coding assistance | Code completion, code generation, code review | Low |
2324
| [Bolt.diy](#boltdiy-code-generation) | Software to create applications | Code generation, code edition | Low |
2425
| [Chatbox AI](#chatbox-ai) | Desktop client for generative APIs, available on Windows, Mac, Linux | AI copilot for documents, images, or code| Low |
2526
| [n8n](#n8n) | Workflow automation tool | Connecting AI agents, apps, and services. | Low |
@@ -247,6 +248,14 @@ Zed is an IDE (Integrated Development Environment) including AI coding assistanc
247248
Refer to our dedicated documentation for [connecting Zed to Generative APIs](/generative-apis/reference-content/adding-ai-to-zed-ide/)
248249
</Message>
249250
251+
## Cursor (AI coding assistance)
252+
253+
Cursor is an AI-powered code editor that helps developers write and edit code more efficiently. It can read your existing codebase, help you navigate it, and generate code based on your natural language descriptions. Built on top of Visual Studio Code, it allows you to integrate language models directly into your coding workflows.
254+
255+
<Message type="tip">
256+
Refer to our dedicated documentation for [integrating Generative APIs into Cursor](/generative-apis/reference-content/integrate-with-cursor/)
257+
</Message>
258+
250259
## Bolt.diy (code generation)
251260
252261
Bolt.diy is a software enabling users to create web applications from the prompt.

pages/generative-apis/troubleshooting/fixing-common-issues.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Below are common issues that you may encounter when using Generative APIs, their
3030

3131
### Solution
3232
- Verify the JSON body you send is valid:
33-
- You can store your content in a file with the `.json` extension (eg. named `file.json`), and open it with an IDE such as VSCode or Zed. Syntax errors should display if there are any.
33+
- You can store your content in a file with the `.json` extension (eg. named `file.json`), and open it with an IDE such as [VSCode](/generative-apis/reference-content/adding-ai-to-vscode-using-continue/), [Zed](/generative-apis/reference-content/adding-ai-to-zed-ide/) or [Cursor](/generative-apis/reference-content/integrate-with-cursor/). Syntax errors should display if there are any.
3434
- You can copy your content in a JSON formatter tool or linter available online, that will identify errors.
3535
- Usually, most common errors include:
3636
- Missing or unnecessary quotes `"`, `'` or commas `,` on property names and string values.

0 commit comments

Comments
 (0)