pi-libsecret
Load API keys with secret-tool
Package details
Install pi-libsecret from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-libsecret- Package
pi-libsecret- Version
0.1.3- Published
- Apr 7, 2026
- Downloads
- 461/mo · 14/wk
- Author
- arnarg
- License
- MIT
- Types
- extension
- Size
- 4.3 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-libsecret
pi-libsecret fetches API keys for all supported providers in pi from libsecret using secret-tool.
Installation
# From npm
pi install npm:pi-libsecret
# From Codeberg
pi install codeberg.org/arnarg/pi-libsecret
# For development
git clone https://codeberg.org/arnarg/pi-libsecret.git
pi -e ./pi-libsecret/index.ts
Usage
Store your API keys using secret-tool with attribute llm:
> secret-tool store --label='Minimax API Key' llm minimax
Password:
The following provider names will be checked:
anthropicazure-openai-responsesopenaigooglemistralgroqcerebrasxaiopenroutervercel-ai-gatewayzaiopencodeopencode-gohuggingfacekimi-codingminimaxminimax-cn
If
secret-toolis not found in PATH or a secret is not found the extension fails silently and does nothing.
License
MIT