Install
Install with PiG
pig install npm:pi-devin-oauthInstall with Pi
pi install npm:pi-devin-oauthPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./dist/extension.js"
]
}README
Written by the package's publisher, shown as published in version 0.1.5 (README.md). PiG does not review it.
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:
- Browser sign-in. Pi opens the Windsurf sign-in page, and you paste the token it shows.
- 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.