Check that Pentect can find your client.
shpentect doctorLaunch the client through Pentect.
shpentect codex # or pentect claudeWork normally.
Ask the agent to read a local configuration file or perform a task that requires a credential. Protected values appear to the model as handles such as
<<DATABASE_URL_4ce8a3b0a6f64e12>>.Watch local protection events when needed.
shpentect log
Launch through Pentect by default
Add these functions to your shell profile, then restart the terminal. Existing Codex and Claude arguments continue to work normally.
function codex { & pentect codex @args }
function claude { & pentect claude @args }codex() { command pentect codex "$@"; }
claude() { command pentect claude "$@"; }function codex
command pentect codex $argv
end
function claude
command pentect claude $argv
endAfter that, launch either client as usual:
codex exec --full-auto
claude --model sonnetTry masking without an agent
cat .env | pentect mask
cat terraform.tfvars | pentect maskPowerShell:
Get-Content .env -Raw | pentect maskThe output contains reusable handles. Plaintext is not printed back to the terminal.
TIP
These functions affect only that shell. Pentect protects each client process launched through them; it does not create a system-wide proxy.

