pi-hostinger-router

Hostinger Router provider for pi — live model catalog, vision and reasoning detection, USD cost tracking

Packages

Package details

extension

Install pi-hostinger-router from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-hostinger-router
Package
pi-hostinger-router
Version
1.0.4
Published
Nov 25, 2026
Downloads
547/mo · 443/wk
Author
algirdasc
License
MIT
Types
extension
Size
11.4 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

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

npm

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

  1. Grab an API key from your Hostinger Router dashboard.
  2. In pi, run /login hostinger-router and paste the key.
  3. Open /model and pick any hostinger-router model.

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 /responses models. Hostinger streams reasoning items without summary/encrypted_content; these are now dropped from the request (they can't be reused with store: false anyway). With debug on, a SANITIZE line records how many were dropped.