{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "livekit-agents--build-a-voice-agent-and-test-it-in-the-terminal-with-livekit",
 "repo": "livekit/agents",
 "repo_url": "https://github.com/livekit/agents",
 "repo_slug": "livekit-agents",
 "title": "Build a voice agent and talk to it in the terminal",
 "page_title": "How to build a voice agent and talk to it in the terminal with Agents",
 "summary": "Install livekit-agents with OpenAI, Deepgram and Cartesia plugins and run your agent in console mode.",
 "who": "A developer prototyping a voice assistant.",
 "problem": "Testing a voice agent usually needs a full client app.",
 "outcome": "A voice agent you can talk to from your terminal before connecting any client.",
 "steps": [
  "Install with `pip install \"livekit-agents[openai,deepgram,cartesia]\"`",
  "Write myagent.py with an Agent and AgentSession as in the README example",
  "Run it locally with `python myagent.py console`",
  "Switch to `python myagent.py dev` to connect it to LiveKit"
 ],
 "agent_prompt": "Using livekit/agents, install `pip install \"livekit-agents[openai,deepgram,cartesia]\"`, write myagent.py based on the README weather tool example for <my use case>, and run `python myagent.py console`.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Dev and start modes need a LiveKit server or LiveKit Cloud project.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip",
  "A LiveKit server or LiveKit Cloud project",
  "API keys for the model providers you choose"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "cost",
   "notice": "Model providers bill per use."
  },
  {
   "tag": "privacy",
   "notice": "Speech is sent to the providers you configure."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/livekit-agents/build-a-voice-agent-and-test-it-in-the-terminal-with-livekit/",
 "md": "https://dedupedai.com/use-cases/livekit-agents/build-a-voice-agent-and-test-it-in-the-terminal-with-livekit/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/livekit-agents--build-a-voice-agent-and-test-it-in-the-terminal-with-livekit.json",
 "api_version": "v1"
}
