Prefer automation? See Get Started with Claude Code.
What you’ll build
By the end, you’ll have:- A working
<char-agent>embed - Org-scoped authentication via a publishable key
- Optional per-user identity with
idToken
Prerequisites
- A Char account and organization
- A publishable key from Dashboard → Settings → Publishable Keys
- A web app (or static HTML page)
Step 1: Install
Step 2: Import the component
Step 3: Add <char-agent> with your publishable key
Step 4: Add per-user identity (optional)
If your users already authenticate with an IDP, pass their ID token withconnect():
publishableKey is required. idToken is optional.Step 5: Verify
- Start your app
- Open the page with
<char-agent> - Open the agent and send a message
Next steps
Embedding Guide
Full auth and integration patterns
Identity Providers
Configure ID token validation
Framework Guides
React, Vue, Angular, and more
Custom Styling
Match the agent to your product

