Install
Install with PiG
pig install npm:pi-hostinger-routerInstall with Pi
pi install npm:pi-hostinger-routerPackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./extensions"
]
}README
Written by the package's publisher, shown as published in version 1.0.4 (README.md). PiG does not review it.
pi-hostinger-router
Use Hostinger Router with pi — one provider, the full chat model catalog (~150 models: Claude, GPT, Gemini, Grok, Kimi, DeepSeek, …).
- Always up to date — the model list is fetched live on session start and every time you open the model selector
- Vision & reasoning aware — detected automatically for each model
- Cost tracking — pi's footer shows cost in
$(1$ = 100 credits on your Hostinger dashboard) - Instant startup — the catalog is cached locally at
~/.pi/agent/hostinger-router-models.json
Install
The package is published on npm as pi-hostinger-router. Install it with pi:
pi install npm:pi-hostinger-router
Pin a specific version:
pi install npm:pi-hostinger-router@1.0.1
Try it for a single session without installing:
pi -e npm:pi-hostinger-router
To update later, run pi update npm:pi-hostinger-router. To remove it, run pi remove npm:pi-hostinger-router.
Setup
- Grab an API key from your Hostinger Router dashboard.
- In pi, run
/login hostinger-routerand paste the key. - Open
/modeland pick anyhostinger-routermodel.
That's it — the key is stored in ~/.pi/agent/auth.json.
Headless / automation
For scripts and CI where /login isn't available, set the key as an environment variable instead:
export HOSTINGER_ROUTER_API_KEY=sk-hstgr-...
Debugging
If a request fails (e.g. 400 Invalid JSON body), turn on debug logging:
/hostinger-debug on # or: off, status; no arg toggles
Or start pi with HOSTINGER_ROUTER_DEBUG=1. Each request payload, response status/headers and error message for hostinger-router models is appended to ~/.pi/agent/hostinger-router-debug.log. Requests containing broken unicode (lone UTF-16 surrogates — a common cause of Invalid JSON body) are flagged with the exact JSON path.
The log contains your full prompts — delete it when done.
Changelog
- 1.0.4 — Fix
400 Missing required parameter: 'input[N].summary'on the second turn with/responsesmodels. Hostinger streams reasoning items withoutsummary/encrypted_content; these are now dropped from the request (they can't be reused withstore: falseanyway). With debug on, aSANITIZEline records how many were dropped.