BY HOOP.DEV / AGENT SECURITY

Your agent never
touches the real secret

A local proxy hands your agent a fake DSN, never the real credential.
The real one swaps in only on the way out, never in context or logs.

Runs LocallyZero Secrets in Context or LogsNo Infra Dependency
01

Cloak issues a fake local DSN

Instead of a real connection string, your agent gets a DSN or token pointing at localhost, the address of the local proxy.

cloak:a8f2c9e1@localhost:5433
02

Agent connects like normal

The agent dials localhost exactly like it would dial the real database or service. Cloak is the only thing listening there.

connect(DATABASE_URL)
03

Real credential swapped on egress

Cloak opens the actual connection to the destination and substitutes the real credential, transparently, never touching agent context or logs.

✓ swapped · prod-db:5432

Same query, one line of difference

Before
agent.log — without CloakEXPOSED
$ connecting to database...
DATABASE_URL=
postgres://admin:Xk29!zRq@prod-db:5432/app
$ query executed → 10 rows

The real password sits in plaintext, in every prompt, log line, and trace the agent produces.

After
agent.log — with CloakISOLATED
$ connecting to database...
DATABASE_URL=
postgres://cloak:a8f2c9e1@localhost:5433/app
$ query executed → 10 rows

Cloak swaps in the real password only on the way out. The agent, and everything it writes, never sees it.

No infrastructure dependency

Cloak runs alongside your agent process. No service to deploy, no infrastructure to stand up.

Zero secrets in context or logs

The real DSN and credential never enter the agent’s prompt, memory, or logs, only the local proxy ever holds them.

Isolation, not policy

Cloak keeps the credential out of the agent’s reach. It doesn’t enforce access rules or audit what runs, that’s a separate concern.

Need this enforced across your whole fleet, with policy and audit too?

hoop is the same credential-isolation proxy, running centrally, with access policy, data masking, and full audit logs across every agent and every protocol.