← Catalog

pi-lockbox

Give pi secrets without sending them to the model: a masked secret prompt, a paste guard, and output redaction

Extension

Install

Install with PiG

pig install npm:pi-lockbox

Install with Pi

pi install npm:pi-lockbox
Review before installing

Packages 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": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.

pi-lockbox

CI

Give pi your passwords and API keys without giving them to the model.

When pi needs a database URL or an API key, you type it into a locked box instead of the chat. The agent can still use it in its commands, but the model never sees it, and it stays out of your session history.

 🔒 Secret request
 Staging DATABASE_URL
 Needed to run prisma migrate deploy against staging.

 › ••••••••••••••••••••••••••••

 Enter save · Ctrl+R show · Esc decline

What you get

  • Ask instead of paste. When a task needs a credential, pi asks for it in a masked prompt.
  • A safety net for slips. Paste a key or a database URL into a message by mistake, and pi stops before sending it. One keypress locks it away, and the model gets a reference instead.
  • No leaks back. If a stored secret shows up in command output or a reply, the model sees [REDACTED: NAME].
  • Gone the next day. Secrets live in files only you can read, and are deleted after 24 hours.

Install

pi install npm:pi-lockbox

Restart pi or run /reload. There is nothing to configure.

Commands

CommandWhat it does
/secretsSee what's stored and when it expires
/secrets add NAMEStore a secret yourself
/secrets rm NAMEDelete one
/secrets clearDelete all

Good to know

pi-lockbox cuts down leaks but can't rule them out. The agent's commands can read a stored value, since that's how they use it. The paste guard catches common formats like database URLs, API keys, and private keys, but not every possible password. If a secret does reach the model, rotate it.

Read how it works for the details, the full list of limits, and how to develop it.

Inspired by the secret requests in T3 Code.

License

MIT