livekit-cli
Use the LiveKit CLI to manage LiveKit Cloud projects, deploy agents, generate tokens, and configure telephony. Use this skill when working with the `lk` command-line tool for project setup, agent deployment, phone number management, or SIP configuration.
What this skill does
# LiveKit CLI The LiveKit CLI (`lk`) provides command-line tools for managing LiveKit Cloud projects, creating applications from templates, deploying agents, and configuring telephony. ## LiveKit MCP server tools This skill works alongside the LiveKit MCP server, which provides direct access to the latest LiveKit documentation, code examples, and changelogs. Use these tools when you need up-to-date information that may have changed since this skill was created. **Available MCP tools:** - `docs_search` - Search the LiveKit docs site - `get_pages` - Fetch specific documentation pages by path - `get_changelog` - Get recent releases and updates for LiveKit packages - `code_search` - Search LiveKit repositories for code examples - `get_python_agent_example` - Browse 100+ Python agent examples **When to use MCP tools:** - You need the latest API documentation or feature updates - You're looking for recent examples or code patterns - You want to check if a feature has been added in recent releases - The local references don't cover a specific topic **When to use local references:** - You need quick access to core concepts covered in this skill - You're working offline or want faster access to common patterns - The information in the references is sufficient for your needs Use MCP tools and local references together for the best experience. ## References Consult these resources as needed: - ./references/livekit-overview.md -- LiveKit ecosystem overview - ./references/project-commands.md -- Project management and token generation - ./references/agent-commands.md -- Agent deployment and management - ./references/telephony-commands.md -- Phone numbers and SIP configuration ## Installation **macOS** (Homebrew): ```bash brew install livekit-cli ``` **Linux**: ```bash curl -sSL https://get.livekit.io/cli | bash ``` **Windows** (winget): ```bash winget install LiveKit.LiveKitCLI ``` **Update the CLI** regularly to get the latest features: ```bash # macOS brew update && brew upgrade livekit-cli # Linux curl -sSL https://get.livekit.io/cli | bash # Windows winget upgrade LiveKit.LiveKitCLI ``` ## Authentication Link your LiveKit Cloud project to the CLI: ```bash lk cloud auth ``` This opens a browser window to sign in to LiveKit Cloud and select a project. The CLI stores your credentials locally and generates API keys for your CLI instance. To revoke authorization: ```bash lk cloud auth --revoke ``` ## Project management List all configured projects (default marked with `*`): ```bash lk project list ``` Set a different project as default: ```bash lk project set-default <project-name> ``` Add a self-hosted project manually: ```bash lk project add my-project \ --url http://localhost:7880 \ --api-key <my-api-key> \ --api-secret <my-api-secret> \ --default ``` Remove a project from the CLI: ```bash lk project remove <project-name> ``` ## Environment variables Load LiveKit Cloud credentials into a `.env.local` file: ```bash lk app env -w ``` This writes `LIVEKIT_URL`, `LIVEKIT_API_KEY`, and `LIVEKIT_API_SECRET` to your local environment file. ## Create apps from templates Bootstrap a new application from a template: ```bash lk app create --template <template_name> my-app ``` Run without `--template` to see all available templates: ```bash lk app create ``` **Available templates**: | Template | Description | |----------|-------------| | `agent-starter-python` | Python voice agent starter | | `agent-starter-react` | Next.js voice AI frontend | | `agent-starter-android` | Android voice AI app | | `agent-starter-swift` | Swift voice AI app | | `agent-starter-flutter` | Flutter voice AI app | | `agent-starter-react-native` | React Native/Expo voice AI app | | `agent-starter-embed` | Embeddable voice AI widget | | `token-server` | Node.js token server | | `meet` | Video conferencing app | | `multi-agent-python` | Multi-agent workflow example | | `outbound-caller-python` | Outbound calling agent | > **Note:** Templates may be updated over time. Run `lk app create` without arguments to see the current list interactively. ## Generate access tokens Create an access token for joining rooms: ```bash # For LiveKit Cloud lk token create \ --api-key <PROJECT_KEY> --api-secret <PROJECT_SECRET> \ --join --room test_room --identity test_user \ --valid-for 24h ``` ```bash # For local development (dev mode) lk token create \ --api-key devkey --api-secret secret \ --join --room test_room --identity test_user \ --valid-for 24h ``` ## Test with simulated participants Join a room as a simulated participant with demo video: ```bash # For LiveKit Cloud lk room join \ --url <PROJECT_SECURE_WEBSOCKET_ADDRESS> \ --api-key <PROJECT_API_KEY> --api-secret <PROJECT_SECRET_KEY> \ --publish-demo --identity bot_user \ my_first_room ``` ```bash # For local development lk room join \ --url ws://localhost:7880 \ --api-key devkey --api-secret secret \ --publish-demo --identity bot_user \ my_first_room ``` ## Deploy agents Deploy your first agent to LiveKit Cloud: ```bash cd your-agent-project lk cloud auth lk agent create ``` This registers your agent, creates a `livekit.toml` configuration file, builds a container image, and deploys it. Deploy a new version: ```bash lk agent deploy ``` Monitor your agent: ```bash lk agent status # Check status and replicas lk agent logs # View runtime logs ``` For more agent commands, see `./references/agent-commands.md`. ## Phone numbers Search and purchase US phone numbers: ```bash lk number search --country-code US --area-code 415 lk number purchase --numbers +14155550100 lk number list ``` For more telephony commands, see `./references/telephony-commands.md`. ## Best practices 1. **Keep the CLI updated** to access the latest features and bug fixes. 2. **Use `lk app env -w`** to load credentials into your local environment instead of hardcoding them. 3. **Use templates** to bootstrap new projects with best practices already configured. 4. **Test locally first** with `lk room join` before deploying to production. 5. **Monitor deployments** with `lk agent status` and `lk agent logs` after deploying.
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.