cuddly-ghost-57435
09/12/2025, 1:32 PMtall-airline-16756
09/12/2025, 1:32 PMtall-airline-16756
09/12/2025, 1:33 PMlk project add
to add a new project to your local CLI configuration. Here’s a simple example to guide you:
lk project add my-project \
--url <http://localhost:7880> \
--api-key <my-api-key> \
--api-secret <my-api-secret> \
--default
With this command, you’ll need to provide the project name, LiveKit server URL, API key, and API secret. If you want, you can also set this project as your default by including the --default
flag. Don’t worry if you miss any required fields—the CLI will kindly prompt you to fill them in interactively.
If you’re working with LiveKit Cloud projects, there’s a handy command: lk cloud auth
. It takes care of creating a project configuration for you right after you authenticate through your browser.
At the moment, there isn’t a dedicated API endpoint for programmatically creating projects, but I’m here to help if you have any other questions or need further guidance!
Sources: LiveKit CLI project management | LiveKit Docs | Docs::Home | cmd/lk/utils.go | README.mdcuddly-ghost-57435
09/12/2025, 1:37 PMtall-airline-16756
09/12/2025, 1:38 PMlk project add
to configure it locally.
If automating project creation is really important for your workflow, it might be worth exploring some alternative approaches or checking in with LiveKit Cloud directly to see if there’s an API that’s not publicly documented yet. Please feel free to reach out if you have any more questions or need a hand with anything else—I’m here to help!
Sources: Mini tutorial: setting up a LiveKit Cloud project | README.md | Docs::Home | Docs::Home | Example Applications | livekit/livekit_composite | DeepWikicuddly-ghost-57435
09/12/2025, 2:03 PMtall-airline-16756
09/12/2025, 2:05 PMconnect()
method to join the room:
`await ctx.connect(auto_subscribe=AutoSubscribe.SUBSCRIBE_ALL)`This step is key for your agent to interact with participants seamlessly.
4. Troubleshooting: If you run into any issues, you can monitor your agent’s status and logs using the CLI:
`lk agent status
lk agent logs --log-type=deploy`Also, consider implementing timeouts and keeping an eye on connection events in your frontend to handle any hiccups gracefully.
If you’d like me to walk you through any of these steps in more detail or if you have any questions, just let me know—I’m here to help!
Sources: Agent deployment CLI reference | LiveKit Docs | lib/controllers/app_ctrl.dart | Vision Agent Quickstart | LiveKit Docs | Deploying to production | LiveKit Docs | python-agent-example-app/main.pycuddly-ghost-57435
09/12/2025, 2:35 PMtall-airline-16756
09/12/2025, 2:36 PMcall-
. This keeps things organized and efficient.
5. Configure the Agent: Make sure your agent is ready to automatically join rooms created by incoming calls. Using the RoomDispatcher
in your agent code will help listen for new rooms and connect whenever a room matches your dispatch rule.
6. Testing: Finally, start your agent, place a call to your Twilio phone number, and check that the call routes to a LiveKit room with your agent joining automatically. This confirms everything is set up just right!
If at any point you'd like some detailed code examples or need a hand with any specific step, please don't hesitate to ask. I'm here to help you every step of the way!
Sources: Create and configure a Twilio SIP trunk | LiveKit Docs | .env.example | Inbound calls with Twilio Voice | LiveKit Docs