How ayushdixit1-av/credcloak works
CredCloak is a local credential firewall for Claude Code. Its principal live workflow starts the CLI-managed proxy, cloaks secrets in outbound requests using a project-loaded vault, forwards allowed traffic upstream, and rehydrates response streams before they return to the child process. Separate CLI workflows audit and scrub historical transcripts, harden Claude settings, and report proxy activity. The graph preserves these distinct capabilities; proxy-to-stream and proxy-to-upstream details are documented, while unsampled implementation links are not inferred beyond the available references.
Main entry points: proxy.py Cloaking proxy · cli.py CLI commands · secrets.py Secret vault · audit.py Transcript audit
Components 14
CLI workflows
- CLI commands
credcloak/cli.py - Status reporting
credcloak/cli.py
Transcript protection
- Transcript audit
credcloak/audit.py - Transcript scrub
credcloak/audit.py - Settings hardening
credcloak/audit.py
Live proxy
- Cloaking proxy
credcloak/proxy.py - Stream rehydrator
credcloak/stream.py - Event log
credcloak/proxy.py
Secret handling
- Secret vault
credcloak/secrets.py
Other components
- Developer
- Claude Code child
- Anthropic API
- Claude transcripts
- Claude settings
Connections 21
- Developer → CLI commands: runs commands
README.md - CLI commands → Transcript audit: runs audit
credcloak/cli.py - CLI commands → Transcript scrub: runs scrub
credcloak/cli.py - CLI commands → Settings hardening: runs harden
credcloak/cli.py - CLI commands → Status reporting: runs status
credcloak/cli.py - Transcript audit → Secret vault: loads secrets
credcloak/audit.py - Transcript scrub → Secret vault: loads secrets
credcloak/audit.py - Transcript audit → Claude transcripts: scans
credcloak/audit.py - Transcript scrub → Claude transcripts: redacts
credcloak/audit.py - Settings hardening → Claude settings: updates rules
credcloak/audit.py - CLI commands → Secret vault: loads project secrets
credcloak/cli.py - CLI commands → Cloaking proxy: starts proxy
credcloak/cli.py - Claude Code child → Cloaking proxy: sends requests
README.md - Cloaking proxy → Secret vault: cloaks secrets
README.md - Cloaking proxy → Anthropic API: forwards requests
README.md - Anthropic API → Cloaking proxy: streams responses
README.md - Cloaking proxy → Stream rehydrator: rehydrates streams
README.md - Stream rehydrator → Secret vault: resolves tokens
credcloak/stream.py - Cloaking proxy → Event log: writes events
credcloak/proxy.py - Status reporting → Event log: reads events
credcloak/cli.py - Cloaking proxy → Claude Code child: returns restored stream
README.md