Bring your existing CodeGPT free or paid subscription to Pi. This extension registers a custom CodeGPT provider to your Pi harness, allowing you to authenticate your CodeGPT subscription and use free, economy, and premium models in Pi.
# from npm
pi install npm:@diffbot/codegpt-pi
# from git
pi install git:github.com/diffbot/codegpt-piRun /login and pick CodeGPT. Follow the instructions to finish authentication.
Select an available CodeGPT model in Pi by running /models. Models are marked by their tier (free, economy, premium). Keep in mind that model usage in Pi may consume credits depending on your CodeGPT plan.
| Variable | Purpose |
|---|---|
CODEGPT_SESSION_TOKEN |
Session token, skips the browser flow |
CODEGPT_ORG_ID |
Organization id header |
CODEGPT_BACKEND_URL |
API base (default https://api.codegpt.co/api/v1) |
CODEGPT_PLAYGROUND_URL |
Login base (default https://app.codegpt.co) |
git clone https://github.com/diffbot/codegpt-pi.git
cd codegpt-pi
npm install
npm run typecheck
pi -e .Follows the Pi package conventions:
codegpt-pi/
├── extensions/ # the codegpt provider
├── assets/ # gallery preview
├── package.json # pi manifest + pi-package keyword
└── README.md
MIT