{"_id":"@awesamarth/pi-fx","_rev":"2-76cd115b5ae38c1fe91eb3e62e9cba13","name":"@awesamarth/pi-fx","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@awesamarth/pi-fx","version":"0.1.0","keywords":["pi-package","pi","fx","vercel-ai-gateway"],"license":"MIT","_id":"@awesamarth/pi-fx@0.1.0","maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"efab7d492318e06df1d1cc395f3f25d66c13128c","tarball":"https://registry.npmjs.org/@awesamarth/pi-fx/-/pi-fx-0.1.0.tgz","fileCount":4,"integrity":"sha512-9Ow7dnBGSmn2KGDX7B5VXck8fP1CzYNoTgCgHupDPuqjTEcGw3nanFPfG+3gJ99GtGxRXB6dzukb4NtJE4Ue8A==","signatures":[{"sig":"MEUCIQDaOiw4wpY/dWxwQ++n0NK2t0NDI0fB1WhlIpXBtUlTfgIgZFVsNsdhWkAHvgn7U8y6t9uRWx+JgHIMyAZPkJVEcIo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17697},"type":"module","scripts":{"test":"bun test","check":"tsc --noEmit"},"_npmUser":{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"},"_npmVersion":"11.6.2","description":"FX-compatible Vercel AI Gateway provider for Pi","directories":{},"_nodeVersion":"24.12.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"latest","@earendil-works/pi-ai":"0.84.2","@earendil-works/pi-coding-agent":"0.84.2"},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-fx_0.1.0_1787336219257_0.4280206149465273","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@awesamarth/pi-fx","version":"0.1.1","description":"FX-compatible Vercel AI Gateway provider for Pi","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/awesamarth/pi-fx.git"},"homepage":"https://github.com/awesamarth/pi-fx#readme","bugs":{"url":"https://github.com/awesamarth/pi-fx/issues"},"keywords":["pi-package","pi","fx","vercel-ai-gateway"],"pi":{"extensions":["./src/index.ts"]},"scripts":{"test":"bun test","check":"tsc --noEmit"},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*"},"devDependencies":{"@earendil-works/pi-ai":"0.84.2","@earendil-works/pi-coding-agent":"0.84.2","@types/bun":"latest","typescript":"latest"},"gitHead":"736ee97d8917870629048623c366fb2661c6f614","_id":"@awesamarth/pi-fx@0.1.1","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-l3hQs4Np61rgC4+A+k83XYYjoPQXsyQ9woQG2TiRPbHpXR7Lndu7JgY4MSEK37FRNx32tND2dH1bzeOQBb71nQ==","shasum":"3b556a278d81106e28e0fd98989f714d99351a9d","tarball":"https://registry.npmjs.org/@awesamarth/pi-fx/-/pi-fx-0.1.1.tgz","fileCount":4,"unpackedSize":18450,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGusqQ1cf8A6AQdsltMfDqcxg4IivWOtKgFGK45WEmgqAiEA0mScvpHiqgkEbx5UiQ1kJigZnX5qecSpX2AltRBMef8="}]},"_npmUser":{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"},"directories":{},"maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-fx_0.1.1_1787408425540_0.907261622658124"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T18:16:58.927Z","modified":"2026-08-22T14:20:25.879Z","0.1.0":"2026-08-21T18:16:59.440Z","0.1.1":"2026-08-22T14:20:25.719Z"},"license":"MIT","keywords":["pi-package","pi","fx","vercel-ai-gateway"],"description":"FX-compatible Vercel AI Gateway provider for Pi","maintainers":[{"name":"awesamarth","email":"samarthsaxena1672003@gmail.com"}],"readme":"# pi-fx\n\nFX-compatible Vercel AI Gateway provider for [Pi](https://github.com/badlogic/pi-mono).\n\nIt 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.\n\n## Requirements\n\n- `fx` installed\n- `fx login` completed\n- Pi 0.84.2 or newer\n\n## Install\n\n```bash\npi install npm:@awesamarth/pi-fx\n```\n\nFor local development:\n\n```bash\npi -ne -e ./src/index.ts\n```\n\nThen open `/model` and select a model under the `fx` provider, for example:\n\n```text\nfx/zai/glm-5.2\n```\n\nThe extension loads the public FX/Vercel model catalog dynamically. Model availability, pricing, promotions, and routing remain controlled by Vercel.\n\n## Test\n\n```bash\nbun install\nbun test\nbun run check\n```\n\n## Current limitations\n\n- Reads the FX session from macOS Keychain (FX 0.0.5+) or `~/.fx/auth.json` (FX 0.0.4).\n- Tool-result images are represented as text because FX's current coding-agent history format is text-only there.\n- This project is an independent compatibility adapter and is not affiliated with Vercel or FX.\n","readmeFilename":"README.md","homepage":"https://github.com/awesamarth/pi-fx#readme","repository":{"type":"git","url":"git+https://github.com/awesamarth/pi-fx.git"},"bugs":{"url":"https://github.com/awesamarth/pi-fx/issues"}}