proxy_commands
proxy_commands
¶
Credential proxy CLI commands for terok-agent.
Wraps terok-sandbox proxy lifecycle with agent-level concerns: route
generation from the YAML roster is performed before start and
install so the proxy always has up-to-date provider config.
scan_leaked_credentials(mounts_base)
¶
Return (provider, host_path) for credential files found in shared mounts.
When the credential proxy is active, real secrets should only live in the proxy's sqlite DB — not in the shared config directories that get mounted into containers. This function checks each routed provider's mount for credential files that would leak real tokens alongside phantom ones.
Files injected by :func:~terok_agent.auth._write_claude_credentials_file
are recognised by their dummy accessToken marker and skipped.