Repository navigation
research: Codex realtime voice on the ChatGPT plan (spike) - #55
Merged
Merged
Conversation
probe.mjs opens a Codex realtime session over WebRTC with a ChatGPT login. brain-probe.mjs checks that a Codex thread calls a dynamic tool with its shell disabled, and times the turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CodexLiveEngine runs one codex app-server per session. It starts an ephemeral brain thread (no shell, read-only sandbox, the companion's tools as dynamic tools) and a realtime v3 session over WebRTC with the iPhone's offer. Brain tool calls go to the core; the brain's final answer is spoken with appendSpeech. Voice draws from the ChatGPT plan quota of the Codex login, not from the OpenAI key. Spike only: main.ts picks it from an environment variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Follow-up ticket for the real engine: #56. |
This was referenced Oct 30, 2026
This was referenced Nov 2, 2026
thomaseude
marked this pull request as ready for review
November 16, 2026 13:47
thomaseude
added a commit
that referenced
this pull request
Nov 16, 2026
revert: keep the Codex voice spike (#55) on its research branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spike: can the companion use Codex's realtime voice, so that voice draws from the ChatGPT plan quota instead of the OpenAI API key? This branch is a spike. Do not merge it as is.
Context
thread/realtime/*API incodex app-server. Upstream PR feat(voice): add Codex voice conversations across clients pingdotgg/t3code#14865 uses it for T3's own voice mode.chatgpt.com/backend-api/codex/realtime/calls. The WebSocket transport requires an API key (core/src/realtime_conversation.rsin openai/codex).What the spike found (on the Linux VM, Codex 0.163)
thread/realtime/startover WebRTC work with a ChatGPT login?dynamicToolsonthread/start. Codex sends each call as anitem/tool/callrequest. No MCP server is needed.config.features.shell_tool = false. The thread said that no shell was available.gpt-6.1-terraatloweffort. About 12 s withgpt-5.6-solathigheffort.Changes
research/codex-voice/probe.mjsopens a realtime session with a hand-written SDP offer. It prints sizes and method names only.research/codex-voice/brain-probe.mjsruns one text turn on the Codex thread, answers the tool call and times the turn.companion/src/adapters/codex-live/holdsCodexLiveEngine, aVoiceEngineadapter:codex app-serverper session.read-onlysandbox, approval policynever, no shell, the companion's tools as dynamic tools.v3over WebRTC with the iPhone's offer, withclientManagedHandoffsand our instructions asprompt.thread/realtime/appendSpeechwhen the turn completes.main.tspicks this engine whenT3VOICE_ENGINE=codex. This switch is for the spike only.Test on the iPhone (2026-10-29)
Thomas ran the spike build as the
t3-voiceservice, withT3VOICE_ENGINE=codex, and talked to it from the iPhone app. The app did not change.~/.codex/logs_2.sqlite) shows the call at 21:33:09 tohttps://chatgpt.com/backend-api/codex/realtime/calls. No request went toapi.openai.comfor voice. The Codex login has no API key, and the service environment has noOPENAI_API_KEY.Not verified yet
brisevoice, so the spike uses Codex's default voice.Open questions before a real ticket
codexbinary and a ChatGPT login become requirements of the server.🤖 Generated with Claude Code