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

# Scalekit

> Configure Scalekit tokens for Char publishable-key embeds

Use Scalekit-issued user tokens with Char.

## 1) Configure Scalekit in Char

Add issuer settings and allowed audiences.

## 2) Read token from Scalekit auth state

```ts theme={null}
const { idToken } = useScalekitAuth();
```

## 3) Connect

```ts theme={null}
agent.connect({
  publishableKey: "pk_live_...",
  idToken,
});
```

<Card title="Embedding Guide" icon="code" href="/guides/embedding-agent" />
