@pi-lab/env

Global environment loader extension for pi coding agent

Package details

extension

Install @pi-lab/env from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@pi-lab/env
Package
@pi-lab/env
Version
0.1.1
Published
May 2, 2026
Downloads
114/mo · 13/wk
Author
cheny341
License
MIT
Types
extension
Size
3.5 KB
Dependencies
1 dependency · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./dist/index.mjs"
  ]
}

Security note

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

README

@pi-lab/env

Load global env vars for pi from ~/.pi/agent/.env.

Install

pi install npm:@pi-lab/env

Usage

Create:

~/.pi/agent/.env

Example:

HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
OPENAI_API_KEY=...
INTERNAL_TOKEN=...

Restart pi after editing the file.

Note

  • Does not override env vars already set before launching pi