计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
windsurf-install-auth【效率与协作】Install and configure Windsurf SDK/CLI authentication. Use when setting up a new Windsurf integration, configuring API keys, or initializing Windsurf in your project. Trigger with phrases like "install windsurf", "setup windsurf", "windsurf auth", "configure windsurf API key".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Set up Windsurf SDK/CLI and configure authentication credentials.
# Node.js
npm install @windsurf/sdk
# Python
pip install windsurf
# Set environment variable
export WINDSURF_API_KEY="your-api-key"
# Or create .env file
echo 'WINDSURF_API_KEY=your-api-key' >> .env
// Test connection code here
| Error | Cause | Solution |
|---|---|---|
| Invalid API Key | Incorrect or expired key | Verify key in Windsurf dashboard |
| Rate Limited | Exceeded quota | Check quota at https://docs.windsurf.com |
| Network Error | Firewall blocking | Ensure outbound HTTPS allowed |
| Module Not Found | Installation failed | Run npm install or pip install again |
import { WindsurfClient } from '@windsurf/sdk';
const client = new WindsurfClient({
apiKey: process.env.WINDSURF_API_KEY,
});
from windsurf import WindsurfClient
client = WindsurfClient(
api_key=os.environ.get('WINDSURF_API_KEY')
)
After successful auth, proceed to windsurf-hello-world for your first API call.