ElevenLabs Onboarding
The ElevenLabs CLI puts a working API key in the project, then tells you how
to build with it. From the folder of the app that will use the key (in a
monorepo, that app's folder), run:
npx -y @elevenlabs/cli@latest onboard init
With no key in the project yet, that command is the sign-in. It opens the
ElevenLabs approval page in the user's browser and waits, for up to five
minutes, while they sign in (or create an account) and click Authorize. Tell
the user that before you run it, then keep the command running until it
finishes and don't end your turn while it waits: the command is what receives
the approval. If it is stopped before they approve, run it again.
Every onboard command prints one line of JSON. Act on it:
next: what to do now, spelled out ininstruction.run: the exact next command. Run it as given.say: what to tell the user. Tell them as written.details: facts for what comes next, such as where the key is, what the
app needs to load it and where the ElevenLabs skills are.rules: rules for the whole setup. Follow them.
What each next means:
integrate: a working key is in the project, and the rest is yours. Tell
the usersay, then build what they asked for. Only a request that says
what the app should do with ElevenLabs says what to build; one that asks to
add, set up or use ElevenLabs, or for something general like voice features,
doesn't. If theirs doesn't, askdetails.question, as it is, and end your
turn: write no code and install nothing until they answer, and don't pick a
product for them. If they only want the SDK, install it and create the
client in one small file. Otherwise use the skill that fits fromdetails.fetch_skillswhen there is one. Whatever they asked for, even
nothing new, the app has to get the key, and an env file is only read if
something loads it. So find what loads the key's env file when the app
starts, in this project's own language and framework. If you can't point
to it, make the app load the file the waydetails.load_keysays. If it needs something made in ElevenLabs
first, like an agent, make it yourself with the key (load the env file in
the command, never print it), not a script for the user to run. When the
code is written, or if it already was, check your changes are in place,
then runrun: its reply says how to finish.offer_test: say what you set up, the links to any agent you made, and
anything the user still has to do themselves, like installing the packages
you added. Then end your reply with the question insay, as it is. If they say yes, runrun: that
command is the test request, so don't run their app in its place. If they
say no, run nothing.run: runrun.fix: do whatsaydescribes, then runrun. If it needs the user's
shell, settings or secrets, ask them instead, as forask_user.ask_user: ask the user whatsaysays and wait for their answer, then
runrun, unless they said no.done: tell the usersay, then anything they still have to do
themselves, in one or two concrete steps.
Rules
- Never open, print or
catthe env file;onboard checkverifies the key. - Never ask for an API key in chat, and never accept one pasted there. If one
appears, tell the user to rotate it on the API keys page. - Never put the key in code, or in anything that runs in the browser; the SDK
readsELEVENLABS_API_KEY. - Never run
git cleanor delete untracked files: the key is in one. - Put anything you download only to read, like a package or an archive, in a
temp folder, never in the project. - Don't run the app (or its start script) or make speech to try it until the
user says yes to the test request. API calls that what they asked for
needs, like creating an agent, are fine.
No npx
If npx isn't available (Node.js isn't installed), install the CLI (or
update it if it's already installed: brew upgrade elevenlabs, or run the
installer again), then run elevenlabs onboard init instead. Everything after
that is the same.
- macOS or Linux:
brew install elevenlabs/tap/elevenlabs, orcurl --proto '=https' --tlsv1.2 -LsSf https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.sh | sh - Windows:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.ps1 | iex"
If elevenlabs isn't found after the installer ran, use~/.cargo/bin/elevenlabs in its place, here and in every run the CLI gives.
Installs: 6.0K | GitHub stars: 596 | First seen: Oct 6, 2026


