@sbr0nch/contextia
v1.2.0
Published
Contextia secret detection for the terminal.
Readme
@sbr0nch/contextia
Keep secrets out of AI, from the terminal. Built on
@sbr0nch/contextia-engine.
npm install -g @sbr0nch/contextiaCommands
contextia scan [files...] # scan files or stdin; exits 1 if any secret is found
contextia redact [files...] # print the input with secrets replaced by tokens
contextia proxy # local AI-DLP proxy (see below)
contextia run -- <cmd> # launch an AI agent with the proxy already wired in
contextia list # list detectors
contextia version
contextia helpGuard an agent in one step
No manual base-URL setup — run starts the proxy, points the agent at it, and
launches it:
contextia run -- claude
contextia run --mode block -- cursorScan (general secret scanning — git hooks, CI)
contextia scan .env src/
git diff | contextia scanProxy (AI-DLP: redact what your agent sends to the LLM)
Run a local proxy and point your AI agent's API base URL at it. The proxy scans each outgoing request and warns / redacts / blocks secrets before they leave the machine — the real key never reaches the provider.
contextia proxy --mode redact
ANTHROPIC_BASE_URL=http://localhost:8787 claude # or OPENAI_BASE_URL=…Live stats at http://localhost:8787/__contextia. Options: --mode warn|redact|block,
--port, --upstream, --all.
Everything runs locally; the only network call is forwarding the agent's own request to the LLM API it was already calling.
Update / uninstall
npm i -g @sbr0nch/contextia@latest # update
npm rm -g @sbr0nch/contextia # uninstall