Skip to content

Add ElevenLabs realtime agents support#16177

Closed
31Carlton7 wants to merge 4 commits into
mainfrom
codex/elevenlabs-realtime
Closed

Add ElevenLabs realtime agents support#16177
31Carlton7 wants to merge 4 commits into
mainfrom
codex/elevenlabs-realtime

Conversation

@31Carlton7

Copy link
Copy Markdown
Contributor

What changed

  • Added elevenLabs.experimental_realtime() for ElevenAgents WebSocket sessions.
  • Added signed URL client-secret creation for agent_id-based conversations.
  • Added ElevenAgents event mapping for text, audio, transcripts, tool calls, ping/pong, interruptions, and response completion.
  • Added ElevenLabs realtime session options for conversation overrides, dynamic variables, and custom LLM body fields.
  • Added provider docs and a changeset.

Why

ElevenLabs has realtime agent conversations, but its WebSocket protocol differs from the existing OpenAI/Google/xAI realtime protocol. This adapter normalizes ElevenAgents into the AI SDK realtime interface while preserving ElevenLabs-specific session overrides.

Validation

  • pnpm --filter @ai-sdk/elevenlabs type-check
  • pnpm --filter @ai-sdk/elevenlabs test:node
  • pnpm --filter @ai-sdk/elevenlabs test:edge
  • pnpm exec ultracite check on changed TypeScript files
  • git diff --check

Follow-up

AI Gateway wiring is intentionally separate. Gateway can reuse the new exported realtime model/mapper after this package is available, rather than duplicating the ElevenAgents protocol translation.

@31Carlton7 31Carlton7 force-pushed the codex/elevenlabs-realtime branch from 2415970 to 6853e59 Compare June 20, 2026 23:37
@31Carlton7 31Carlton7 changed the title [codex] Add ElevenLabs realtime agents support Add ElevenLabs realtime agents support Jun 20, 2026
@31Carlton7

Copy link
Copy Markdown
Contributor Author

Superseded by #16284 after moving the branch to carlton/elevenlabs-realtime.

@31Carlton7 31Carlton7 closed this Jun 20, 2026
@31Carlton7 31Carlton7 deleted the codex/elevenlabs-realtime branch June 20, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant