windsurf-auto-model-switcher

Automate Windsurf Cascade AI model switching via PowerShell scripts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/karstenheld3/SharePoint-GPT-Middleware --skill windsurf-auto-model-switcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: windsurf-auto-model-switcher
Source: https://github.com/karstenheld3/SharePoint-GPT-Middleware/tree/main/.windsurf/skills/windsurf-auto-model-switcher
Command: npx skills add https://github.com/karstenheld3/SharePoint-GPT-Middleware --skill windsurf-auto-model-switcher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates Windsurf Cascade AI model switching, enabling automated changes to the active model from workflows or scripts without manual UI interaction.

Core Features & Use Cases

  • Programmatic model switching: switch Windsurf Cascade AI models via PowerShell scripts or automation.
  • Model registry integration: leverage windsurf-model-registry.json to select models and costs; integrate with update-model-registry workflows.
  • Workflow automation: integrate into CI/CD pipelines to optimize model choice based on task needs and performance requirements.
  • Use Case: automate model selection in a data processing pipeline to swap to a faster model during preprocessing and revert to a more capable model for final reasoning.

Quick Start

  1. Install required setup as detailed in SETUP.md to enable keybindings and initialization.
  2. Use select-windsurf-model-in-ide.ps1 to switch to a specific model by query, e.g. .\select-windsurf-model-in-ide.ps1 -Query "sonnet 4.5".
  3. After setup, verify the active model in Windsurf Cascade UI and run your automation tasks.

Frequently Asked Questions about windsurf-auto-model-switcher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate switching AI models in Windsurf Cascade from scripts?

Automate model switching in Windsurf Cascade using PowerShell scripts with the select-windsurf-model-in-ide.ps1 command. Specify the model by query (e.g., -Query "sonnet 4.5") to programmatically change the active model without manual UI interaction. Setup keybindings via SETUP.md first.

Can I integrate Windsurf model switching into CI/CD pipelines?

Yes, integrate model switching into CI/CD workflows to dynamically select models based on task requirements. Use the windsurf-model-registry.json to leverage model metadata and costs, enabling optimized model choice across development, testing, and production environments.

What setup is required to enable programmatic model switching in Windsurf?

Install keybindings and configure the model registry by following SETUP.md. This initializes local PowerShell tooling and windsurf-model-registry.json integration, allowing select-windsurf-model-in-ide.ps1 to function and switch models via automation.

How do I switch between different AI models based on performance and cost?

Use the model registry and PowerShell automation to swap models dynamically. Switch to faster models for preprocessing or lower-cost variants for routine tasks, then revert to more capable models for complex reasoning—automating the entire selection process.

Does Windsurf model switching work with workflow automation?

Model switching integrates with PowerShell workflows and scripts for programmatic control. It works across automation contexts—CI/CD pipelines, scheduled tasks, and custom workflows—enabling conditional model selection without manual intervention.