integrate-arcjet-guard-openai-agents

integrate-arcjet-guard-openai-agents is a skill for Claude Code, Codex from arcjet/arcjet-js. It costs 83 tokens per session (3,001 once invoked), scanned A, original, Apache-2.0.

A security integration for text agents built with the OpenAI Agents SDK. It checks authored tools with Arcjet and expects the application to screen incoming text before starting a run.

In plain words
What is it for?
Use it with text-based Agent and Runner workflows to guard tools and add prompt-injection or other inbound checks before run() is called.
Why use it?
It helps restrict tool calls and keep security decisions connected to the caller's existing session or conversation identifier. It clarifies which OpenAI Agents features this integration supports.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it with text-based Agent and Runner workflows to guard tools and add prompt-injection or other inbound checks before run() is called.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arcjet/arcjet-js --skill integrate-arcjet-guard-openai-agents
Clone the repo
git clone --depth 1 https://github.com/arcjet/arcjet-js

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for integrate-arcjet-guard-openai-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents/github.svg)](https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents)
Your own site
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for integrate-arcjet-guard-openai-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents"><img src="https://agentmods.dev/badge/skills/arcjet/arcjet-js/integrate-arcjet-guard-openai-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.03001
Opus 5.5 $0.00033 $0.01200
Sonnet 5.5 $0.00017 $0.00600
Haiku 4.5 $0.00008 $0.00300

Measured 6d ago against content hash 162b711f9f7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

integrate-arcjet-guard-openai-agents scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

arcjet-guard/skills/integrate-arcjet-guard-openai-agents/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Integrate Arcjet Guard into an OpenAI Agents app

@arcjet/guard's OpenAI Agents v0 namespace wraps the agent's existing Arcjet client. It never talks to the Arcjet API itself. Two surfaces, one decision rule:

  • An authored tool (tool({ execute })) → guardTool(). After tool() the object is a FunctionTool; the runner calls invoke. DENY returns a structured ArcjetDenialResult. Do not throw.
  • Correlation → openaiAgentsContext() reads a field the integrator put on runContext.context (then documented copies: conversationId, groupId, already-resolved sessionId). It never mints a new id. It never calls session.getSessionId().

This namespace is text Agent + run() / Runner. Not Realtime, not Sandbox, not hosted tools, not computer / shell / apply_patch, not MCP, not agent.asTool().

Screen inbound before run() (SDK inputGuardrails are not Arcjet)

There is no first-class inbound channel, so there is no guardInbound. Put prompt-injection (and other inbound rules) in the application before run(). SDK inputGuardrails / outputGuardrails / defineToolInputGuardrail / defineToolOutputGuardrail are the SDK's own tripwires, not this policy gate. Do not wrap them as Guard.

needsApproval is not a policy gate

needsApproval / requireApproval / onApproval is human-in-the-loop. The run pauses; result.state.approve / reject. Same trap as Mastra requireApproval, Claude canUseTool, LangGraph interrupt(), and Google ADK requireConfirmation, and Cloudflare Think needsApproval. There is no guardApproval. Do not wrap them as Guard.

tool() execute is the deny point; hosted, MCP, and handoffs are not

The runner executes authored function tools in toolExecution.ts via invoke. Hosted tools, handoffs, computer / shell / apply_patch, and MCP (mcpServers → mcpToFunctionTool) skip that authored-execute path. agent_tool_start / agent_tool_end are void observe-only hooks; they are not a deny. There is no guardHooks and no guardToolNode (there is no ToolNode).

Read the full file on GitHub · 257 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines 162b711f9f7a
  2. 10d ago Changed · +1 lines 1f925bd9b583
  3. 13d ago Changed · +2 lines 7a13adc6d8bf
  4. 1mo ago Changed c4549e0abf9e
  5. 1mo ago Changed · +1 lines b0bf68323adc
  6. 1mo ago Changed · +2 lines 8073810512d1
  7. 1mo ago Changed · +4 lines d399966c5757
  8. 1mo ago Changed 1356370c8af5
  9. 2mo ago Changed c0f1ef7c2271
  10. 2mo ago First seen · 246 lines · 83 tokens per session scan A 6fe015a9d10e

Subscribe to this mod's changes

integrate-arcjet-guard-openai-agents is a skill published in the GitHub repository arcjet/arcjet-js (704 stars, last pushed 2d ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,001 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

integrate-arcjet-guard-openai-agents compared with skills from other repositories

integrate-arcjet-guard-openai-agents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
integrate-arcjet-guard-openai-agentsarcjet/arcjet-jsSkill7042d agoApache-2.0A83Claude Code, Codex
clinical-trial-protocol-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA70Claude Code, Codex
claude-d3js-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA25Claude Code, Codex
adr-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA89Claude Code, Codex
linear-claude-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA15Claude Code, Codex
playwright-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA60Claude Code, Codex
terraform-skillAgent-Threat-Rule/agent-threat-rulesSkill445yesterdayMITA10Claude Code, Codex