pi-devin-auth
v0.1.2
Published
Pi coding agent extension for Devin/Cognition (Windsurf) OAuth + streaming
Maintainers
Readme
pi-devin-auth
A pi coding agent extension that adds the Devin (Cognition / Windsurf) provider with browser-based OAuth login and native streaming.
Install
Via pi (recommended)
pi install npm:pi-devin-authThen enable the extension:
pi configManual / local dev
pi -e ./extensions/index.tsOr copy extensions/index.ts into ~/.pi/agent/extensions/ for auto-discovery.
Usage
Login
/login devinThis opens https://windsurf.com/windsurf/signin in your browser. After signing in, the page displays an auth token — paste it into the pi prompt. The extension exchanges it for a long-lived Devin API key via register.windsurf.com.
Select a model
/model devin/swe-1-6Logout
/logout devinHow it works
pi --login--> windsurf.com (Auth0) --token--> register.windsurf.com (RegisterUser) --api_key--> ~/.pi/agent/auth.json
pi --chat--> streamDevin() --> cloud-direct/streamChatEvents() --> server.codeium.com (GetChatMessage gRPC) --> pi eventsThe extension reuses the battle-tested cloud-direct gRPC layer from opencode-windsurf-auth and wraps it in pi's native streamSimple + oauth extension API.
Models
Models are fetched dynamically from Cognition's GetCascadeModelConfigs RPC after login, so the list always reflects what your account tier can access. A static fallback set is included for offline use.
License
MIT
