Install
Install with PiG
pig install npm:pi-doormanInstall with Pi
pi install npm:pi-doormanPackages 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/doorman.ts"
]
}README
Written by the package's publisher, shown as published in version 0.1.0 (README.md). PiG does not review it.
pi-doorman
An agent that carries API keys in its environment will leak them: into a command line you can see in the transcript, into a log file, into a pull request body. The only key an agent cannot leak is one it never has.
doorman is a local HTTP proxy that holds credentials. The agent refers to a credential by name; the proxy attaches the real key on its way to the one host and method the credential is scoped to. The agent never sees the key, and a 403 tells it plainly when a request falls outside that scope.
pi-doorman is the pi-side companion. It does two things, and both matter:
- It registers the doorman MCP server, giving the agent
doorman_credentials(list credential names with their allowed hosts and methods) anddoorman_request(call a keyed service through the proxy, correctly, in one tool call). - It appends a short section to the system prompt with the usage rules that make the tools
reliable: reach keyed services through the named credential, never set an Authorization header
yourself, use
http://through the proxy, and read a 403 as the allowlist doing its job.
The second half is not decoration. A tool a model has never been told about is a tool it uses
inconsistently: it will try the bare curl, get a 407, retry with the key pasted into the URL,
and undo the whole design in one chain of reasonable moves. The guidance is what makes the
consistency boring. It also says what doorman is not — a network filter. Unkeyed traffic takes
the normal path; the proxy exists to scope keys, not to police the internet.
The security property lives in doorman, not in pi. An agent that ignores every word of the guidance still cannot extract a key it was never given; that is the point of the split, and the reason this companion ships guidance and zero secrets.
Setup
You need doorman itself (kmatzen/doorman); this extension is the agent-side half. It locates the doorman MCP server in this order:
- the
DOORMAN_MCPenvironment variable, mcp/doorman-mcp.mjsnext to the installed package,~/git/doorman/share/mcp/doorman-mcp.mjs.
DOORMAN_PROXY is passed through if set, for a proxy on a non-default address.
Install
pi install npm:pi-doorman
TypeScript source loaded by pi directly; @earendil-works/pi-coding-agent is a peer dependency
and never bundled.
License
MIT