Bolt · Agent Gateway

Your coding agent can read every key in the repo.

Engineers run coding agents against real repos and real systems. Every prompt can carry keys, tokens, and customer data into a model you do not run, and once sent it cannot be taken back. Bolt's Agent Gateway masks those values on the device before the request leaves, then restores them locally so the work still runs.

Setup

One line, and the leak stops.

Install Bolt, turn on the Agent Gateway, and point Claude Code at the local relay. There is no account, no proxy to deploy, and nothing in front of your network.

export ANTHROPIC_BASE_URL=http://127.0.0.1:13020/bolt/<your-key>

The key is generated per install, so the exact line is in Bolt itself, under Settings, AI Models, Agent Gateway, with a Copy button beside it. Claude Code started from Bolt is routed for you; for a Claude Code you start yourself, run this line in the terminal you launch it from. The Gemini CLI takes GOOGLE_GEMINI_BASE_URL the same way. Codex is the exception: it is redirected by a line in ~/.codex/config.toml, which Connect Codex in the same screen writes for you, because the environment variable several published guides recommend is not read by the shipped Codex binary. We checked the binary rather than repeat the guides.

The key is what stops anything else on your machine from driving your relay and reading the restored, unmasked output. A request without it is refused, and the refusal tells you where to find the real one.

Why now

What does your agent do when a stranger writes the instructions?

An agent that reads public text and also holds private access can be steered by that text. In one researcher demonstration, a malicious issue in a public repository led an agent to copy details of private repositories into a public pull request.1 It was a demonstration, not a reported theft, and the researchers describe it as a property of giving one agent several data sources with no separation. The longer an agent runs with real keys in reach, the more a single bad instruction can cost.

The software between your people and a model is a target too. In 2026 the open-source LiteLLM AI gateway had malicious releases published to PyPI twice, on 24 March and on 21 October,23 and its proxy had a pre-authentication SQL injection in the API key check (CVE-2026-42208, fixed in 1.83.7).4 A gateway in the data path concentrates keys, so one compromise can reach all of them. LiteLLM is self-hosted open source software and Bolt does not depend on it. This is not a claim that Sparcle is immune: any software that updates can be compromised. The question is who decides which version of your gateway runs, and which keys it holds.

How it works

Masked out-bound. Restored in place.

The agent runs where it always did

Your engineers keep using Claude Code exactly as before. No new UI to learn, no workflow change.

Bolt sits on the wire, on the device

A local relay redirects the agent's traffic through Bolt before it reaches any vendor cloud, via config and environment.

Secrets and PII are masked out-bound

API keys, tokens, customer records, and structured PII are replaced with reversible placeholders before the request leaves the machine. The vendor model never sees the raw value.

Real values are restored locally

When the agent's tool calls come back to run on your machine, Bolt restores the true values in place. The work still works, but the leak never happened.

The other half

An endpoint your whole company can point at.

The relay above governs agent CLIs that will not accept a custom base URL. Everything else, IDE assistants, internal apps, scripts, and agent frameworks, can simply point at Bolt as their AI endpoint. Same masking, same tamper-evident audit trail in organization deployments, same policy, on infrastructure you own.

Your own AI endpoint, on your own server

bolt-api runs where you put it: a laptop in desktop mode, or your own VPC via Docker or Helm. Point any OpenAI-compatible client at it as the base URL. Nothing about the request reaches us, because there is no us in the path.

SSO instead of API keys

People sign in through your identity provider and receive a token. They never hold a provider API key, so there is no key to leak, share, or walk out of the building. Deprovision in your IdP and access stops.

The models their role permits

A list call returns exactly the models that person is allowed to use. The list and the permission are the same answer, produced by the same code, so they cannot drift apart. Ask for a model your role does not allow and you get a clear refusal naming the administrator who can grant it, never a silent switch to a different model.

Governed the same either way

Masking, the egress gate, restoration, and the audit record apply identically whether the response streams or arrives whole. Which encoding a client asks for is not a security boundary.

Scope we state plainly: the endpoint accepts messages, a model selection, and streaming. Function calling, sampling parameters such as temperature, multiple completions per request, and embeddings are not implemented yet. If your client depends on one of those, tell us and we will test against it before you commit to anything.

Why the client

Mask where the secret is: on the device, before it leaves.

It governs the coding-agent wire path

Bolt governs the third-party agent's own outbound traffic on the client, where the secrets actually are, not only traffic from your own apps.

Layered, not bypass-by-default

Environment and config redirect is the fast path, and managed policy can require the relay for supported agents.

No new place for your data to sit

The masking happens on the device. Bolt operates no cloud that receives your prompts, so the privacy control is not itself a new exfiltration path.

Fits how engineers already work

Bring your own coding agent. Bolt does not replace it; it makes it safer to point at sensitive repos and systems.

Where it is today

What is covered, and what is not.

Rechecked against the relay's own code on 20 October 2026: three vendor wire formats, and the gaps named rather than rounded up.

  • Claude CodeText, tool calls and images, buffered and streaming
  • Gemini CLI, API-key sign-inBuffered and streaming
  • CodexThe OpenAI Responses wire format, buffered and streaming, through the Connect Codex setting
  • Gemini CLI, Google sign-inBuffered and streaming
  • Other CLIsDevin and others are not supported yet
  • Blocking agent actionsThe Gateway governs what is sent to the model. It does not stop a coding agent from running a shell command, writing a file or pushing a commit
  • Documents and PDFsUnder a company policy, a file Bolt cannot mask is held, not sent. For personal use, text inside the file is not masked

Outbound is fail-closed for company-managed installs and the server relay. A content block this relay has not been taught is masked rather than forwarded, and an image it cannot screen is held back, not sent. On a personal desktop install, an image whose screening times out, fails after retries or cannot connect is still sent, with a notice that it went out unscreened; an unreadable or oversized one is held. Structured secrets and PII are masked out of the box; free-text name and entity detection is an optional model you enable per compliance profile; the on-device version is built for Apple Silicon Macs, elsewhere it is a scanner you deploy.

The return leg is best-effort. The model sometimes rewrites a masked value in a way we cannot reliably restore, for example inside a tool call it composes itself. The call then arrives without the real value. Nothing was exposed, because the model only ever saw the mask, but the call may not do what you expected.

One honest limitation we publish rather than hide: an unmanaged admin on their own machine can defeat any on-device control. The Gateway is strongest paired with managed policy: layers, not a single lock.

Sources

Where each claim comes from.

  1. Invariant Labs, GitHub MCP Exploited: Accessing private repositories via MCP, 26 May 2025. A researcher demonstration; no CVE.
  2. LiteLLM, Security Update: Suspected Supply Chain Incident, 24 March 2026. Versions 1.82.7 and 1.82.8 on PyPI carried a credential stealer.
  3. Microsoft Security Blog, Inside the LiteLLM 1.107.0 supply chain compromise, 23 October 2026. The release was published to PyPI and the official container images on 21 October 2026.
  4. LiteLLM, CVE-2026-42208: LiteLLM Proxy SQL injection, 29 April 2026. Affects 1.81.16 through 1.83.6; the post says the flaw could allow unintended database access, depending on deployment.
  5. Sparcle, Agent safety, Trust Center. How the relay masks and restores values.
  6. Sparcle, Threat model, Trust Center. What the Gateway protects against and what it does not, including the unmanaged-admin limit.
  7. Sparcle, Bolt changelog. Per-agent coverage, rechecked against the relay on 20 October 2026.

Every agent session without it is a session you cannot take back.

Bolt is free for individuals and needs no account. For a company rollout, ask for a demo and we will test against your agents first.