alert-continent-21953
10/28/2025, 6:36 PMtall-airline-16756
10/28/2025, 6:36 PMalert-continent-21953
10/28/2025, 6:36 PMtall-airline-16756
10/28/2025, 6:36 PMalert-continent-21953
10/28/2025, 6:36 PMtall-airline-16756
10/28/2025, 6:37 PMlk cloud auth (Recommended):
Just run lk cloud auth to start a simple browser-based sign-in process. This will safely save your project credentials (API key, secret, and URL) in a local config file for you.
2. Provide Credentials via Environment Variables:
You can set your credentials as environment variables like this:
`export LIVEKIT_URL="https://your-subdomain.livekit.cloud"
export LIVEKIT_API_KEY="your_api_key"
export LIVEKIT_API_SECRET="your_api_secret"`After that, try running your command again.
3. Provide Credentials via Command-Line Flags:
Alternatively, you can pass your credentials directly when running the lk command:
lk agent create \
--url "https://your-subdomain.livekit.cloud" \
--api-key "your_api_key" \
--api-secret "your_api_secret"
Just make sure your credentials are accurate and haven’t been revoked—you can always find them in your LiveKit Cloud dashboard. If you hit any bumps or need more help, feel free to reach out. I'm here for you!
Sources: replay/cloud_replay.twirp.go | cmd/lk/utils.go