> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LiveKit agent deployment configuration

> Configuration options for deploying LiveKit agents on Telnyx, including regions, runtime settings, autoscaling, and resource provisioning details.

## Regions

Deploy to the region closest to your users. See [Regions](/docs/livekit/regions) for all available endpoints.

## Environment variables and livekit.toml

Set `LIVEKIT_URL`, `LIVEKIT_API_KEY`, and `LIVEKIT_API_SECRET` as environment variables. You also need a `livekit.toml` in your project directory that defines the subdomain and agent ID:

```toml theme={null}
[project]
subdomain = "nyc1"

[agent]
id = "<agent-id>"
```

<Note>
  `lk agent create` writes the agent ID to `livekit.toml`. Don't edit the `[agent]` section manually. If you clone an example repo, remove the `[agent]` section before running `lk agent create` so a fresh ID is generated.
</Note>

For multi-agent projects, use the `--config` flag to point at different TOML files:

```bash theme={null}
lk agent deploy . --config agent-a.toml
lk agent deploy . --config agent-b.toml
```

## Multiple environments

Use separate API keys for dev, staging, and production environments. Each key operates independently.

## Log access

Stream logs from your running agent:

```bash theme={null}
lk agent logs <agent-id>
```

Log forwarding to third-party services (Datadog, Sentry, CloudWatch) is coming soon.
