# Configure StreamLink

#### Method 1: Dashboard UI (Recommended)

1. In-game, run:

```
/sl ui
```

2. The dashboard will open. Fill in:
   * **Channel Name:** Your Twitch username (e.g., `kentatetsu`)
   * **Access Token:** Paste the token from Step 1
   * **Client ID:** Paste the Client ID from Step 1
3. Click **"Connect"**

#### Method 2: Commands

```bash
# 1. Set up credentials
/sl twitch setup <client_id> <access_token>

# 2. Set your channel
/sl twitch set <your_channel_name>

# 3. Connect
/sl twitch connect
```

**Example:**

```
/sl twitch setup abc123xyz456 def789ghi012
/sl twitch set kentatetsu
/sl twitch connect
```

You should see these messages in chat after executing the command:

```
/sl twitch connect
[StreamLink] Validating credentials...
[StreamLink] Token validated!
[StreamLink] Connecting to Twitch...
[StreamLink] Authentication successful!
[StreamLink] Connecting to chat and events...
[StreamLink] Events connected! You'll see follows, subs, raids, etc.
[StreamLink] Connected to #your_channel
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kentatetsu.gitbook.io/streamlink/guides/twitch-setup-guide/configure-streamlink.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
