@awesamarth/pi-fx
v0.1.0
Published
FX-compatible Vercel AI Gateway provider for Pi
Maintainers
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-fxFor local development:
pi -e ./src/index.tsThen open /model and select a model under the fx provider, for example:
fx/zai/glm-5.2The 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 checkCurrent limitations
- Reads the FX 0.0.4 session from
~/.fx/auth.json; future FX Keychain migration may require an update. - 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.
