Skip to main content
You launch your agent through infisical secrets agent-proxy connect -- <agent command>, which sets up the agent’s environment and then starts it. No code changes are needed: connect points the agent’s HTTP clients at the Agent Proxy, so its normal outbound requests route through it. Each request carries the agent’s Infisical token and folder scope, which is how the Agent Proxy knows which identity is asking and which of that folder’s proxied services apply.

What connect sets in the agent’s environment

  • Proxy routing. HTTPS_PROXY and HTTP_PROXY point at the Agent Proxy. NO_PROXY always includes localhost,127.0.0.1; add more hosts with --no-proxy or an existing NO_PROXY.
  • Certificate trust. The standard trust variables point at the downloaded root CA so the agent’s HTTP clients accept the Agent Proxy’s certificates. See Certificates & TLS interception.
  • Placeholders. A dummy value for each secret-substitution service, so the agent has something to send.
  • Real values (opt-in). To give the agent a real secret directly, grant its identity Read Value on that secret; connect then injects the value into the agent’s environment, like any secret the identity can read. This is for values the agent uses in its own code; for credentials it sends to an external API, broker them instead. An agent with only the Proxy permission gets no real values, just the routing and placeholders above. Brokered credentials are never injected here; the Agent Proxy adds them to each outbound request itself, so they reach the destination but never the agent.

Connection behaviors

  • Both HTTPS and plain-HTTP services are brokered. HTTPS traffic arrives as CONNECT tunnels; plain http:// traffic arrives as regular forward-proxy requests (useful for internal services without TLS). An https:// URL sent as a plain forward-proxy request is rejected, so the Agent Proxy can never be used to downgrade TLS.
  • If the agent identity can already read a secret that one of its proxied services brokers, connect refuses to start: the agent would receive that value directly and bypass the Agent Proxy. Pass --allow-readable-brokered-secrets to override the guardrail.

Configuration

Every option resolves from the same sources, in order: the flag → an environment variable → .infisical.json → the built-in default. An explicitly-passed flag always wins. In a container or CI where the environment variables are already set, the flags fall away and only your agent command remains: infisical secrets agent-proxy connect -- claude.
The proxy address is the one setting that cannot come from .infisical.json. That file is usually committed to your repository, so a wrong or malicious value would silently route every agent’s traffic through the wrong host. Pass it with --proxy or INFISICAL_AGENT_PROXY_ADDRESS instead.
See the CLI reference for the full list, including --port, --unmatched-host, and --poll-interval on start.

Next steps

agent-proxy CLI reference

Every flag for start and connect, with examples.

Activity Logs

See what the Agent Proxy brokered on every request.