@pentect/pi
Pentect provider extension for Pi
Package details
Install @pentect/pi from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@pentect/pi- Package
@pentect/pi- Version
0.0.75- Published
- Sep 5, 2026
- Downloads
- 4,289/mo · 2,039/wk
- Author
- ame-x
- License
- MIT
- Types
- extension
- Size
- 8.1 KB
- Dependencies
- 1 dependency · 0 peers
Pi manifest JSON
{
"extensions": [
"extensions/pentect.js"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@pentect/pi
Use Pi with Pentect as a normal Pi extension. The extension starts Pentect's local gateway and registers one protected provider for the session.
pi install npm:@pentect/pi
pi --model pentect/gpt-5
To try it without installing:
pi -e npm:@pentect/pi --model pentect/gpt-5
Set PENTECT_PI_MODEL before Pi starts to expose a different model. Set
PENTECT_PI_API=responses for the OpenAI Responses API. OPENAI_BASE_URL and
OPENAI_API_KEY configure the upstream.
For a custom upstream whose model limits differ from the defaults, set
PENTECT_PI_CONTEXT_WINDOW, PENTECT_PI_MAX_TOKENS,
PENTECT_PI_INPUTS=text, or PENTECT_PI_REASONING=true|false. Invalid values
stop startup instead of advertising incorrect capabilities to Pi.
The JavaScript extension only manages Pi's provider lifecycle. Detection, handles, plugins, and network forwarding remain inside the Pentect binary.