AI agents & your secrets

Let an AI agent call your real APIs with your credentials, without Mitey ever giving it their values.

AI agents are good at working with APIs, and they need credentials to do it. Pasting a token into a chat or an .env file the agent can read hands it the key itself: it can use it anywhere, log it, or be tricked into sending it somewhere else.

With Mitey, agents use your credentials, but Mitey never gives them the values. The agent asks Mitey to run a request from your workspace. Mitey adds the secret, sends the request, and returns the response with every secret masked out. You decide which requests may do that, to which hosts, and you can watch every call.

How it works

  1. Your workspace is the agent’s permission boundary. The agent runs requests you saved in Mitey, through its MCP server. It can change variables such as an ID or a search term, but it can’t change where a request goes: not its host, and not the path or query around the value it fills in.
  2. Secrets stay in Mitey’s vault. The agent sees variable names, never values. A request that needs a secret goes out without it until you approve it.
  3. You approve once, Mitey enforces every time. Approving a request lets its secrets go to that request’s host, in the places it uses them, for that request exactly as it is. Edit the request, and it needs approving again.
  4. Responses are scrubbed. If a server echoes a secret back (in a header, a JSON body, base64-encoded, URL-encoded), the agent sees ***.
  5. Writes can wait for you. A POST, PUT, PATCH or DELETE can pop a dialog showing exactly what the agent wants to send, before anything happens.
  6. Logins stay private too. A login request can hide its response from agents, and save the token it returns straight into the vault for later requests.

Everything lands in the Agents tab under Activity, and the Agent access switch cuts every agent off at once.

Try it in five minutes

The example workspace has an AI Agents folder built for this. You need the mock API stack running (docker compose up -d in its mock-server/ folder) and an agent connected to Mitey (setup).

  1. Open the workspace in Mitey and select the Local environment.
  2. Ask your agent: “Run AI Agents/1 Log in and capture the token in Mitey.”
    • It’s a POST, so Mitey asks first: choose Always allow.
    • The agent gets only the response’s shape. The token isn’t saved yet: the request now waits under Agents → Secrets, showing what it would save. Approve it, and ask the agent to run it again. The token is now in your vault, as {{agentToken}}.
  3. Ask it to run 2 Use the token. It gets a 401 (no token yet). Approve it under Secrets, run again: 200. The agent never saw the token.
  4. Run 3 Echo the token back. The server reflects the token in its response; the agent sees ***.
  5. Run 4 Token in the query string. Approving this one asks for an extra confirmation, because query strings are often logged or echoed.
  6. Run 5 Delete something. Mitey asks before it runs.

Then open Activity to see each call, what was sent, and what was withheld.

What it protects against, and what it doesn’t

Mitey is built so an agent, even one steered by a malicious web page or API response, can’t read your secrets and can’t send them anywhere you didn’t approve. Approvals, bindings and settings live in Mitey’s app data, not in your workspace, so an agent that can edit workspace files can’t grant itself access. Editing an approved request only voids its approval.

Be clear about the limits:

  • An approved request can still be misused. If you approved DELETE /users/{{id}}, an agent can delete any user. That’s what the write prompt is for. Leave Writes → While Mitey is open on Ask me each time for anything that matters.
  • Masking echoed secrets is a safety net, not a guarantee. A server can always transform a secret in a way Mitey can’t recognise. The real protection is that a secret only ever goes to hosts you approved.
  • An agent with an unrestricted shell on your account could try to read Mitey’s app data or your keychain directly. If you’ve turned on Let the command line use your secrets, it can also run mitey run, which sends your secrets without any approval. That setting is off by default. For the strongest guarantee, run the agent sandboxed away from your user account (for example Claude Code’s sandbox, or a container).

Reference