Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Docs for Windsurf upgrade (#5587)

vincent d warmerdam9aa649ed33c3
diff --git a/docs/_static/windsurf-api.png b/docs/_static/windsurf-api.png
new file mode 100644
index 0000000000..e89666d439
Binary files /dev/null and b/docs/_static/windsurf-api.png differ
diff --git a/docs/_static/windsurf-settings.png b/docs/_static/windsurf-settings.png
new file mode 100644
index 0000000000..1f1bbf98cf
Binary files /dev/null and b/docs/_static/windsurf-settings.png differ
diff --git a/docs/guides/editor_features/ai_completion.md b/docs/guides/editor_features/ai_completion.md
index 2171849f8c..cf76433aa1 100644
--- a/docs/guides/editor_features/ai_completion.md
+++ b/docs/guides/editor_features/ai_completion.md
@@ -335,13 +335,21 @@ marimo using `pip`/`uv` if you need Copilot._
### Windsurf Copilot
-Windsurf (formerly codeium) provides a free coding copilot. You can try
-setting up Windsurf with the following:
+[Windsurf](https://windsurf.com/) (formerly codeium) provides tab-completion tooling that can also be used from within marimo.
-1. Go to the Windsurf website and sign up for an account: <https://windsurf.com/>
-2. Try the method from: <https://github.com/leona/helix-gpt/discussions/60>
+To set up Windsurf:
-Add your key to your marimo.toml file (or configure in the UI settings in the editor):
+1. Go to [windsurf.com](https://windsurf.com/) website and sign up for an account.
+2. Download the [Windsurf app](https://windsurf.com/download).
+3. After installing Windsurf and authenticating, open up the command palette, via <kbd>cmd</kbd>+<kbd>shift</kbd>+<kbd>p</kbd>, and ask it to copy the api key to your clipboard.
+
+![Copy Windsurf API key](/_static/windsurf-api.png)
+
+4a. Configure the UI settings in the editor to use Windsurf.
+
+![Paste Windsurf API key](/_static/windsurf-settings.png)
+
+4b. Alternatively you can also configure the api key from the marimo config file.
```toml title="marimo.toml"
[completion]
@@ -349,42 +357,6 @@ copilot = "codeium"
codeium_api_key = ""
```
-For official support, please ping the Windsurf team and ask them to support marimo.
-
-??? note "Alternative: Obtain Windsurf API key using VS Code"
-
- 1. Go to the Codeium website and sign up for an account: <https://codeium.com/>
- 2. Install the [Codeium Visual Studio Code extension](vscode:extension/codeium.codeium) (see [here](https://codeium.com/vscode_tutorial) for complete guide)
- 3. Sign in to your Codeium account in the VS Code extension
- 4. Select the Codeium icon on the Activity bar (left side), which opens the Codeium pane
- 5. Select the **Settings** button (gear icon) in the top-right corner of the Codeium pane
-
- <div align="center">
- <figure>
- <img src="/_static/docs-ai-completion-codeium-vscode.png"/>
- <figcaption>Open Codeium settings</figcaption>
- </figure>
- </div>
-
- 6. Click the **Download** link under the **Extension Diagnostics** section
- 7. Open the diagnostic file and search for `apiKey`
-
- <div align="center">
- <figure>
- <img src="/_static/docs-ai-completion-codeium-vscode-download-diagnostics.png"/>
- <figcaption>Download diagnostics file with API key</figcaption>
- </figure>
- </div>
-
- 8. Copy the value of the `apiKey` to `$XDG_CONFIG_HOME/marimo/marimo.toml`:
-
- ```toml title="marimo.toml"
- [completion]
- codeium_api_key = "a1e8..." # <-- paste your API key here
- copilot = "codeium"
- activate_on_typing = true
- ```
-
### Custom copilots
marimo also supports integrating with custom LLM providers for code completion suggestions. This allows you to use your own LLM service to provide in-line code suggestions based on internal providers or local models (e.g. Ollama). You may also use OpenAI, Anthropic, or Google AI by providing your own API keys.
diff --git a/frontend/src/components/app-config/user-config-form.tsx b/frontend/src/components/app-config/user-config-form.tsx
index cbf47d77c6..7d707f1e74 100644
--- a/frontend/src/components/app-config/user-config-form.tsx
+++ b/frontend/src/components/app-config/user-config-form.tsx
@@ -141,8 +141,8 @@ export const UserConfigForm: React.FC = () => {
return (
<>
<p className="text-sm text-muted-secondary">
- To get a Codeium API key, follow{" "}
- <ExternalLink href="https://docs.marimo.io/guides/editor_features/ai_completion.html#codeium-copilot">
+ To get a Windsurf API key, follow{" "}
+ <ExternalLink href="https://docs.marimo.io/guides/editor_features/ai_completion.html#windsurf-copilot">
these instructions
</ExternalLink>
.