Windsurf
Windsurf is the first AI agent-powered IDE, developed by Codeium. Built on the VS Code architecture, Windsurf goes beyond traditional code editors by deeply integrating AI capabilities at every level. Its flagship feature, Cascade, is an AI agent that can reason across your entire codebase, make multi-file edits, run terminal commands, and maintain context throughout long development sessions. If you are familiar with VS Code, you will find Windsurf immediately comfortable, with the added benefit of a deeply integrated AI workflow.
Prerequisites
Before installing Windsurf, make sure you have the following:
- Debian 10 (Buster) or later -- Windsurf supports Debian 10 and all newer releases.
- 64-bit architecture -- x86_64 (amd64) processor required.
- Desktop environment -- GNOME, KDE Plasma, Xfce, or any other graphical desktop.
- RAM: 4 GB minimum (8 GB or more recommended).
- Display: 1024x768 resolution or higher.
Installation
Method 1: APT Repository (Recommended)
Setting up the official Windsurf APT repository allows you to install and update Windsurf through the system package manager.
# Install prerequisites
sudo apt update
sudo apt install -y curl gpg apt-transport-https
# Download and install the Windsurf GPG key
curl -fsSL https://windsurf-stable.codeiumdata.com/wVxQEIFkbUDsNBIWBJakLA/windsurf.gpg | sudo gpg --dearmor -o /usr/share/keyrings/windsurf-stable-archive-keyring.gpg
# Add the Windsurf APT repository
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/windsurf-stable-archive-keyring.gpg] https://windsurf-stable.codeiumdata.com/wVxQEIFkbUDsNBIWBJakLA/apt stable main" | sudo tee /etc/apt/sources.list.d/windsurf.list > /dev/null
# Update the package lists and install Windsurf
sudo apt update
sudo apt install -y windsurfMethod 2: .deb Package
If you prefer to install from a downloaded package:
Visit https://codeium.com/windsurf/download and download the
.debpackage for Linux.Install the package:
# Install the downloaded .deb package
sudo dpkg -i windsurf_*.deb
# Fix any missing dependencies
sudo apt install -fLaunching Windsurf
After installation, launch Windsurf from your application menu or the terminal:
# Launch Windsurf from the terminal
windsurf
# Open a specific project directory
windsurf /path/to/project
# Open a specific file
windsurf file.pyConfiguration
Account Login
When you first launch Windsurf, you will be prompted to create a Codeium account or sign in. A free tier is available with AI features included.
- Launch Windsurf.
- Click Sign In or Create Account when prompted.
- Complete the authentication flow in your browser.
AI Model Settings
Windsurf allows you to configure which AI model powers the Cascade agent and code completions:
- Open Settings with
Ctrl + ,. - Search for "Windsurf" or "Cascade" in the settings.
- Configure your preferred model and behavior settings.
Importing VS Code Settings
If you are migrating from VS Code, Windsurf can import your settings, extensions, and keybindings:
- On first launch, Windsurf offers to import VS Code settings automatically.
- Follow the prompts to transfer your configuration.
To import manually:
# Copy VS Code settings to Windsurf
cp -r ~/.config/Code/User/settings.json ~/.config/Windsurf/User/
cp -r ~/.config/Code/User/keybindings.json ~/.config/Windsurf/User/
# Copy VS Code extensions
cp -r ~/.vscode/extensions ~/.windsurf/extensionsTIP
After importing extensions, restart Windsurf to ensure all extensions load correctly.
Proxy Configuration
If you are behind a corporate proxy:
# Set proxy environment variables before launching Windsurf
export HTTP_PROXY="http://your-proxy:port"
export HTTPS_PROXY="http://your-proxy:port"
# Or configure in Windsurf settings
# Open Settings (Ctrl + ,) and search for "proxy"Features
Cascade AI Agent
Cascade is Windsurf's flagship AI feature. It operates as an autonomous agent that understands your entire codebase and can perform complex, multi-step tasks.
How to use Cascade:
- Open the Cascade panel from the sidebar or press the designated shortcut.
- Describe your task in natural language.
- Cascade analyzes your codebase, creates a plan, and proposes changes.
- Review and approve each step.
Cascade can:
- Edit multiple files simultaneously to implement features.
- Run terminal commands such as installing dependencies or running tests.
- Search your codebase for relevant context before making changes.
- Maintain conversation context across long development sessions.
Inline Editing
For quick, targeted code modifications:
- Select the code you want to modify.
- Press
Ctrl + Ito open the inline editing prompt. - Describe the change in natural language.
- Review and accept the proposed diff.
Tab Autocomplete
Windsurf provides intelligent code completions as you type, powered by Codeium's AI:
- Accept a suggestion: Press
Tab. - Dismiss: Press
Escape. - Cycle through suggestions: Use
Alt + ]andAlt + [.
Multi-File Context Awareness
Windsurf's AI understands your entire project structure, not just the current file. When you ask Cascade for help, it automatically searches relevant files for context, making its suggestions more accurate and project-aware.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl + I | Open inline editing prompt |
Ctrl + L | Open Cascade chat panel |
Ctrl + Shift + P | Open the command palette |
Ctrl + P | Quick file open |
Tab | Accept autocomplete suggestion |
Escape | Dismiss suggestion |
Ctrl + ` | Toggle integrated terminal |
Update
Updating via APT
If you installed Windsurf through the APT repository, updates are handled by the system package manager:
# Update Windsurf along with other system packages
sudo apt update
sudo apt upgrade windsurfUpdating a .deb Installation
Download the latest .deb file from the Windsurf website and install it over the existing version:
# Download the latest .deb and install
sudo dpkg -i windsurf_*.deb
sudo apt install -fUninstalling Windsurf
# Remove Windsurf
sudo apt remove windsurf
# Remove Windsurf and its configuration files
sudo apt purge windsurf
# Remove the APT repository (optional)
sudo rm /etc/apt/sources.list.d/windsurf.list
sudo rm /usr/share/keyrings/windsurf-stable-archive-keyring.gpg
sudo apt updateTroubleshooting
Black or blank screen on launch
This is typically caused by GPU acceleration issues:
# Launch Windsurf with GPU acceleration disabled
windsurf --disable-gpuIf this resolves the issue, you can make the flag permanent by adding it to your desktop shortcut or creating a shell alias:
# Create a permanent alias
echo 'alias windsurf="windsurf --disable-gpu"' >> ~/.bashrc
source ~/.bashrcGPG key or repository errors during installation
If you encounter errors when adding the APT repository:
# Re-download the GPG key
sudo rm /usr/share/keyrings/windsurf-stable-archive-keyring.gpg
curl -fsSL https://windsurf-stable.codeiumdata.com/wVxQEIFkbUDsNBIWBJakLA/windsurf.gpg | sudo gpg --dearmor -o /usr/share/keyrings/windsurf-stable-archive-keyring.gpg
# Update package lists
sudo apt updateInput method (IBus/Fcitx) not working
If your input method does not work inside Windsurf, set the following environment variables before launching:
# For IBus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# For Fcitx
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitxAdd these lines to your ~/.bashrc or ~/.profile for persistence.
AI features not responding
If Cascade or autocomplete stops working:
- Check your internet connection -- AI features require a network connection.
- Check your account status -- Make sure you are signed in and your subscription is active.
- Restart Windsurf -- Sometimes a restart resolves temporary connection issues.
- Check the output panel -- Press
Ctrl + Shift + Uand select "Windsurf" or "Codeium" from the dropdown to see error messages.
# Test connectivity to Codeium's servers
curl -I https://api.codeium.comHigh memory usage
Windsurf, like VS Code, can consume significant memory with many extensions and large projects:
# Launch with a lower memory limit
windsurf --max-memory=4096
# Disable unused extensions to reduce memory
# Open Extensions panel (Ctrl + Shift + X) and disable unnecessary onesExtension compatibility issues
Most VS Code extensions work with Windsurf, but some may have compatibility issues:
- Check the extension's marketplace page for known issues with Windsurf.
- Try disabling recently installed extensions to isolate the conflict.
- Report incompatible extensions to the Windsurf team or the extension developer.
Related Resources
- AI Tools Overview -- Overview of all AI tools on Debian
- Cursor -- Alternative AI-powered IDE
- Desktop Environments -- Choosing a desktop for Debian
- Windsurf Official Website -- Downloads and documentation