Documentation

AgentX is a runtime firewall for AI agents. It blocks catastrophic tool calls (DROP TABLE, secret exfiltration, SSRF) before they execute, then coaches the agent to a safe path so the run finishes. Pick your path below and start keyless in 30 seconds.

01Get started

Pick your language. Each path shows only its own steps, numbered in the order you take them.

This path is for a TypeScript tool your code calls directly, a Vercel AI SDK or LangChain.js tool() that is not behind an MCP server. If your agent reaches its tools through MCP servers instead, the keyless agentx-mcp proxy protects those today with no code change and no key: switch to the MCP tab above.

TypeScriptRun · no install

See your risk surface first. Lists every tool your agent can call, ranked by risk, and which are unguarded. Works on Vercel AI SDK and LangChain.js.

npx @agentx-core/scan .

Then bring what it finds to us: the in-process guard runs against the gateway, and we wire it up with you.

Would you rather install a TypeScript guard yourself, with no key and no call with us?

02See it work

Watch a dangerous tool call get stopped, coached to a safe path, and the run finish. This is the same gateway check your guarded tools make on every call. Nothing to install, no key to get.

Open the playground

03Scan → Recover → Control

ScanFree · Local · Read only

Lists every tool your agent can call, ranked by risk, and flags the ones nothing is guarding. Works on Vercel AI SDK and LangChain.js. It reads your code and reports: nothing is blocked at this rung, so treat it as the map, not the guard.

see + rank

RecoverGateway + Gemini key

The gateway judge catches what keyword rules can't see, writes the safe path when your policy carries none, and runs the coach-and-retry for you, so your agent finishes the task instead of dying on a 403. Needs the gateway and your own Gemini key.

guide + continue

Get the gateway
Control+ Team

Connect the cloud control plane for team human-in-the-loop and SOC approvals, shared dashboards, and a fleet-wide audit trail. Central oversight for when one machine isn't the whole story.

review + govern

Request Access

Recover and Control run through the gateway. Scan maps what is unguarded; enforcement starts at Recover, where the in-process guard checks each call with the gateway and the judge catches what keyword rules miss.

04Run the gateway

The gateway adds the full deterministic floor (AST parsing, the SSRF normalizer, the whole failure catalog), coached recovery, and team review and approval before a risky action runs.

docker compose up -d   # the full floor + Recover run here

Stand it up now. Traffic starts flowing through it once we wire your guard, which is the next step.

It is free and runs locally: get it self-serve. Questions or something broke? Join the Discord.

The gatewayFree · self-serve

Where your guarded TypeScript tools send every call. The full deterministic floor (AST parsing, the SSRF normalizer, the whole failure catalog), coached recovery that finishes the run, and team review before a risky action runs.

The floor runs with no key at all. Your own Gemini key turns on Recover, which writes the safe path and runs the retry for you.

05Turn it on in your code

An in-process guard wraps each tool and checks the call against the gateway before it runs, so a blocked action never executes and your agent gets the same coaching to recover that the Python decorator delivers. The guard needs a gateway key, so we wire it up with you rather than hand you a copy-paste snippet. Say hello in our Discord and we will get you set up.