Vexveil

Your agent's only way out.

Vexveil sits between an AI agent and the internet. It decides which sites the agent may reach, signs every request it lets out with a key that belongs to that one agent, and can cut the agent off in seconds.

Run it in five minutes Read the code on GitHub

  1. POST api.anthropic.com/v1/messages write access Signature: sig1=:tE7q…VQ==:
  2. GET github.com/CDevmina/Vexveil read access Signature: sig1=:9VjY…oZ8=:
  3. POST gist.github.com/ gist.github.com is blocked
  4. POST paste.example.net/upload host not in policy
  5. GET 169.254.169.254/latest/meta-data tripwire 169.254.169.254: agent revoked Key withdrawn from the directory
  6. GET pypi.org/simple/requests/ agent revoked
One agent's requests, as the gateway's log records them. Everything that gets through is signed. The request to the cloud metadata address trips a wire, and the agent is cut off from then on.

How it works

Your agent runs in a container on a Docker network with no route to the internet. The proxy sits on that network and on a normal one, so it's the only way out. A DNS resolver answers only for allowed names, which also stops data leaking out inside DNS lookups.

Vexveil doesn't try to spot a hijacked agent at the prompt. It assumes an agent that reads a hostile README or web page will sometimes follow it, and makes sure that when it does, it can't send your data anywhere you didn't allow.

Where it may go
A policy file lists the sites the agent may reach, which paths it may write to, and which hosts are off limits. Every request is checked for keys and tokens with a known shape, including inside base64 and gzip.
Who sent it
Each request that leaves carries a Web Bot Auth signature (RFC 9421) made with that agent's own key. The agent never sees the key, so a hijacked agent can't take it with it.
Cutting it off
vexveil revoke blocks the agent on its next request and drops its keys from the published directory. Sites that check signatures stop trusting it within a minute, or at once if they take the revocation alert.
What happened
Every decision is a JSON line in a log the proxy signs as it writes. vexveil audit names the first line anyone edited, removed or reordered.

Think of it as DKIM for agents

A mail server signs mail for everyone at a company, so other servers can tell real mail from forged mail. Vexveil does the same for agent traffic. A site that receives a signed request can look up the key, see which agent sent it and who vouches for it, and refuse it once the key is revoked. It works with any signer that follows the IETF draft, not only Vexveil.

GET /notes HTTP/1.1
Host: demo.test
Signature-Agent: sig1="https://agents.example/.well-known/http-message-signatures-directory"
Signature-Input: sig1=("@authority" "signature-agent");created=1764763200;expires=1764763260;keyid="9VjYoZ…";tag="web-bot-auth"
Signature: sig1=:jdq0SqOwHdyHr9+r5jw3iYZH6aNGKijYp/EstF4RQTQdi5N5YYKrD+mCT1HA1nZDsi6nJKuHxUi/5Syp3rLWBA==:

Try it in five minutes

You need Docker and git. This starts an agent box with a small demo website next to it, and the site checks the signature the gateway put on the agent's request.

$ git clone https://github.com/CDevmina/Vexveil.git
$ cd Vexveil
$ export COMPOSE_FILE=compose.yaml:examples/quickstart/compose.yaml
$ docker compose up -d --build --wait
$ docker compose exec agent python /fetch.py http://demo.test/
200 Verified. Signed by key 9VjYoZ…, vouched for by https://agents.example/…

The quickstart guide goes on to a blocked request, the kill switch, the signed log and cleaning up. To put Claude Code in the box instead of the demo agent, see the README.

If you run a site

Check a signature by hand

The signature tester takes a signed request, from your bot or pasted in, and tells you whether the signature is valid and, if it isn't, which check failed and why.

Open the tester

Check every request

Wrap a Python app and each request says whether it came from a verified bot, and whose. For nginx, Caddy or Envoy there's a small sidecar.

from vexveil.middleware import WebBotAuthMiddleware

app.wsgi_app = WebBotAuthMiddleware(app.wsgi_app)
# request.environ["webbotauth"].verified, .keyid, .agent_url

Where it's at

Every milestone in the plan is built and tested: the wall, signing, the kill switch, the signature tester, leak checks, a local dashboard, the signed audit log and tripwires. It runs on one machine with Docker. Nobody outside the project has reviewed its security yet, so don't rely on it to protect anything that matters. If you'd like to be the first, get in touch.