Skip to main content
Use this after building your agent, or with an existing named LiveKit audio or video agent. For a video starter or caller-camera input, follow Audio, video, and caller vision. You need your organizer’s Chert project UUID, owner/admin access, and an assigned FaceTime line. See Projects and lines.

1. Install and sign in once

Use macOS or Linux, or Windows 11 x64 in beta. The CLI supports Node 22.12+ in the 22.x series, 24.x or 26.x; the JavaScript starter still uses 22.23.2 or 24.x. Node 26 CLI support does not qualify the starter or a real FaceTime call on that runtime. On Windows, use Node 24 in PowerShell or Command Prompt and keep the agent folder in a local folder under your user folder, outside OneDrive. Check node --version; if you use nvm, select the same version in both terminals.
This guide pins 0.1.0-beta.21, including the voice/video starters, browser sign-in, and automatic LiveKit credential loading. Confirm that version before continuing. Choose browser sign-in, compare the displayed code, select your assigned Chert project, and approve. In a remote shell, chert login --device prints the address and code. You do not need to copy a browser session token for normal sign-in.

2. Check the connection from your agent folder

From your agent’s folder, where you created .env.local:
No separate setup step is needed. The CLI reads LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET from .env.local (or .env) in this folder and uses the Chert project you approved at sign-in. It reports which file it used. Keep these values in the same LiveKit project as your agent. Existing shell LIVEKIT_* values override the file. If you previously ran chert setup, its saved project and file path still take priority. To switch to folder loading, run chert setup --clear after stopping any active connector. This keeps your sign-in. See credential loading for explicit files and optional setup when running from elsewhere. Plain doctor is read-only. Check that login, project, line, online worker and LiveKit checks pass. The agent check is skipped until you supply --agent. Resolve busy/offline lines with your organizer before continuing.

3. Keep two terminals running

Terminal A: agent

In the agent folder:
These are the supplied starter’s scripts. Use your own startup command for an existing agent. Wait for successful registration with LiveKit. Leave this terminal running; Chert does not start the program for you.

Terminal B: Chert

Open a second terminal in the same folder, using the same Node version:
Replace team-otter-agent with your exact registered dispatch name. doctor --agent runs a real agent job in a temporary room and may incur provider usage. It checks membership, not a full conversation. Keep this terminal running too. Wait for the CLI to report that it is connected and your agent has joined a waiting room before calling. Room membership does not verify audio or video. The same chert dev command handles both call types without a webhook.
Generic chert dev automatically prepares and refills waiting rooms. Do not add --muse to the student starter: that flag is for a separately integrated Muse agent, with one prepared session per run. It is not a general avatar switch.

4. Test two real calls

  1. Call the exact address assigned by your organizer using FaceTime Audio for voice, or FaceTime Video on a video-enabled line to exchange video.
  2. After connection, say hello. The voice starter on the build-agent page waits for you to speak; the beta.21 generated starters can greet after bridge readiness.
  3. Ask a question related to your agent’s instructions and a follow-up. Confirm it responds to your actual words, then try interrupting once. For video, verify the agent picture changes. If the agent uses caller vision, change what your camera shows and confirm the agent responds to the new view.
  4. Hang up from the caller’s device and wait for Chert to report room cleanup.
  5. Wait for the next waiting room, then make a second call. Confirm it begins a fresh conversation and cleans up again.
“Connected” and a successful doctor check are not substitutes for this test. The voice starter is audio-only; this is a property of that example, not a CLI limitation. The video starter publishes a face but needs additional integration for caller vision. If no reply arrives, check the agent terminal for model/key/credit errors before trying repeatedly.

5. Stop or change your agent

End the call first. Press Ctrl+C in Terminal B and wait for confirmation that cleanup has finished and the line has been released. Then stop the agent in Terminal A. To edit, change its instructions or tools and restart both terminals so a previously prepared room does not use old code. For the next session, start the agent, then run the short command again:
If cleanup or release remains pending, preserve ~/.chert and ask your organizer for help. Do not delete state to dismiss the error or let another team take over before resolving it.

Common problems

For help, share Node/CLI versions, agent name, call time, and relevant error lines. Never share tokens, API keys, .env.local, or unsanitized logs.