How-tos

How-tos guides

Short, framework-specific recipes for Eve, Mastra, Claude Agent SDK, OpenAI Agents SDK, LangGraph JS, LangChain Python, and the Vercel AI SDK.

What these guides cover

These recipes put one Guard helper on one framework surface. They do not replace the framework overviews. Use them when the question is where the deny sits: Eve inbound and connection approval, Mastra processors and beforeToolCall, Claude UserPromptSubmit and PreToolUse, OpenAI Agents before run() and authored invoke, LangGraph JS before invoke and ToolNode, or LangChain Python and Vercel AI SDK authored tools.

Risks

  • Signature checks treated as content screens
  • Remote MCP tools with no local execute
  • Permission callbacks that the runtime can skip
  • Double-wrapping the same authored tool

Control priorities

  • Inbound screening on the channel or submitted prompt
  • Connection approval before Eve calls the host
  • beforeToolCall or PreToolUse for tools you did not wrap
  • One helper per surface so the guard is not double-called

Recommended reading order

Read the matching framework security guide in AI Security first. Then start with inbound screening, and the connection or unwrapped-tool recipe if the host call is the risk.

Guides in this collection