@awesamarth/pi-fx
FX-compatible Vercel AI Gateway provider for Pi
Package details
Install @awesamarth/pi-fx from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@awesamarth/pi-fx- Package
@awesamarth/pi-fx- Version
0.1.1- Published
- Aug 22, 2026
- Downloads
- 357/mo · 20/wk
- Author
- awesamarth
- License
- MIT
- Types
- extension
- Size
- 18 KB
- Dependencies
- 0 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-fx
FX-compatible Vercel AI Gateway provider for Pi.
It reuses your local FX OAuth session and speaks FX's v3 Gateway protocol directly from Pi. Requests do not pass through the FX binary; FX remains responsible for login and token refresh.
Requirements
fxinstalledfx logincompleted- Pi 0.84.2 or newer
Install
pi install npm:@awesamarth/pi-fx
For local development:
pi -ne -e ./src/index.ts
Then open /model and select a model under the fx provider, for example:
fx/zai/glm-5.2
The extension loads the public FX/Vercel model catalog dynamically. Model availability, pricing, promotions, and routing remain controlled by Vercel.
Test
bun install
bun test
bun run check
Current limitations
- Reads the FX session from macOS Keychain (FX 0.0.5+) or
~/.fx/auth.json(FX 0.0.4). - Tool-result images are represented as text because FX's current coding-agent history format is text-only there.
- This project is an independent compatibility adapter and is not affiliated with Vercel or FX.