Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
On OpenClaw 2026.6.1, OpenAI OAuth-backed Realtime Talk reports configured and returns Realtime session metadata, but every media handshake to https://api.openai.com/v1/realtime/calls returns HTTP 500 when no OpenAI API key is configured.
Steps to reproduce
-
Run installed OpenClaw 2026.6.1 Gateway on loopback. In this repro the Gateway was already running at
ws://127.0.0.1:18789through the managed systemd user service. -
Confirm OpenAI Realtime Talk has no direct API key configured but reports configured through OAuth:
OPENCLAW_GATEWAY_URL=ws://127.0.0.1:18789 node scripts/audit-linux-talk-realtime-handshake.mjs --session main --json
-
Optionally run the relay repro against the same installed Gateway:
node scripts/audit-linux-talk-realtime-relay.mjs --url ws://127.0.0.1:18789 --session main --json
Expected behavior
Either OpenAI OAuth-backed Realtime Talk should complete the media handshake, or OpenClaw should not report OAuth/no-key OpenAI Realtime as configured/media-ready without a passing live /v1/realtime/calls audit.
Actual behavior
The Gateway reports OpenAI Realtime as configured and talk.client.create returns Realtime session metadata, but every tested SDP offer to https://api.openai.com/v1/realtime/calls returns HTTP 500 Internal Server Error.
The Gateway relay path also fails before ready. On installed 2026.6.1 that relay failure is surfaced to the audit as a close before ready with reason completed; the WebRTC audit below shows the underlying media handshake failure is HTTP 500.
OpenClaw version
OpenClaw 2026.6.1 (2e08f0f)
Operating system
Ubuntu 24.04.4 LTS
Install method
npm/global install with managed systemd user Gateway service.
Gateway status excerpt:
CLI: OpenClaw 2026.6.1 (2e08f0f)
Gateway service: systemd user, running
Gateway target: ws://127.0.0.1:18789
Node: v24.16.0
Model
gpt-realtime-2 and gpt-realtime
Provider / routing chain
OpenClaw Gateway Talk -> OpenAI Realtime provider -> OAuth-backed Realtime client secret/session metadata -> https://api.openai.com/v1/realtime/calls
Additional provider/model setup details
No direct OpenAI API key was configured for the tested Gateway Realtime path.
Observed audit fields:
{
"provider": "openai",
"mode": "realtime",
"transport": "webrtc",
"brain": "agent-consult",
"model": "gpt-realtime-2",
"voice": "cedar",
"hasConfiguredApiKey": false,
"hasOpenAIApiKeyEnv": false
}talk.catalog reported the provider as configured and browser-session capable:
{
"activeProvider": "openai",
"provider": "openai",
"configured": true,
"modes": ["realtime"],
"transports": ["webrtc", "gateway-relay"],
"brains": ["agent-consult"],
"supportsBrowserSession": true,
"supportsToolCalls": true
}Logs, screenshots, and evidence
Primary WebRTC audit result on installed OpenClaw 2026.6.1:
{
"runtimeVersion": "2026.6.1",
"sessionKey": "main",
"talkConfig": {
"provider": "openai",
"mode": "realtime",
"transport": "webrtc",
"brain": "agent-consult",
"model": "gpt-realtime-2",
"voice": "cedar",
"hasConfiguredApiKey": false
},
"talkCatalog": {
"activeProvider": "openai",
"provider": "openai",
"configured": true,
"modes": ["realtime"],
"transports": ["webrtc", "gateway-relay"],
"brains": ["agent-consult"],
"supportsBrowserSession": true,
"supportsToolCalls": true
},
"results": [
{
"requestedModel": "gpt-realtime-2",
"sessionModel": "gpt-realtime-2",
"provider": "openai",
"transport": "webrtc",
"offerUrl": "https://api.openai.com/v1/realtime/calls",
"iceMode": "immediate",
"status": 500,
"ok": false,
"body": "Internal Server Error"
},
{
"requestedModel": "gpt-realtime-2",
"sessionModel": "gpt-realtime-2",
"provider": "openai",
"transport": "webrtc",
"offerUrl": "https://api.openai.com/v1/realtime/calls",
"iceMode": "ice-complete",
"status": 500,
"ok": false,
"body": "Internal Server Error"
},
{
"requestedModel": "gpt-realtime",
"sessionModel": "gpt-realtime",
"provider": "openai",
"transport": "webrtc",
"offerUrl": "https://api.openai.com/v1/realtime/calls",
"iceMode": "immediate",
"status": 500,
"ok": false,
"body": "Internal Server Error"
},
{
"requestedModel": "gpt-realtime",
"sessionModel": "gpt-realtime",
"provider": "openai",
"transport": "webrtc",
"offerUrl": "https://api.openai.com/v1/realtime/calls",
"iceMode": "ice-complete",
"status": 500,
"ok": false,
"body": "Internal Server Error"
}
],
"diagnosis": {
"status": "blocked-upstream",
"summary": "Gateway can mint OpenAI OAuth-backed Realtime client sessions, but OpenAI rejects every media handshake with HTTP 500.",
"evidence": [
"talk.config has no configured OpenAI provider API key.",
"talk.catalog reports OpenAI Realtime configured with WebRTC support.",
"talk.client.create returned Realtime session metadata for every tested model.",
"Every tested browser SDP offer to /v1/realtime/calls returned HTTP 500."
]
}
}Secondary relay audit result on the same installed Gateway:
{
"runtimeVersion": "2026.6.1",
"hasOpenAIApiKeyEnv": false,
"talkConfig": {
"provider": "openai",
"mode": "realtime",
"transport": "webrtc",
"brain": "agent-consult",
"model": "gpt-realtime-2",
"voice": "cedar",
"hasConfiguredApiKey": false
},
"talkCatalog": {
"activeProvider": "openai",
"provider": "openai",
"configured": true,
"supportsBrowserSession": true,
"supportsToolCalls": true
},
"create": {
"provider": "openai",
"transport": "gateway-relay",
"mode": "realtime",
"brain": "agent-consult"
},
"ready": false,
"closeBeforeReadyReason": "completed",
"errorBeforeReadyMessage": null,
"diagnosis": {
"status": "blocked-upstream",
"summary": "Gateway relay can create a no-key OAuth-backed Realtime session, but the provider connection fails before relay ready."
}
}Diagnostics export was generated locally for the installed Gateway:
openclaw-diagnostics-2026-06-04T20-07-57-876Z-4051289.zip
I can attach it if useful after reviewing the redacted contents.
Impact and severity
Affected: OpenClaw Talk users trying to use OpenAI Realtime through OpenAI OAuth without configuring a standard OpenAI API key.
Severity: High for this workflow; it blocks live Realtime audio.
Frequency: 4/4 WebRTC media handshake attempts and 1/1 relay attempt in this repro.
Consequence: OAuth/no-key OpenAI Realtime Talk appears configured and can create sessions, but audio never becomes ready.
Additional information
Related but not exact duplicates found during local issue search:
- Docs/UX: Realtime Talk with OpenAI requires OpenAI Platform API credits, not Codex/ChatGPT subscription quota #76498 documented Realtime Talk Platform billing/API-credit confusion.
- docs(providers/openai): note OpenAI Realtime requires Platform credits, not Codex/ChatGPT subscription #77215 documented intended API-key/OAuth Realtime client-secret paths.
- refactor: unify OpenAI provider identity #88451 unified OpenAI provider identity under
openai.
Last known good / first known bad version: NOT_ENOUGH_INFO.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 4:17 PM ET / 20:17 UTC.
Summary
Keep open: current main still advertises and creates OpenAI OAuth-backed Realtime Talk sessions without proving the
/v1/realtime/callsmedia handshake works, and the related docs work only clarified Platform billing rather than resolving this HTTP 500 failure mode.Reproducibility: yes. for the OpenClaw readiness/reporting side: current source shows OAuth can mark OpenAI Realtime configured and create a WebRTC session without a media-handshake audit. No for the actual OpenAI HTTP 500, because this read-only review did not run a live OAuth Realtime call.
Next step
This is not a safe autonomous fix yet because it needs live OpenAI Realtime OAuth proof and a maintainer decision on the supported auth/readiness contract.
Review details
Best possible solution:
Keep the issue open until maintainers decide the supported OpenAI Realtime auth contract, then either prove OAuth-backed
/v1/realtime/callsworks in a live audit or gate/error the no-key OAuth path with clear user guidance and regression coverage.Do we have a high-confidence way to reproduce the issue?
Yes for the OpenClaw readiness/reporting side: current source shows OAuth can mark OpenAI Realtime configured and create a WebRTC session without a media-handshake audit. No for the actual OpenAI HTTP 500, because this read-only review did not run a live OAuth Realtime call.
Is this the best way to solve the issue?
Unclear; the current behavior is not enough to close because it can advertise and mint sessions for a path reported to fail. The best fix depends on whether maintainers want OAuth-backed Realtime to remain supported with live proof or fail closed toward a direct funded Platform API key.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
configuredor browser-session support for OAuth-backed Realtime could break any users whose OAuth organization can complete the media path, so the fix direction needs provider-contract review and live proof.Codex review notes: model gpt-5.5, reasoning high; reviewed against 0f73e0976994.
Label changes
Label changes:
P1: The report blocks a current installed-release OpenAI Realtime Talk workflow after OpenClaw says the provider is configured.impact:auth-provider: The failure depends on OpenAI OAuth versus direct Platform API-key routing for Realtime Talk credentials.issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.clawsweeper:needs-live-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.Label justifications:
P1: The report blocks a current installed-release OpenAI Realtime Talk workflow after OpenClaw says the provider is configured.impact:auth-provider: The failure depends on OpenAI OAuth versus direct Platform API-key routing for Realtime Talk credentials.Evidence reviewed
Acceptance criteria:
/v1/realtime/client_secretsplus/v1/realtime/callswith redacted output.extensions/openai/realtime-voice-provider.test.tsfor whichever auth/readiness contract maintainers choose.src/gateway/server-methods/talk.test.tsif catalog ortalk.client.createbehavior changes.What I checked:
hasOpenAIRealtimeBrowserAuthInputreturns true when anopenaiauth profile is configured for GPT realtime models, even without a direct API key. (extensions/openai/realtime-voice-provider.ts:393, 0f73e0976994)createOpenAIRealtimeBrowserSessionmints a Realtime client secret from the resolved auth value and returnsofferUrl: "https://api.openai.com/v1/realtime/calls"; there is no live SDP/audit gate before returning the session metadata. (extensions/openai/realtime-voice-provider.ts:1413, 0f73e0976994)talk.catalogreports each realtime provider'sconfiguredstatus fromprovider.isConfiguredandsupportsBrowserSessionfrom capabilities orcreateBrowserSession, matching the reporter's observed catalog output. (src/gateway/server-methods/talk.ts:254, 0f73e0976994)talk.client.createcallscreateBrowserSessionand responds with the provider session when the requested transport matches, so the Gateway can report success before the browser performs/v1/realtime/calls. (src/gateway/server-methods/talk-client.ts:128, 0f73e0976994)extensions/openai/realtime-voice-provider.test.ts:585, 0f73e0976994)openaiOAuth profile whose organization has Platform billing; that explains billing but does not prove the reported OAuth/no-key/v1/realtime/callsmedia path succeeds. Public docs:docs/providers/openai.md. (docs/providers/openai.md:111, 2e08f0f4221f)Likely related people:
extensions/openai/realtime-voice-provider.ts,src/gateway/server-methods/talk.ts)docs/providers/openai.md)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.joshavant commentedon Jun 9, 2026
Thanks @sergiopesch for the detailed 2026.6.1 repro and the clean audit output. That made the failure mode clear.
This is fixed by #91567, merged as
9fdd56d. The root issue was that OpenClaw treated anopenaiOAuth profile as sufficient to configure OpenAI Realtime voice. That lettalk.catalogreport OpenAI Realtime as configured and lettalk.client.createreturn browser WebRTC session metadata, but the actual OpenAI Realtime media leg at/v1/realtime/callsrequires OpenAI Platform API-key-backed credentials, so OAuth-only setups reached a doomed handshake.The fix changes OpenAI Realtime voice to require one of:
openaiAPI-key auth profile,talk.realtime.providers.openai.apiKey,plugins.entries.voice-call.config.realtime.providers.openai.apiKey,OPENAI_API_KEY.OpenAI OAuth profiles still work for Codex-backed
openai/*chat models, but they no longer configure Realtime voice. With an OAuth-only setup, OpenClaw now reports OpenAI Realtime as unconfigured and fails before returning a WebRTC session, instead of advertising a media-ready session that later fails at OpenAI.Validation included focused tests for the Realtime credential paths and an AWS Crabbox Gateway repro of the OAuth-only case:
talk.catalogreturnedconfigured=false,talk.client.createfailed withUNAVAILABLE, and no WebRTC session was returned.Closing as fixed. If anyone still sees OpenAI Realtime fail with a funded OpenAI Platform API key or
openaiAPI-key auth profile configured, please open a new issue with the updated Gateway logs and Talk config shape.