pi-apikodex
v0.1.0
Published
Connect pi to APIKodex — unified OpenAI/Anthropic/Gemini-compatible AI gateway with your own API key
Maintainers
Readme
Install
pi install npm:pi-apikodexOr from git:
pi install git:github.com/billyriantono/pi-apikodexWhat you get
| Command | Role |
|---------|------|
| /apikodex | Connect · set endpoint + your API key · sync models · diagnose · browse |
| /apikodex-refresh | Headless re-sync of the model list |
Provider apikodex is registered with pi's model picker (/model) using the
OpenAI-compatible GET /v1/models catalog, enriched with curated display names,
reasoning/vision flags, and context limits.
60-second start
1. /apikodex # open the menu
2. Connection → API key # paste your own key (never shared, never hardcoded)
3. Test connection # expect "OK · N models · XXms"
4. Sync models # register chat models
5. /model # provider apikodexNo key? Use the APIKODEX_KEY environment variable instead:
export APIKODEX_KEY=ah-xxxx # then /apikodex → Sync models
export APIKODEX_URL=https://apikodex.com/v1 # optional, this is the defaultDocs
| Doc | | |-----|--| | Setup | Install, first run, env vars | | Usage | Menus, sync, key management | | Dev | Layout for contributors, tests |
Links
- APIKodex · pi.dev · Package gallery
- Modeled on @qmahyar/pi-9router
License
MIT
