Skip to content

Conversation

@rektdeckard
Copy link
Member

@rektdeckard rektdeckard commented Oct 1, 2025

https://linear.app/livekit/issue/DPRO-491/cli-focused-onboarding-spike-and-all-hands-demo

  • Adds lk agent init command, which automatically gives the cloned template an agent name, creates a sandbox, sets up explicit dispatch for it, and prints its URL on completion
  • If authenticating your first project via CLI, automatically make it the default project

DEPENDS ON: https://github.com/livekit/cloud-api-server/pull/1311 and, indirectly, livekit-examples/agent-starter-python#25

If you want to test it now, you'll have to test against staging API and a dummy agent template:

lk agent init \
  --server-url https://cloud-api-server-public.ochicago1a.staging.livekit.app \
  --dashboard-url https://cloud.staging.livekit.io \
  --template-url https://github.com/livekit-examples/agent-starter-python-gateway
Screen.Recording.2025-10-01.at.1.02.48.AM.mov

@rektdeckard rektdeckard requested review from bcherry and yoonsio October 1, 2025 05:53
@rektdeckard rektdeckard force-pushed the tobias/dpro-491-cli-focused-onboarding-spike-and-all-hands-demo branch 2 times, most recently from 2d2675a to 827fd07 Compare October 1, 2025 07:07
@rektdeckard rektdeckard force-pushed the tobias/dpro-491-cli-focused-onboarding-spike-and-all-hands-demo branch from 827fd07 to 5835942 Compare October 1, 2025 07:13
@rektdeckard rektdeckard requested a review from real-danm October 1, 2025 15:28
Copy link
Contributor

@yoonsio yoonsio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rektdeckard rektdeckard merged commit 74fd243 into main Oct 1, 2025
11 of 12 checks passed
@rektdeckard rektdeckard deleted the tobias/dpro-491-cli-focused-onboarding-spike-and-all-hands-demo branch October 1, 2025 15:44

// TODO: (@rektdeckard) figure out why AccessKeyProvider does not immediately
// have access to newly-created API keys, then remove this sleep
time.Sleep(4 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a future todo, this is a long sleep though. maybe a loop to check for the keys?

Copy link
Member Author

@rektdeckard rektdeckard Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah..2 seconds worked 95% of the time, I just wanted to be safe. More investigation necessary in cloud-api-server side, I don't have a strong intuition for AKP and why it would not reflect very recently created keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants