Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

pi-psst

A pi extension for psst — automatic secret injection and scrubbing for AI agents.

What it does

  • Injects psst vault secrets as environment variables into every bash command
  • Scrubs secret values from all tool output — bash, read, grep, everything the LLM sees
  • Tells the LLM which secrets are available via the system prompt
  • Never exposes secret values to the agent's context
You: "deploy using the stripe key"

Agent runs: curl -H "Authorization: Bearer $STRIPE_KEY" https://api.stripe.com
Agent sees: HTTP 200 OK, Authorization: Bearer [REDACTED:STRIPE_KEY]

Install

# Requires psst-cli npm install -g psst-cli # Install the extension pi install npm:@miclivs/pi-psst # or pi install git:github.com/Michaelliv/pi-psst

Setup

# Create a vault and add secrets psst init psst set STRIPE_KEY psst set DATABASE_URL # Start pi — secrets are automatically available pi

Commands

CommandDescription
/psstList loaded secret names
/psst-set NAME [value]Add or update a secret

How it works

  1. On each bash call, the extension reads secrets from the local psst vault via the SDK
  2. Secrets are injected into the subprocess environment via spawnHook
  3. After any tool completes, tool_result scrubs secret values from the output
  4. before_agent_start adds secret names to the system prompt so the LLM knows to use $SECRET_NAME

The agent orchestrates. psst handles the secrets. The values never touch the context window.

License

MIT

关于 About

No description, website, or topics provided.

语言 Languages

TypeScript100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
5
Total Commits
峰值: 4次/周
Less
More

核心贡献者 Contributors