Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd implements the cloak CLI.
|
Package cmd implements the cloak CLI. |
|
internal
|
|
|
claudecfg
Package claudecfg installs and removes cloak's entries in a Claude Code settings.json — an `env` block that hands the agent fake credentials and SessionStart/SessionEnd hooks that drive the proxy — without disturbing any other setting the user has.
|
Package claudecfg installs and removes cloak's entries in a Claude Code settings.json — an `env` block that hands the agent fake credentials and SessionStart/SessionEnd hooks that drive the proxy — without disturbing any other setting the user has. |
|
config
Package config holds the on-disk registry of upstreams.
|
Package config holds the on-disk registry of upstreams. |
|
connector
Package connector defines the interface protocol connectors implement.
|
Package connector defines the interface protocol connectors implement. |
|
connector/httpapi
Package httpapi brokers HTTP APIs: the agent calls a loopback base URL with a fake per-session key, and the real credential is injected into the configured header on the way out over verified TLS.
|
Package httpapi brokers HTTP APIs: the agent calls a loopback base URL with a fake per-session key, and the real credential is injected into the configured header on the way out over verified TLS. |
|
connector/postgres
Package postgres brokers PostgreSQL connections: it accepts the fake session credential from the agent, authenticates upstream with the real one, then splices bytes transparently for the rest of the session.
|
Package postgres brokers PostgreSQL connections: it accepts the fake session credential from the agent, authenticates upstream with the real one, then splices bytes transparently for the rest of the session. |
|
envimport
Package envimport scans .env files for credential-shaped values, imports the ones cloak can proxy, and rewrites the file so nothing sensitive is left for an agent to read.
|
Package envimport scans .env files for credential-shaped values, imports the ones cloak can proxy, and rewrites the file so nothing sensitive is left for an agent to read. |
|
native
Package native backs cloak's wrapper-free Claude Code integration: a stable per-machine fake token, a session-scoped background proxy (the daemon), and the session bookkeeping that starts it when a Claude session opens and stops it when the last one closes.
|
Package native backs cloak's wrapper-free Claude Code integration: a stable per-machine fake token, a session-scoped background proxy (the daemon), and the session bookkeeping that starts it when a Claude session opens and stops it when the last one closes. |
|
pgwire
Package pgwire is a minimal codec for the PostgreSQL v3 wire protocol — just the subset needed to broker a connection handshake.
|
Package pgwire is a minimal codec for the PostgreSQL v3 wire protocol — just the subset needed to broker a connection handshake. |
|
proxy
Package proxy binds the local listeners and dispatches accepted connections to protocol connectors.
|
Package proxy binds the local listeners and dispatches accepted connections to protocol connectors. |
|
secret
Package secret stores real credentials.
|
Package secret stores real credentials. |
|
token
Package token generates the fake per-session credentials handed to agents.
|
Package token generates the fake per-session credentials handed to agents. |
Click to show internal directories.
Click to hide internal directories.

