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.
npx skills add coco-research/coco --skill openai-agentsgit clone --depth 1 https://github.com/coco-research/cocoWrote 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.
[](https://agentmods.dev/skills/coco-research/coco/openai-agents)<a href="https://agentmods.dev/skills/coco-research/coco/openai-agents"><img src="https://agentmods.dev/badge/skills/coco-research/coco/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.
<a href="https://agentmods.dev/skills/coco-research/coco/openai-agents"><img src="https://agentmods.dev/badge/skills/coco-research/coco/openai-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.03456 |
| Opus 5.5 | $0.00032 | $0.01382 |
| Sonnet 5.5 | $0.00016 | $0.00691 |
| Haiku 4.5 | $0.00008 | $0.00346 |
Grade A, and why
openai-agents scanned grade A with 1 finding 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 2mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
async fetch(request: Request, env: Env) { How it starts
The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenAI Agents SDK
Build AI applications with text agents, voice agents (realtime), multi-agent workflows, tools, guardrails, and human-in-the-loop patterns.
Quick Start
npm install @openai/agents zod@4 # v0.4.0+ requires Zod 4 (breaking change)
npm install @openai/agents-realtime # Voice agents
export OPENAI_API_KEY="your-key"
Breaking Change (v0.4.0): Zod 3 no longer supported. Upgrade to zod@4.
Runtimes: Node.js 22+, Deno, Bun, Cloudflare Workers (experimental)
Core Concepts
Agents: LLMs with instructions + tools
import { Agent } from '@openai/agents';
const agent = new Agent({ name: 'Assistant', tools: [myTool], model: 'gpt-5-mini' });
Tools: Functions with Zod schemas
import { tool } from '@openai/agents';
import { z } from 'zod';
const weatherTool = tool({
name: 'get_weather',
parameters: z.object({ city: z.string() }),
execute: async ({ city }) => `Weather in ${city}: sunny`,
});
Handoffs: Multi-agent delegation
const triageAgent = Agent.create({ handoffs: [specialist1, specialist2] });
Guardrails: Input/output validation
const agent = new Agent({ inputGuardrails: [detector], outputGuardrails: [filter] });
Structured Outputs: Type-safe responses
const agent = new Agent({ outputType: z.object({ sentiment: z.enum(['positive', 'negative']) }) });
Text Agents
Basic: const result = await run(agent, 'What is 2+2?')
Streaming:
const stream = await run(agent, 'Tell me a story', { stream: true });
for await (const event of stream) {
if (event.type === 'raw_model_stream_event') process.stdout.write(event.data?.choices?.[0]?.delta?.content || '');
}
Multi-Agent Handoffs
const billingAgent = new Agent({ name: 'Billing', handoffDescription: 'For billing questions', tools: [refundTool] });
const techAgent = new Agent({ name: 'Technical', handoffDescription: 'For tech issues', tools: [ticketTool] });
const triageAgent = Agent.create({ name: 'Triage', handoffs: [billingAgent, techAgent] });
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- LICENSE 1.1 KB
- references/agent-patterns.md 6.3 KB
- references/cloudflare-integration.md 7.2 KB
- references/common-errors.md 8.8 KB
- references/official-links.md 5.5 KB
- references/realtime-transports.md 6.0 KB
- rules/openai-agents.md 2.1 KB
- scripts/check-versions.sh 1.9 KB runs code
- templates/cloudflare-workers/worker-agent-hono.ts 5.3 KB runs code
- templates/cloudflare-workers/worker-text-agent.ts 5.0 KB runs code
- templates/nextjs/api-agent-route.ts 4.5 KB runs code
- templates/nextjs/api-realtime-route.ts 4.9 KB runs code
- templates/realtime-agents/realtime-agent-basic.ts 5.1 KB runs code
- templates/realtime-agents/realtime-handoffs.ts 6.3 KB runs code
- templates/realtime-agents/realtime-session-browser.tsx 9.5 KB
- templates/shared/error-handling.ts 4.3 KB runs code
- templates/shared/package.json 533 B
- templates/shared/tracing-setup.ts 3.9 KB runs code
- templates/text-agents/agent-basic.ts 1.6 KB runs code
- templates/text-agents/agent-guardrails-input.ts 6.1 KB runs code
- templates/text-agents/agent-guardrails-output.ts 6.0 KB runs code
- templates/text-agents/agent-handoffs.ts 3.8 KB runs code
- templates/text-agents/agent-human-approval.ts 6.4 KB runs code
- templates/text-agents/agent-parallel.ts 7.9 KB runs code
- templates/text-agents/agent-streaming.ts 4.9 KB runs code
- templates/text-agents/agent-structured-output.ts 4.8 KB runs code
- templates/wrangler.jsonc 778 B
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.
- 2mo ago First seen · 444 lines · 80 tokens per session scan A bd543879c6ab
openai-agents is a skill published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 80 tokens to every session and 3,456 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
openai-agents compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openai-agentscoco-research/coco | Skill | 323 | yesterday | Apache-2.0 | A | 80 | Claude Code |
| session-handoffwanshuiyin/HERO-Anti-OverDefense | Skill | 929 | 12d ago | MIT | A | 34 | Claude Code, Codex |
| proxmox-fullmarcusquinn/aidevops | Skill | 476 | today | MIT | A | 27 | Claude Code |
| a-philosophy-of-software-designciembor/agent-rules-books | Skill | 3.4k | 2mo ago | MIT | A | 33 | Claude Code, Codex |
| handoffChemaclass/agnostic-ai | Skill | 31 | today | MIT | A | 14 | Claude Code, Codex |
| template-autopoiesisdocxology/template | Skill | 25 | today | Apache-2.0 | A | 51 | Claude Code, Codex |
| template-publishdocxology/template | Skill | 25 | today | Apache-2.0 | A | 52 | Claude Code, Codex |