packages / pi-openrouter-session
extension Session utilities

pi-openrouter-session

OpenRouter session tracking for pi - adds session_id to API requests for OpenRouter console visibility

No reviews yet

Install

$ pi install npm:pi-openrouter-session

Installs from npm into ~/.pi/agent/. Add -l for project-local (.pi/). Manage with pi list / pi update / pi remove.

What this package can reach

Detected automatically from the source at version 1.1.0. This describes access, not safety — you decide whether it's appropriate for what the package claims to do.

  • 📡
    LLM traffic — Sees raw model API traffic Reads or replaces provider requests, headers or responses — including your prompts.
  • UI — Draws its own interface Renders widgets, footers, dialogs or full-screen views.

What it actually did when run

observed

Loaded in a sandbox with no network, a read-only filesystem and a recording stand-in for pi's API. This is what it called — not what the source suggests it might.

Events subscribed before_provider_requestsession_start

APIs called getSessionNamegetSessionName.toLowerCasegetSessionName.toLowerCase.replacegetSessionName.toLowerCase.replace.replacegetSessionName.toLowerCase.replace.replace.slicesessionManager.getEntriessessionManager.getSessionFilesessionManager.getSessionFile.matchsessionManager.getSessionFile.match.1.splitsessionManager.getSessionFile.match.1.split.1.replacesessionManager.getSessionFile.match.1.split.1.replace.slice

8 calls the source scan did not predict

getSessionName.toLowerCase · getSessionName.toLowerCase.replace · getSessionName.toLowerCase.replace.replace · getSessionName.toLowerCase.replace.replace.slice · sessionManager.getSessionFile.match · sessionManager.getSessionFile.match.1.split · sessionManager.getSessionFile.match.1.split.1.replace · sessionManager.getSessionFile.match.1.split.1.replace.slice

Reached through a value the scan could not follow — passed as an argument, stored on another object, or returned by a helper.

Run against version 1.1.0 on 2026-08-02. Registration-time behaviour under default settings; other configurations may differ.

Review before you install. pi packages run with your full system permissions. Check the source, pin versions, and prefer authors you trust.

Reviews

0 published

Sign in with GitHub to write a review, reply, or vote.

No reviews yet — be the first.

More in Session utilities