# Build with your AI
> Put the AI you built on uare.ai on your website, in your own app, or in Claude, Cursor and any MCP client.
```html title="Website"
```
```ts title="Public API"
const API = "https://app.uare.ai/api/v1/public/ai/your-handle";
// Call this when a visitor sends their first message, from a page on a website allowed in Settings → Website
async function startSession() {
const res = await fetch(`${API}/sessions`, { method: "POST" });
return res.json(); // { session_id, token, ... }
}
```
```bash title="Your MCP"
claude mcp add --transport http uare https://app.uare.ai/api/v1/mcp \
--header 'Authorization: Bearer ${UARE_API_KEY}'
```
## Pick your integration
Your AI on uare.ai learns how you think, write and decide. Here's where it can work outside uare.ai:
| Integration | What it's for | Setup | Runs as |
| --- | --- | --- | --- |
| [Website widget](/docs/website/quickstart) | Your website's visitors chat with your AI, in a bubble or inside your page. | One line of HTML | Public mode, like your public profile |
| [Public API](/docs/api/build-your-own) | A chat with your own design, on your site or in your app, with the Vercel AI SDK or plain JavaScript. | Allow your site, start a session | Public mode |
| [uare.ai Experts MCP server](/docs/mcp/experts) | People in an assistant such as ChatGPT or Claude find you for what they need and talk to your AI there. | Listing, by invitation | Public mode, as a visitor |
| [Your MCP server](/docs/mcp/quickstart) | You, using your AI from Claude, Cursor or VS Code. | An API key | You, with your private context |
The first three serve visitors, in public mode, and need no key: you choose the websites that may show your AI, uare.ai lists the experts that assistants can find, and each visitor gets their own conversation. Your MCP server is for you alone. Its key carries your private context, so never use it to answer visitors.
## Start here
- **For your website:** [allow your site and paste the snippet](/docs/website/quickstart). It takes about two minutes.
- **For your own chat UI:** [start a session and stream replies](/docs/api/build-your-own).
- **For assistants such as ChatGPT and Claude:** [see how the uare.ai Experts MCP server works](/docs/mcp/experts) and what it shows of you.
- **For your own AI tools:** [create an API key](/docs/mcp/api-keys), then [connect your MCP client](/docs/mcp/quickstart) to your MCP server.
New to uare.ai's vocabulary? [Concepts](/docs/concepts) explains your AI, who it talks to, and what each integration can reach.
## Built for AI agents too
Every page here is also plain markdown. Add `.md` to a page's URL, for example [/docs/website/quickstart.md](/docs/website/quickstart.md), or request the page with an `Accept: text/markdown` header.
[/llms.txt](/llms.txt) lists every page, and [/llms-full.txt](/llms-full.txt) holds all of them in one file.
## What's next
More ways to bring your AI into your own products are on the way: signed-in visitors with their own history, and your courses, services and thoughts playing on your site. The [changelog](/docs/changelog) announces each one when it ships.
---
# Concepts
> The ideas behind every integration: your AI, who it talks to, which websites may show it, the two MCP servers, and what an API key lets another tool do.
## Your AI
On uare.ai you build an AI from your knowledge, your voice and your skills. It keeps learning from what you upload and from your conversations with it. Every integration in these docs acts on that AI.
## Two audiences
Your AI talks to two kinds of people, and behaves differently with each.
- **You.** In your own chat, your AI works with your full private context: your notes, your connected apps and your preferences.
- **Visitors.** On your public profile, on websites you allow and, if you're a listed expert, in assistants such as ChatGPT and Claude, your AI answers in public mode. It uses the knowledge you've made public and doesn't touch your connected apps.
Each integration runs as one of the two:
| Integration | Runs as | Who it's for |
| --- | --- | --- |
| [Website widget](/docs/website/quickstart) and [public API](/docs/api/build-your-own) | A visitor, in public mode | Anyone on the websites you allow |
| [uare.ai Experts MCP server](/docs/mcp/experts) | A visitor, in public mode | People in assistants such as ChatGPT and Claude, if you're a listed expert |
| [Your MCP server](/docs/mcp/quickstart) | You, with your private context | You, through your own tools |
Your MCP server runs your AI **as you**. Treat your API key like a password, and never use it to answer other people: your AI would answer them with your private context.
## Two MCP servers
uare.ai runs two MCP servers. Any MCP client can connect to either, but they act as different people:
| | [Your MCP server](/docs/mcp/quickstart) | [uare.ai Experts MCP server](/docs/mcp/experts) |
| --- | --- | --- |
| Address | `https://app.uare.ai/api/v1/mcp` | `https://app.uare.ai/api/v1/public/mcp` |
| Key | Your API key | None |
| Runs as | You | A visitor |
| Reaches | Your AI with your private context: your notes, connected apps, skills and preferences | Listed experts' public profiles, and their AIs' answers in public mode |
| For | You, in Claude, Cursor, VS Code or your own code | People in assistants such as ChatGPT and Claude |
Your key turns any MCP client into you, so keep it to yourself. The Experts server takes no key and reaches nothing private, for anyone.
## Allowed websites
Your AI answers the website widget and the public API only on the websites you list in [Settings → Website](https://app.uare.ai/chat-with-me?settings=website). The list starts empty, so nothing can embed your AI until you add a site. The list lives in your own Settings, so you, the AI's owner, make every change to it, even when someone else builds the site. Entries are addresses such as `https://example.com`, or `https://*.example.com` for every subdomain.
The list decides where your AI can appear. It isn't a password: it stops other websites from putting your AI on their pages, not someone writing their own code from scratch. That's why visitors only ever reach your public mode.
## Visitor conversations
Every visitor gets their own conversation. Your AI remembers what was said in it while it lasts: up to two hours, or until an hour passes without messages. A conversation includes 10 messages. After that, visitors can continue on uare.ai, where they can sign up and keep talking to your AI.
Conversations through the uare.ai Experts MCP server follow the same rules. Since that server keeps no session, the assistant carries each conversation from one message to the next with its [`consult` value](/docs/mcp/experts#keep-a-conversation-going).
## Skills and preferences
Skills are markdown files you write for your AI: tone guidelines, rules for your field, example conversations. Preferences are rules your AI always applies to its own behavior.
An agent connected to your MCP server can read both with [`list_skills`](/docs/mcp/tools#list_skills) and [`get_skill`](/docs/mcp/tools#get_skill), so it can work the way you would.
## Connected apps
You can connect apps such as Gmail or Google Drive to your AI in uare.ai. Through your MCP server, the [`act`](/docs/mcp/tools#act) tool uses those connections to look things up or to prepare changes for you.
## Writes wait for your confirmation
Reading through your connected apps happens right away. Anything that would send, create or delete waits: `act` returns a plan and a confirmation token, and only [`confirm_action`](/docs/mcp/tools#confirm_action) carries it out. The token works once and expires after about 10 minutes.
## Experiences
Courses, services and thoughts (articles, artifacts and audiobooks) are what your AI creates and runs for other people. Today they play on uare.ai: a visitor on your website can continue there from your AI's profile.
---
# Add your AI to your website
> Put a chat with your AI on your own site with one line of HTML. Visitors talk to it right there, in public mode.
Your website's visitors can chat with your AI without leaving your page. It takes two steps: the AI's owner allows your site, then you paste one line of HTML.
```html
```
That line adds a chat bubble to the corner of every page it's on. Visitors open it and talk to your AI the way they would on your public profile.
## 1. Allow your website
Your AI only answers on websites listed in its owner's Settings on uare.ai. The AI's owner does this step, signed in to their account: if you're building the site for someone else, send them the addresses to add.
1. Open [Settings → Website](https://app.uare.ai/chat-with-me?settings=website) in uare.ai.
2. Add your site's address, for example `https://example.com`. Add `https://*.example.com` as well to cover every subdomain, such as `www`.
3. To try it on your computer first, add the local address you use, for example `http://localhost:3000`.
Changes take effect within a minute.
> [!IMPORTANT]
> Your AI's profile must be public. Websites can't show a private AI, and the Website page tells you if yours is private.
## 2. Paste the snippet
The Website page shows your snippet with your handle filled in. Your handle is the last part of your public profile's address: for `https://app.uare.ai/p/your-handle`, it's `your-handle`. If your address ends in a long ID instead of a name, that ID is your handle.
Paste the snippet into your site's HTML, just before the closing `