Antigravity (Windsurf) is detected by finding the running language server process.
- Process detection (only method)
- Scans for running Antigravity/Windsurf process
- Extracts CSRF token from process command line
- Uses local HTTP API to fetch usage
Uses wmic process to find processes with:
- Command line containing
--extensionDevelopmentPath - CSRF token in command line arguments
| Endpoint | Purpose |
|---|---|
POST http://127.0.0.1:<port>/usage |
Get usage data |
X-Requested-With: Cascade
X-CSRF-Token: <extracted from process>
Content-Type: application/json
| Field | Source |
|---|---|
| Primary usage | Session usage percent |
| Secondary usage | Weekly usage percent |
| Credits | Balance if available |
- Antigravity (Windsurf) must be running
- No separate authentication needed
- Auto-detects when app is open
src/main/providers/antigravity.ts- Provider implementation- Uses
child_process.execfor process detection