pi-devin-oauth

Devin models in Pi without the Devin CLI.

Packages

Package details

extension

Install pi-devin-oauth from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-devin-oauth
Package
pi-devin-oauth
Version
0.1.5
Published
Sep 19, 2026
Downloads
418/mo · 418/wk
Author
ttttmr
License
MIT
Types
extension
Size
112 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./dist/extension.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-devin-oauth

English | 简体中文

Use Devin models in Pi without the Devin CLI. Sign-in and the model catalog run inside Pi, and chat goes straight to the endpoints the Devin client uses.

Unofficial, not affiliated with Cognition. The protocol is reverse engineered, so it can break without notice.

Install

pi install git:github.com/ttttmr/pi-devin-oauth

Then /reload.

Usage

/login devin
/model

/login devin offers two ways in:

  1. Browser sign-in. Pi opens the Windsurf sign-in page, and you paste the token it shows.
  2. Paste an existing API key, such as devin-session-token$....

After that, /model lists the models your account can use, and /thinking or Shift+Tab sets the thinking level.

How it works

Login calls RegisterUser on register.windsurf.com and stores the API key in ~/.pi/agent/auth.json. The model list comes from GetCliModelConfigs and is cached at ~/.pi/agent/cache/devin-oauth-catalog.json. Chat streams from GetChatMessage.

Model IDs, context windows and token prices all come from the catalog. /model shows what your account can run, one entry per family, and the thinking level picks the matching variant.

Do not install this alongside pi-devin, pi-devin-local or pi-devin-auth; all of them register the same devin provider.

License

MIT.