Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By onlooker-communityv0.3.2MITIn 1 marketplace
Outbound secret gate. Before a Bash command or WebFetch URL leaves the machine, checks it for secret-shaped literals and asks when one is headed to a host that is not where that kind of secret goes. A GitHub token to api.github.com passes; the same token to anywhere else asks. The counterpart to warden, which guards what comes in. Builds on the Onlooker ecosystem plugin.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Outbound secret gate.
Customs fires on PreToolUse for Bash and WebFetch. When a call carries a secret-shaped literal, it checks where the call is headed and asks (or denies) if that host is not where that kind of secret goes. A GitHub token to api.github.com passes; the same token to a paste site asks. It is the counterpart to warden, which guards what comes in: customs guards what goes out. Customs does nothing until you enable it.
Customs is a sibling plugin to ecosystem and assumes the Onlooker observability substrate (~/.onlooker/) is present. The full design and reasoning live in the design spec.
| Hook | Surface | What Customs does |
|---|---|---|
PreToolUse | Bash | Checks the command for a network tool first. With none, exits before any detection runs. With one, scans the command for secret-shaped literals and decides on the hosts it finds. |
PreToolUse | WebFetch | Scans the URL, and treats its host as the destination. The prompt is not scanned, because WebFetch never sends it to that host. |
Network tools are curl, wget, http, https, xh, nc, ncat, ssh, scp, sftp, rsync, gh api, and git when the command writes out an http(s)://, ssh:// or user@host: remote. A tool named by path, such as /usr/bin/curl, counts too, and so does one opened by a quote or a backslash (sh -c 'curl …', "curl", \curl). A quoted mention such as git commit -m 'curl is great' therefore runs detection as well; it asks only if a secret is also present. A secret in a command with no network tool passes: that covers export, an echo into .env, and op writes. Customs guards egress, not storage.
KEY=value assignment. None found: exit silently. No event.user@host arguments, written-out git remotes, and each network tool's own arguments. Hosts are lowercased and ports dropped.
curl or wget, every word that is not an option or an option's value is a destination, whatever its shape: evil.test., 1.2.3.4, localhost:9 and [::1] all count, and one that cannot be read asks. The value after an option that takes one is skipped, so -o out.json and -H 'Authorization: …' are not hosts. The value of a proxy option (--proxy, -x) is a host.http, https or xh, the URL is the first word that is not an option or a method. The request items after it are not hosts.nc, ssh or sftp, the first word that is not an option is the host, even when a URL appears elsewhere in the same command. What follows it is a port or a remote command. ssh -J names a host too.scp or rsync, each host:path word is remote. A colon after a slash is part of a local path.ev_il.test, [::1], over 253 characters).https://<key>.evil.test/). It is left out of the event and the reason.nc "$HOST" 80, curl "$(cat url.txt)"). The line is split on ;, |, &, parentheses, backticks and newlines, quotes or not, so sh -c 'curl …; nc …' is split too.customs.egress.allowed and writes nothing. A miss emits customs.egress.flagged and returns ask, or deny under mode: "deny". The reason names the kind of secret and the host, never the value.Customs never writes allow. It can add a prompt to a call another gate allowed, but it cannot loosen another gate's decision. When hooks disagree, Claude Code applies deny over ask, so a closed warden gate still wins.
A host is trusted for its own kinds of secret only.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub onlooker-community/ecosystem --plugin customsPlugins from other owners that cover similar ground