is there any way to have separate environments for...
# ask-ai
a
is there any way to have separate environments for dev, staging and prod
t
Thanks for reaching out, Liam. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Setting up separate environments for development, staging, and production in LiveKit is a great way to keep things organized and running smoothly. Here are some friendly tips to help you get started: • LiveKit Cloud: You can create separate projects for each environment. Each one will have its own unique URL, API key, and secret. For example, your staging URLs might look like
myproject.staging.livekit.cloud
, while production URLs could be
myproject.livekit.cloud
. • Self-Hosted: If you’re self-hosting, consider deploying separate LiveKit instances for each environment. For local development, you can easily start the server in development mode using
livekit-server --dev
, which uses placeholder API keys and secrets to keep things simple. • Kubernetes: Using namespace isolation is a smart way to deploy each environment in its own dedicated namespace. You can customize Helm chart values for each deployment to make sure everything is configured just right and resources are properly allocated. • Environment Variables: Don’t forget to configure environment-specific variables like API keys, secrets, and URLs. For example, you can set
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
, and
LIVEKIT_URL
differently for each environment to keep things secure and organized. These approaches help ensure your environments stay isolated, secure, and stable. If you’d like, I’m here to walk you through any of these steps in more detail—just let me know! Sources: lib/getLiveKitURL.test.ts | README.md | Infrastructure & Deployment | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit Docs | Running LiveKit locally | LiveKit Docs
a
But will my plan be deployed across all three of these projects, too, if I'm paying?
t
Thanks for reaching out! For free Build plans, the quota is shared across all your projects, including development, staging, and production. So, all your environments will draw from the same resource pool, like WebRTC participant minutes, agent session minutes, and data transfer limits. When it comes to paid plans, the documentation doesn’t clearly specify whether quotas are shared across projects or allocated separately for each one. To get the most accurate info for your plan, you can take a look at your LiveKit Cloud dashboard for quota details. And if you’d like, I’m here to help you understand your plan better—just let me know! Sources: Deploying to custom environments | LiveKit Docs | Quotas and limits | LiveKit Docs | Towards a future-aligned pricing model | README.md
a
how can i do that on livekit cloud? LiveKit Cloud: You can create separate projects for each environment. Each one will have its own unique URL, API key, and secret. For example, your staging URLs might look like
myproject.staging.livekit.cloud
, while production URLs could be
myproject.livekit.cloud
.
t
Hi there! To help you create separate projects for different environments in LiveKit Cloud, here’s a simple step-by-step guide: 1. Log in to LiveKit Cloud: Head over to https://cloud.livekit.io and sign in to your account. 2. Create a New Project: For each environment you have (like dev, staging, or prod), create a new project. Give it a clear name that matches the environment, such as
my-app-dev
,
my-app-staging
, or
my-app-prod
. Each project will get its own unique subdomain like
https://my-app-dev.livekit.cloud
. 3. Generate API Keys: Once inside the project’s settings, generate an API key and secret. Make sure to keep these credentials safe, as they’re unique to each project. 4. Use Environment Variables: It’s a good idea to store these credentials in environment-specific variables. For example, you could add them to a
.env
file like this:
Copy code
LIVEKIT_URL=https://my-app-dev.livekit.cloud
LIVEKIT_API_KEY=APIXXX...
LIVEKIT_API_SECRET=SECRETOXXX...
5. Optional - Manage Projects with the LiveKit CLI: If you prefer, you can manage multiple projects using the LiveKit CLI. Here’s how:
lk project add my-project-dev --url https://my-project-dev.livekit.cloud --api-key APIXXX --api-secret SECRETXXX
This approach helps keep your environments nicely separated and secure. If you have any questions or need a hand with anything else, just let me know—I’m here to help! Sources: LiveKit CLI project management | LiveKit docs | LiveKit CLI Setup | LiveKit Docs | Deploying to custom environments | LiveKit docs | Deploying to custom environments | LiveKit Docs | Mini tutorial: setting up a LiveKit Cloud project
a
how do i create a new project
t
I'd be happy to help you create a new project in LiveKit Cloud! Just follow these simple steps: 1. Sign in to LiveKit Cloud: Head over to https://cloud.livekit.io and log in using whichever authentication method feels easiest for you. 2. Create the Project: Once you're logged in, you'll see an option to create a new project. Just give your project a name and follow the prompts to set it up. 3. Generate API Keys: After your project is ready, go to the project’s settings page to generate your API credentials. You'll get a
LIVEKIT_API_KEY
and
LIVEKIT_API_SECRET
, which you'll need for authentication. If you have any questions or need a hand along the way, please don’t hesitate to reach out—I’m here to help! Sources: Mini tutorial: setting up a LiveKit Cloud project | cmd/lk/cloud.go | LiveKit CLI Setup | LiveKit Docs