pi-connect
Unified OAuth and API key login for pi with an OpenCode-inspired UI. Connect 15+ providers with one /connect command.
Package details
Install pi-connect from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-connect- Package
pi-connect- Version
0.1.3- Published
- Mar 28, 2026
- Downloads
- 390/mo · 39/wk
- Author
- hk-vk
- License
- MIT
- Types
- extension
- Size
- 114.6 KB
- Dependencies
- 0 dependencies · 3 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
],
"image": "https://raw.githubusercontent.com/hk-vk/pi-connect/main/assets/screenshot.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-connect

Unified OAuth and API key login for pi with an OpenCode-inspired UI.
Connect 15+ providers with one /connect command.
Official pi providers list:
Install
pi install git:github.com/hk-vk/pi-connect
Usage
/connect — connect any provider
OAuth (browser login) or API key (paste your key) — one unified UI for all providers supported by pi.
/connect
Opens a picker like this:
╭───────────────────────────────────╮
│ Connect provider │
│ │
│ ○ Anthropic OAuth │
│ ○ ChatGPT OAuth │
│ ○ Copilot OAuth │
│ ○ OpenAI API key │
│ ○ OpenRouter API key │
│ ○ OpenCode API key │
│ ○ Gemini API key │
│ ○ Groq API key │
│ │
│ ● connected ◌ env ○ new │
╰───────────────────────────────────╯
Status:
● connected= saved inauth.json◌ env= available from environment variable○ new= not configured yet
Direct connect
/connect openai
/connect anthropic
/connect openrouter
/disconnect — remove a saved credential
/disconnect
Supported — 15+ providers
OAuth:
- Anthropic (Claude Pro/Max)
- ChatGPT Plus/Pro (Codex)
- GitHub Copilot
- Google Gemini CLI
- Google Antigravity
API key:
- Anthropic
- OpenAI
- OpenCode
- OpenRouter
- Google Gemini
- Groq
- Mistral
- Cerebras
- xAI
- ZAI
- Azure OpenAI
- Vercel AI Gateway
- Hugging Face
- Kimi
- MiniMax
See the official pi provider documentation for the full list and auth details:
License
MIT
