OpenAI Agents API hosted sandbox: which Sume hosts to allow
OpenAI's Agents API is in public beta with hosted or connected sandboxes. Which Sume hosts to allow, how to pass the MCP URL, and why the key stays in a secret.

OpenAI's changelog for September 10, 2026 lists the Agents API in public beta with durable sessions, running in OpenAI-hosted sandboxes or in a sandbox you connect. If a sandbox restricts outbound traffic, a Sume workflow needs three hosts: api.sume.com, mcp.sume.com and media.sume.com. Keep the Sume API key in a secret, not in the prompt.
What OpenAI announced
The only OpenAI fact this post relies on is the changelog line: Agents API public beta, durable sessions, and a choice of hosted sandbox or your own. The docs read for this post do not describe sandbox network rules, so check OpenAI's pages for how outbound access is configured.
Hosts to allow
The addresses below come from Sume's docs.
| Host | Used for |
|---|---|
api.sume.com | REST API: jobs, videos, images, audio |
mcp.sume.com | Hosted MCP at https://mcp.sume.com/mcp, plus OAuth metadata and consent |
media.sume.com | Durable artifact and asset URLs that generation returns and inputs reference |
Connect Sume as a tool
If your agent runtime accepts a remote MCP server by URL, give it https://mcp.sume.com/mcp. For an unattended agent, use an API key sent as Authorization: Bearer <SUME_API_KEY> or x-api-key, because OAuth needs a person to approve consent in a browser. Sume's docs say an OAuth token is not an API key and should not be pasted into prompts.
Keep the key out of the prompt
Store the key in your platform's secret mechanism and inject it into the connection, not into the model's context. Safe logs hold request ids, job ids, high-level status and sanitized media metadata. Unsafe logs hold API keys, signed URLs and raw private media URLs. If a key shows up in a log or a transcript, rotate it.
Bound what the agent can spend
An API-key session sees write and paid tools, so set limits. Use dry_run=true or generation_admission_preview before the first paid submit, pass max_spend_usd to cap spend, and supply an idempotency_key on every paid call so a replayed step does not generate twice.
Sources
Related posts
More in Developers
- OpenAI Agents API sandbox: keep the Sume API key out of it
The OpenAI Agents API beta adds a sandbox and hosted-browser computer use. Where a Sume API key can live when an agent runs there, and what to hand it instead.
- OpenAI named no Videos API replacement: build it swappable
OpenAI's deprecation page names no successor to the Sora Videos API. Put video behind one interface, discover models from the catalog, and keep ids out of code.
- Mask file checklist for GPT Image 2.5: alpha, same size, under 50 MB
OpenAI says an edit mask must match the image in format and size, stay under 50 MB, and carry an alpha channel. Check your file before sending mask_url to Sume.
- OpenAI charges no per-call MCP fee, but Sume paid tools bill
OpenAI bills tokens for MCP tool imports and calls with no per-call fee. A Sume paid tool still spends credits, so preview and cap each call.
Written by Sume