omp packages

pi-devin-auth0.1.2

Pi coding agent extension for Devin/Cognition (Windsurf) OAuth + streaming

nmzpy Published 3 months ago MIT ~280 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

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-auth

Then enable the extension:

pi config

Manual / local dev

pi -e ./extensions/index.ts

Or copy extensions/index.ts into ~/.pi/agent/extensions/ for auto-discovery.

Usage

Login

/login devin

This 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-6

Logout

/logout devin

How 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 events

The 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