// AI Platform Drift

OpenAI Agents JS SDK 0.21.0 removes sandbox provider, changes usage accounting

OpenAI Agents JavaScript SDK releases · published 2026-10-21 22:48 UTC
ACTION NEEDED MIGRATE APIDEPRECATION
WHAT CHANGEDVersion 0.21.0 of @openai/agents-core removes the Runloop sandbox provider and its public API. Token usage detail values now require narrowing to numbers before arithmetic operations. Schema version bumped to 1.23. Added recognition for GPT-6 Astra, Sol, Luna, and GPT-6.1 Sol models.
WHY IT MATTERSCode calling the Runloop sandbox provider will break. Existing usage accounting code that performs arithmetic on usage detail values without type narrowing will fail at runtime.
WHAT TO DOCheck your codebase for imports or calls to the Runloop sandbox provider and consult the migration guide at the release URL for supported alternatives. Review usage accounting code and add type narrowing before performing arithmetic on usage detail values.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## @openai/agents-core@0.21.0
+https://github.com/openai/openai-agents-js/releases/tag/%40openai%2Fagents-core%400.21.0
+2026-10-20T22:07:20Z
+
+Minor Changes
+
+989513a: fix: Preserve bounded nested numeric token usage breakdowns across streamed runs, usage accounting, and saved run state (schema 1.23, with backward reads of earlier snapshots; #2082); usage detail values now require narrowing to numbers before arithmetic.
+7b05470: feat: Remove the Runloop sandbox provider and its public API; see the migration guide for supported alternatives.
+
+Patch Changes
+
+976579e: fix: recognize GPT-6 Astra, Sol, Luna, and GPT-6.1 Sol in sandbox dynamic compaction thresholds (#2068).
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningSandbox provider removal is a breaking change requiring migration; token usage schema change affects arithmetic operations.
signalsbreaking API change: sandbox provider removed · migration guide required · schema version bump (1.23) · new model recognition (GPT-6 variants) · token usage accounting change requiring code updates
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)