What Is AI Agent Runtime Security?
AI agent runtime security for unauthorized tool calls, prompt injection, sensitive data, automated abuse, action sequences, and production cost controls.
12 min readArcjet Learning Center
Learn how to secure production AI workflows, enforce agent actions, protect APIs, stop automated abuse, and control resource use inside your application.
128 guides10 topicsUpdated
Cornerstone guides that set the threat model and control baseline everything else builds on.
AI agent runtime security for unauthorized tool calls, prompt injection, sensitive data, automated abuse, action sequences, and production cost controls.
12 min readAPI security best practices for authentication, object authorization, input validation, webhooks, abuse controls, monitoring, and continuous testing.
13 min readScreen inbound HTTP and channel text, gate tools and MCP before the side effect, and treat observe-only hooks as a diary. Budgets, local PII, and prompt-injection checks sit on those same two boundaries.
4 min readToken bucket, leaky bucket, sliding window, or fixed window? This guide explains how each rate-limiting algorithm works and when to use it in your API.
20 min readIdentity, architecture, and runtime controls for agents that call tools, access data, and take actions.
Compare in-code, proxy, AI gateway, and security-agent controls by visibility, enforcement, context, latency, failure modes, and threat coverage.
17 min readAI agent on-behalf-of authorization: delegated identity, OAuth token exchange, actor claims, credential downscoping, runtime policy, and audit trails.
20 min readA five-layer defense stack: input screening, instruction and data separation, output validation, privilege limiting, and action gating. What each layer catches and what it misses.
14 min readShort, framework-specific recipes for Eve, Mastra, Claude Agent SDK, OpenAI Agents SDK, LangGraph JS, LangChain Python, and the Vercel AI SDK.
Screen inbound prompts on guardHooks({ inbound }) via UserPromptSubmit. A DENY returns { decision: "block" } and Claude Code erases the prompt.
3 min readSecure Eve MCP and OpenAPI connections with guardApproval() on the connection's approval field. There is no local execute to wrap.
4 min readMCP and unwrapped tools execute inside ToolNode. Graph hooks and HITL pauses cannot stop tool.invoke. guardToolNode is the gate. Wrap the node in place; a copy leaves the original unguarded.
5 min readApplication-layer guidance for securing APIs, stopping automated abuse, and controlling resource consumption.
API abuse explained: how bots automate valid operations for fraud, scraping, account takeover, and cost exhaustion, and how application controls stop them.
12 min readA production abuse checklist for Next.js, Remix, and Nuxt: bots, identity-aware rate limits, business-logic misuse, early rejection, monitoring, and in-handler controls.
6 min readRuntime application security enforces controls while the application runs, at the point untrusted input meets your code, with context that pre- and post-runtime tools do not have.
10 min readThe latest additions and most recently revised guides.
The complete library, organized by topic.
Security in your code
Arcjet brings bot detection, rate limiting, prompt-injection screening, PII detection, and attack protection into your application code, so the controls these guides describe run in the path of the request.