cool-nail-4119
08/25/2025, 1:05 PMtall-airline-16756
08/25/2025, 1:05 PMtall-airline-16756
08/25/2025, 1:06 PMlk token create \
--api-key <project_key> --api-secret <project_secret> \
--join --room test_room --identity test_user \
--valid-for 24h
• Programmatically: You can generate tokens on your server using libraries like livekit-server-sdk. For example, in Node.js:
import { AccessToken } from 'livekit-server-sdk';
async function createToken({ roomName, participantName }) {
const at = new AccessToken('my-key', 'my-secret', {
identity: participantName,
ttl: '10m',
});
at.addGrant({
roomJoin: true,
room: roomName,
canUpdateOwnMetadata: true,
});
return at.toJwt();
}
• LiveKit Cloud Sandbox: You can also use the sandbox endpoint to quickly generate tokens for testing.
If you have any questions or need a hand with any of these steps, just let me know—I’m here to help!
Sources: TEMPLATE.md | Authentication Examples | livekit/livekit_composite | DeepWiki | Connecting to LiveKit | LiveKit Docs | Swift quickstart | LiveKit Docs | LiveKit CLI Setup | LiveKit Docscool-nail-4119
08/25/2025, 1:20 PMtall-airline-16756
08/25/2025, 1:21 PMlk agent update --secrets KEY=VALUE
• Restart Without Code Changes: Want to restart the agent but keep the same code? No problem, just run:
lk agent restart
• Rollback: If something doesn’t feel right, you can always go back to a previous version with:
lk agent rollback --version [VERSION]
For Local Development:
• Simply edit your agent code files and restart the local agent like this:
python3 agent.py dev
If you hit any bumps or want a hand with these steps, just give me a shout—I’m here to help!