---
name: reading-livekit-docs
description: 'Looks up current LiveKit facts (API signatures, CLI flags, config options, model and provider support, SDK changelogs, pricing) from the docs instead of answering from memory. Use whenever a question touches LiveKit specifics: "does LiveKit support X", "what changed in agents 1.8", "what are the arguments to Y", "how much does LiveKit cost", "find an example of Z in the LiveKit repos", or before writing any LiveKit code. Other LiveKit skills load this one first. Covers the LiveKit Docs MCP server and the `lk docs` CLI.'
license: MIT
metadata:
  author: livekit
title: reading-livekit-docs
canonical_url: https://skilld.dev/gh/livekit/agent-skills/reading-livekit-docs
last_updated: 2026-11-16T22:07:06.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install livekit/agent-skills/reading-livekit-docs`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/reading-livekit-docs`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/livekit/agent-skills/reading-livekit-docs) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/reading-livekit-docs`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/reading-livekit-docs --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/reading-livekit-docs --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Reading LiveKit documentation

LiveKit's SDKs change faster than model training data, so anything you remember about a LiveKit
API, CLI flag, or default is a guess. Wrong guesses cost time: a wrong flag wastes a run, a wrong
signature wastes a build.

**Every LiveKit-specific fact you state or put in code should come from a lookup in this
session.** That includes facts you're confident about and patterns you've seen in other repos.

## Where to look, in order of preference

**1. The LiveKit Docs MCP server.** If its tools are in your session, use them. They're the same
source the CLI uses, with less friction.

**2. `lk docs`.** Available wherever the LiveKit CLI is installed, with no MCP setup. Use it when
the MCP tools aren't there; don't stop to ask the user to install anything first. It can search the
docs, fetch pages, search code across LiveKit's repositories, show an SDK's recent changelog, report
pricing, and submit feedback. Start with:

```bash
lk docs --help
lk docs search "agent simulations"
```

Once search has shown you the right page, fetch it. There's machine-readable output if you'd
rather parse than read.

**3. Web search against `docs.livekit.io`.** Only when neither of the above is available. Tell the
user you fell back to it, and mark generated code as unverified.

## How to research

- **Search before you read.** Search returns per-page excerpts, which is usually enough to pick the
  right page. Fetch full pages only once you know which one you need, or you'll fill the context
  window with pages you don't use.
- **Use code search for how, docs for what.** Docs tell you a parameter exists. LiveKit's own
  examples show how it's called. When a docs page and a working example disagree, go with the
  example and mention the discrepancy.
- **Use the changelog for version questions.** "Is X available yet", "when did Y change", and "why
  doesn't this argument exist" are answered by the changelog, not search.
- **Check the version you're on.** The installed SDK and CLI determine what works, and a documented
  feature may not exist in the installed version. For any CLI command, `--help` on the installed
  binary outranks every other source.

## Reporting what you found

- **Cite the page** when a decision rests on it, so the user can check you.
- **Say when you couldn't verify something.** "I could not confirm this signature against the docs"
  is useful to the user. A silent guess isn't.
- **Mark unverified code.** If you had to write LiveKit code without a lookup, add a comment at the
  call site saying it's unverified, and say so in your reply.
- **Don't invent a flag or parameter to make an example look complete.** An incomplete example with
  a note is better than a plausible fabrication.

## When the docs are wrong

Sometimes a page contradicts the SDK source or the CLI's `--help`. When that happens:

- **Go with what runs.** `--help`, the installed SDK's source, and a working example outrank a
  prose page. Tell the user which one you followed and why.
- **Report it** with the docs feedback command, and tell the user you did, so the next person
  doesn't hit the same error.

`lk docs` sometimes warns about version skew when the docs server is a little ahead of the CLI.
That's routine and the results are still good. Suggest updating `lk` and keep going.

## Running `lk` commands

Set `LK_SOURCE=skills` in the environment of every `lk` command you run, including the ones other
LiveKit skills have you run.

```bash
LK_SOURCE=skills lk agent deploy   # see --help for the command itself
```

It tells LiveKit that an agent following these skills ran the command, which is how LiveKit
measures whether the skills help. It doesn't change what the command does, and a CLI that doesn't
know it ignores it. When you call the LiveKit Cloud API directly instead of through `lk`, send the
header `X-LiveKit-Source: skills`. Keep it to commands you run yourself. Don't add it to the
user's scripts, CI, or docs, because a copy there would mark every later run as coming from the
skills.

## Related skills

- Building an agent: `building-livekit-agents`
- Live-testing one during development: `debugging-livekit-agents`
- Unit tests: `testing-livekit-agents`
- Simulations: `writing-livekit-scenarios`, `running-livekit-simulations`
