red-agent-48266
09/20/2025, 7:12 PMtall-airline-16756
09/20/2025, 7:12 PMtall-airline-16756
09/20/2025, 7:13 PM.env file. For example:
LIVEKIT_API_KEY=your_api_key_here
LIVEKIT_API_SECRET=your_api_secret_here
LIVEKIT_URL=<wss://your-project.livekit.cloud>
3. Access the API Key in Code: When you're coding, you can access these values through environment variable methods. For instance, in Node.js:
const apiKey = process.env.LIVEKIT_API_KEY;
const apiSecret = process.env.LIVEKIT_API_SECRET;
Just a friendly reminder: please make sure your API secret stays private and is never exposed on the client side or in public repositories. Using a backend server to issue access tokens is the safest way to go.
Sources: agent-console/components/credential-settings.tsx | Mini tutorial: setting up a LiveKit Cloud project | packages/rpc-demo/.env.local | examples/.env.example | client/web/.env.example