{"_id":"@arhen/pi-add-9router","_rev":"2-11130f4c00f6ba8f581f6820fcc36cf8","name":"@arhen/pi-add-9router","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@arhen/pi-add-9router","version":"1.0.0","keywords":["pi-package","pi-extension","9router","ai-router","openai-proxy"],"author":{"name":"arhen","email":"arhen@users.noreply.github.com"},"license":"MIT","_id":"@arhen/pi-add-9router@1.0.0","maintainers":[{"name":"arhen","email":"itsme.arhen@gmail.com"}],"homepage":"https://github.com/arhen/pi-9router#readme","bugs":{"url":"https://github.com/arhen/pi-9router/issues"},"pi":{"extensions":["./src/index.ts"]},"dist":{"shasum":"bd8f2fbee551659980e23459baa2bbab0b18c128","tarball":"https://registry.npmjs.org/@arhen/pi-add-9router/-/pi-add-9router-1.0.0.tgz","fileCount":5,"integrity":"sha512-wppIGeHdtvhsPC0iCCu/vtoVjg9xMwPneMAxs4e1OisFPk51/8K/fW3zJSMVAqppFSmZQWa0rjs6FWma36aBmw==","signatures":[{"sig":"MEQCIEfH8dlPZVYw48MNAMiNkbGZjwI9N2ngGtwrKhbE/7y9AiAWTnd/h8wkjnHoDBJofzvvLeAsLi+7Cf9TlpUoLmz+hw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45446},"main":"./src/index.ts","type":"module","gitHead":"048ded8058e6f012f86316e6fdc2fc041a782d5b","_npmUser":{"name":"arhen","email":"itsme.arhen@gmail.com"},"repository":{"url":"git+https://github.com/arhen/pi-9router.git","type":"git"},"_npmVersion":"10.9.2","description":"Pi Coding Agent extension for 9router — provider registration and model discovery only, no web tools","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.0","@types/node":"^22.0.0"},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-add-9router_1.0.0_1786858732027_0.4672291043811312","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@arhen/pi-add-9router","version":"1.0.1","description":"Pi Coding Agent extension for 9router — provider registration and model discovery only, no web tools","keywords":["pi-package","pi-extension","9router","ai-router","openai-proxy"],"license":"MIT","author":{"name":"arhen","email":"arhen@users.noreply.github.com"},"repository":{"type":"git","url":"git+https://github.com/arhen/pi-extensions.git","directory":"packages/add/pi-add-9router"},"type":"module","main":"./src/index.ts","pi":{"extensions":["./src/index.ts"]},"peerDependencies":{"@earendil-works/pi-coding-agent":"*"},"devDependencies":{"@types/node":"^22.0.0","typescript":"^5.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@arhen/pi-add-9router@1.0.1","gitHead":"5cad6a5943bb5ca20a7774f4036ab5028822cc4d","bugs":{"url":"https://github.com/arhen/pi-extensions/issues"},"homepage":"https://github.com/arhen/pi-extensions#readme","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-AjZ4sSbxDZAN28/57G+7oHhwh1Bkh6o+TSHucWuaK//rw6Q9oNCMZPnoHSrHmpWAVrTGlKBybygSvktoGANjxA==","shasum":"1ec8812546b0c88100950dcffad20761d85acc94","tarball":"https://registry.npmjs.org/@arhen/pi-add-9router/-/pi-add-9router-1.0.1.tgz","fileCount":5,"unpackedSize":45626,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCZnQ6pZ0EEfMcGryhhSPrjuArV5fZNwDZ9fYCSX0tBzgIhALu+Ynh8ceGHjZbAfZgKBWv5RYC9/6VgSzDOjWORLlr7"}]},"_npmUser":{"name":"arhen","email":"itsme.arhen@gmail.com"},"directories":{},"maintainers":[{"name":"arhen","email":"itsme.arhen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-add-9router_1.0.1_1786950667739_0.4235211627052291"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-16T05:38:51.826Z","modified":"2026-08-17T07:11:08.042Z","1.0.0":"2026-08-16T05:38:52.159Z","1.0.1":"2026-08-17T07:11:07.896Z"},"bugs":{"url":"https://github.com/arhen/pi-extensions/issues"},"author":{"name":"arhen","email":"arhen@users.noreply.github.com"},"license":"MIT","homepage":"https://github.com/arhen/pi-extensions#readme","keywords":["pi-package","pi-extension","9router","ai-router","openai-proxy"],"repository":{"type":"git","url":"git+https://github.com/arhen/pi-extensions.git","directory":"packages/add/pi-add-9router"},"description":"Pi Coding Agent extension for 9router — provider registration and model discovery only, no web tools","maintainers":[{"name":"arhen","email":"itsme.arhen@gmail.com"}],"readme":"# pi-9router\n\n[![npm version](https://img.shields.io/npm/v/@arhen/pi-9router)](https://www.npmjs.com/package/@arhen/pi-9router)\n[![npm downloads](https://img.shields.io/npm/dm/@arhen/pi-9router)](https://www.npmjs.com/package/@arhen/pi-9router)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/arhen/pi-9router)](https://github.com/arhen/pi-9router)\n\n## Install\n\nRequires the [pi coding agent](https://github.com/earendil-works/pi) — install it first: `npm install -g @earendil-works/pi-coding-agent`.\n\n```sh\npi install npm:@arhen/pi-9router\n```\n\nPi Coding Agent extension for [9router](https://9router.example.com) — AI routing proxy.\n\nRegisters 9router as a Pi provider with dynamic model discovery. **Provider only, no web tools** — use [pi-web-access](https://github.com/nicobailon/pi-web-access) for web search/fetch.\n\n## Features\n\n- Auto-discovers models and combos from 9router `/v1/models` on startup\n- Registers `9router` provider with dynamic base URL + API key\n- Cached discovery (fast startup, credential-fingerprinted)\n- models.dev metadata enrichment (context window, max tokens, input modalities)\n- Reasoning support (`thinkingLevelMap` → `reasoning_effort`)\n- Commands: `/9router-status`, `/9router-models`, `/9router-config`, `/9router-reasoning`, `/9router-reload`\n\n## Environment\n\n| Variable | Default | Description |\n| --- | --- | --- |\n| `NINE_ROUTER_BASE_URL` | `http://localhost:20128` | 9router endpoint |\n| `NINE_ROUTER_API_KEY` | — | API key if 9router requires auth |\n| `NINE_ROUTER_ENABLE_REASONING` | — | `1`/`true` to expose thinking levels |\n\nConfig persists to `~/.pi/agent/9router-config.json` (shared across Pi instances).\n\n## Commands\n\n| Command | Purpose |\n| --- | --- |\n| `/9router-config` | Configure base URL, API key, reasoning |\n| `/9router-status` | Connection status, model counts |\n| `/9router-models` | Browse models/combos and switch |\n| `/9router-reasoning` | Toggle thinking levels |\n| `/9router-reload` | Re-discover models |\n\n## Why not pi-9router-ext?\n\n[pi-9router-ext](https://github.com/irfansofyana/pi-9router-ext) bundles the same provider **plus** web tools (`ninerouter_web_search`, `ninerouter_web_fetch`) and web-route discovery (~1.2K tokens extra in context). This package is the provider flow only — same config file format, same env vars, so they're drop-in interchangeable.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}