Python 88.3%
TypeScript 7.6%
Shell 4.1%
1// STATUS: LIVE_VERIFIED 2026-09-18 — POST /v1/agents then DELETE (free). Plain fetch, no SDK.2// Run: node --env-file=.env --experimental-strip-types examples/openai/agents/create_agent.ts3const H = { Authorization: `Bearer ${process.env.OPENAI_API_KEY}`, "OpenAI-Beta": "agents=v1", "Content-Type": "application/json" };4const base = process.env.OPENAI_BASE_URL ?? "https://api.openai.com";5const r = await fetch(`${base}/v1/agents`, { method: "POST", headers: H, body: JSON.stringify({6 name: "atlas-example", model: process.env.AGENTS_MODEL ?? "gpt-5.6-luna", instructions: "Reply with OK.", reasoning: { effort: "low" } }) });7const agent = await r.json(); console.log(r.status, agent.object, agent.id, agent.model);8if (r.status !== 201) process.exit(1);9const d = await fetch(`${base}/v1/agents/${agent.id}`, { method: "DELETE", headers: H });10console.log(d.status, await d.json()); // { id, object: 'agent.deleted', deleted: true }11