Best for · AI tools

ElevenLabs React Native SDK: how to add a voice agent to your app, step by step

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • The ElevenLabs React Native SDK is the npm package @elevenlabs/react-native (version 1.3.1, MIT licence, updated 2 December 2026).

Compared here

  • 01@elevenlabs/react-native
  • 02@elevenlabs/react
  • 03ElevenLabs Agents

Short answer

The ElevenLabs React Native SDK is the npm package @elevenlabs/react-native (version 1.3.1, MIT licence, updated 2 December 2026). It lets a React Native app hold a live voice conversation with an ElevenLabs agent. Install it with its LiveKit dependencies: npm install @elevenlabs/react-native @livekit/react-native @livekit/react-native-webrtc livekit-client. Wrap your app in ConversationProvider, then call startSession({ agentId }) from the useConversation or useConversationControls hook. The API is the same as the web React SDK, which ElevenLabs points to as the full reference.

Three things trip people up, all from ElevenLabs' docs: it does not work in Expo Go, only in Expo development builds, because it depends on LiveKit's WebRTC; on React Native older than 0.79 you must enable package exports in Metro; and for private agents you must fetch a conversation token from your own server, never ship your API key in the app. Agent minutes are billed by ElevenLabs; its API pricing page lists $0.08 a minute. Full setup below.

At a glance

From ElevenLabs' React Native SDK and React SDK docs, the npm registry entry for @elevenlabs/react-native, and the ElevenLabs API pricing page, read 4 December 2026.
ItemWhat the official source says
Package@elevenlabs/react-native, version 1.3.1, MIT licence
Depends on@elevenlabs/react 1.25.0 and @elevenlabs/client 1.39.0
Peer dependenciesreact 17+, react-native 0.70+, @livekit/react-native ^2.12.0, @livekit/react-native-webrtc ^144.1.2
Installnpm install @elevenlabs/react-native @livekit/react-native @livekit/react-native-webrtc livekit-client
ExpoBuilt for Expo, but development builds only; not Expo Go
React Native version0.79.0+, or Metro set to resolve package exports on older versions
PermissionsMicrophone permission configured per platform
APISame as the web React SDK: ConversationProvider and hooks re-exported
ConnectionVoice uses WebRTC by default; text-only uses WebSocket
Private agentsServer fetches a conversation token (WebRTC) or signed URL (WebSocket) with your API key
Agent pricing (API page)$0.08 a minute list price; $0.16 above your concurrency limit

Money first. ElevenLabs pays affiliates 22% for 12 months, so the ElevenLabs link on this page may earn us money if you sign up. The SDK itself is free and MIT licensed; you pay ElevenLabs for agent minutes. We did not ship an app with this SDK for this page. Every command, requirement and code pattern below comes from ElevenLabs' own documentation and the npm registry, read on 4 December 2026. SDKs change fast, so check the version you install against the docs.

Here is the plain version. The SDK turns your React Native app into a phone line to an AI agent you set up in ElevenLabs: the user taps a button, talks, and the agent answers out loud. The hard parts (voice streaming, turn-taking, speech) live on ElevenLabs' side. Your job is mostly plumbing: install it properly, wire up a provider and a button, and keep your API key off the phone.

What the SDK is (and is not)

  • It is a React Native wrapper for ElevenLabs Agents: real-time voice (or text) conversations with an agent you configure in the ElevenLabs dashboard (voice, prompt, knowledge, tools).
  • It is not a plain text-to-speech library. If you only want to turn a sentence into an MP3, call the ElevenLabs text-to-speech API from your server instead.
  • Under the hood: ElevenLabs' docs say @elevenlabs/react-native "re-exports ConversationProvider and all hooks from @elevenlabs/react. The API is identical to the web React SDK." The npm entry shows it depends on @elevenlabs/react 1.25.0 and @elevenlabs/client 1.39.0, and uses LiveKit for WebRTC audio.

Requirements

From the React Native SDK docs:

  • React Native with LiveKit dependencies.
  • Microphone permissions configured for each platform.
  • Expo: supported, but development builds only.
  • React Native 0.79.0 or newer, or Metro configured to resolve package exports on older versions.

And from npm, the peer dependencies: react 17+, react-native 0.70+, @livekit/react-native ^2.12.0 and @livekit/react-native-webrtc ^144.1.2.

Step 1: install

npm install @elevenlabs/react-native @livekit/react-native @livekit/react-native-webrtc livekit-client

ElevenLabs links an Expo example app in its elevenlabs/packages GitHub repository. Cloning that and running it first is the fastest way to see a working setup before touching your own app.

Step 2: the two traps before you write any code

Trap 1: Expo Go will not work

ElevenLabs' warning: the SDK "was designed and built for use with the Expo framework. Due to its dependency on LiveKit's WebRTC implementation, it requires development builds and cannot be used with Expo Go." Expo Go only includes a fixed set of native modules, and LiveKit's WebRTC is not one of them. Make a development build and test there.

Trap 2: Metro and package exports

The package resolves its React Native entry point through the "exports" field in package.json. ElevenLabs says Metro only resolves "exports" by default from Metro 0.82.0, which shipped with React Native 0.79.0 on 8 April 2025. On older versions, add this to metro.config.js:

config.resolver.unstable_enablePackageExports = true;

Skip that and you get "unable to resolve module" errors that look like a broken install.

Step 3: wrap your app in ConversationProvider

import { ConversationProvider } from "@elevenlabs/react-native";

function App() {
  return (
    <ConversationProvider>
      <YourAppComponents />
    </ConversationProvider>
  );
}

The React SDK docs add that the provider accepts the same options as useConversation (callbacks, client tools, overrides, server location), so you can configure them once at the top.

Step 4: start and end a conversation

The docs' minimal example uses two hooks:

const { startSession, endSession } = useConversationControls();
const { status } = useConversationStatus();

await startSession({ agentId: "your-agent-id" });

Show status on screen, and switch the button between start and end when the status is connected. For a public agent (one without authentication enabled), the agent ID is all you need. The docs also recommend passing your own userId so conversations map to your users.

The hooks you get

From the React Native docs, all re-exported from the React SDK:

HookWhat it gives you
useConversationEverything in one: state and methods
useConversationControlsstartSession, endSession and other actions
useConversationStatusConnection status
useConversationInputMute state
useConversationModeWhether the agent is speaking or listening
useConversationFeedbackWhether feedback can be sent, and sending it
useConversationClientToolRegister client tools dynamically
useRawConversationThe raw conversation instance

useConversation also takes callbacks such as onConnect, onDisconnect, onMessage and onError, which is where you update your UI and log problems.

Step 5: secure private agents with a token

Public agents are fine for demos. For anything real, turn on authentication for the agent and never put your API key in the app. The React SDK docs show the pattern:

  1. Your server calls ElevenLabs' conversation token endpoint with your xi-api-key header and the agent ID.
  2. It returns only the token to the app, behind your own login.
  3. The app calls startSession({ conversationToken }).

The docs' server example carries the comment: "Do NOT expose your API key to the client!" For WebSocket connections, the same idea uses a signed URL instead of a token.

Already leaked a key in a build? Our ElevenLabs API key leaked guide covers what to do right now.

Connection types: WebRTC vs WebSocket

The React SDK docs say the connection type is inferred: voice conversations use WebRTC, text-only conversations use WebSocket, and you can set connectionType explicitly if needed. One detail for anyone drawing audio visualisers: in WebRTC mode, audio is fixed at pcm_48000, so frequency data can look different from WebSocket connections.

Client tools: let the agent trigger things in your app

Client tools let the agent call functions in your app, such as opening a screen, showing a message or fetching data. You define them in the ElevenLabs dashboard (name, description, parameters) and pass matching functions in clientTools. If a function returns a value, it goes back to the agent. The docs note that the tool must be set to block the conversation in the dashboard if you want the agent to wait for the result; otherwise it assumes success and carries on.

What it costs

The SDK is free (MIT licence). Conversations are billed by ElevenLabs. Its API pricing page lists agent conversations at $0.08 a minute in US dollars, the same on every plan, and $0.16 a minute for calls above your plan's concurrency limit, with a number of included minutes on each plan. LLM usage can be billed separately on some products. Check the agents pricing for your plan before you launch, and see our ElevenLabs credits explainer for how the credit system works.

Upgrading from an older version

ElevenLabs' docs suggest running npx skills add elevenlabs/packages, which installs an elevenlabs:sdk-migration skill for AI coding agents that "automates import changes, ConversationProvider wrapping, and API updates." Older versions did not require the provider wrapper, so that is the change most likely to break an upgrade.

Troubleshooting checklist

  1. Crashes on launch in Expo: you are in Expo Go. Use a development build.
  2. Module not found: React Native below 0.79 without unstable_enablePackageExports.
  3. Connects but no audio in: microphone permission missing in iOS or Android config.
  4. Agent ignores your tool result: set the tool to blocking in the dashboard.
  5. Works in dev, fails for real users: the agent has authentication on and you are still passing only agentId. Fetch a token from your server.

Who should use it

  • Use it if you want an in-app voice assistant, tutor, support agent or companion and are happy for ElevenLabs to run the conversation.
  • Look elsewhere if you only need text-to-speech playback, or need everything on-device without a network.
  • Comparing providers? Our ElevenLabs alternatives page covers other voice platforms, and white label AI voice agent covers reselling agents to clients.

More in the AI tools hub, and our method in how we pick.

Questions people ask

Does ElevenLabs have a React Native SDK?

Yes. The package is @elevenlabs/react-native, version 1.3.1 on npm, MIT licensed. ElevenLabs' docs say it re-exports ConversationProvider and all hooks from the web @elevenlabs/react package, so the API is identical. It is built for ElevenLabs Agents, meaning live voice or text conversations with an agent you configure in the ElevenLabs dashboard.

Does the ElevenLabs React Native SDK work with Expo Go?

No. ElevenLabs' docs say the SDK was designed for the Expo framework but, because it depends on LiveKit's WebRTC implementation, it requires development builds and cannot be used with Expo Go. Create a development build of your app, with the LiveKit native modules included, and test on that instead. ElevenLabs links an Expo example app on GitHub.

How do I start a conversation with an ElevenLabs agent in React Native?

Wrap your app in ConversationProvider, then in a component call startSession from useConversationControls or useConversation, passing your agentId for a public agent. Use useConversationStatus to show whether you are connected, and endSession to hang up. For agents with authentication enabled, pass a conversationToken fetched from your server instead of the agentId.

How do I keep my ElevenLabs API key safe in a mobile app?

Never put it in the app. ElevenLabs' React SDK docs show a small server endpoint that calls the conversation token endpoint with your xi-api-key header and returns only the short-lived token to the app, with the comment 'Do NOT expose your API key to the client!' Anything bundled in a mobile app can be extracted, so keep keys server-side.

Why can't Metro find @elevenlabs/react-native?

The package uses the package.json exports field. ElevenLabs' docs say Metro only resolves exports by default from Metro 0.82.0, which shipped in React Native 0.79.0. On older React Native versions, set resolver.unstable_enablePackageExports to true in metro.config.js, or upgrade React Native to 0.79 or later.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. ElevenLabs docs: React Native SDK, checked 4 Dec 2026
  2. ElevenLabs docs: React SDK (full API reference), checked 4 Dec 2026
  3. npm: @elevenlabs/react-native, checked 4 Dec 2026
  4. GitHub: elevenlabs/packages React Native Expo example, checked 4 Dec 2026
  5. ElevenLabs API pricing, checked 4 Dec 2026