# Distri > Distri runs embedded agents for your end users. The agent runs on Distri; its > tools are functions your app already has, and they run in the user's session. > The same agents answer on Telegram, WhatsApp and Discord and run in workflows, > with cost and limits tracked per end user. An agent is a > markdown file with TOML front matter; the same agent runs from the CLI, as a > streaming API, inside your app, or on a chat channel. Distri is open > source under the MIT licence and free to self-host. Distri Cloud is the hosted > option. ## The three offerings - Embedded agents: an agent inside your web app that calls the page's own functions as client-side tools. UI through `@distri/react` components or a script-tag embed. A React Native package (`@distri/react-native`) is on npm as an early 0.1 release. - Bots: a Telegram, WhatsApp or Discord bot wired to an agent or workflow, triggered by a message, a slash command, a schedule or a webhook. Runs on Distri Cloud. - AI gateway: records every model call made through Distri with tokens and cost, by agent, end user, API key and source. Limits per workspace, agent, end user or API key are checked before the call. You bring your own provider keys. Protocols: every agent is an A2A-compatible JSON-RPC endpoint with an agent card. Agents use remote MCP servers (Streamable HTTP or SSE) as tools, with sign-in per workspace or per end user. ## For coding agents - [Distri skill (SKILL.md)](https://distri.dev/skills/distri/SKILL.md): drop-in instructions to build, run and deploy agents - [Install the skill](https://distri.dev/skills/install.sh): `curl -fsSL https://distri.dev/skills/install.sh | sh` - [Full text reference](https://distri.dev/llms-full.txt): API, CLI and examples in one file - [Skills index](https://distri.dev/skills.txt): all skill files and how to use them - [Distri skill for coding agents](https://distri.dev/docs/coding-agents/): setup for Claude Code, Cursor and others ## Start here - [Docs overview](https://distri.dev/docs/): what Distri is and the mental model - [Getting Started](https://distri.dev/docs/getting-started/): install the CLI, write an agent, push it, embed it - [Agent Definition](https://distri.dev/docs/concepts/agent-definition/): the markdown and TOML agent format - [CLI Reference](https://distri.dev/docs/reference/cli-reference/): every command and flag - [Gallery](https://distri.dev/samples/): recorded runs of real agents driving real UIs - [Pricing](https://distri.dev/pricing/) ## Embedded agents - [Embedded AI agents for your product](https://distri.dev/embedded-agents/): how client-side tools work, React / React Native / script-tag code, auth and end-user identity, what runs where, approvals, theming - [Using Distri in your product](https://distri.dev/docs/guides/client/guide-distri-provider/): DistriProvider, Chat, external tools - [In-Product Tools](https://distri.dev/docs/guides/agent/in-product-tools/): your app's functions as client-side tools - [React and Angular API](https://distri.dev/docs/guides/client/client-api-reference/): hooks, Chat props, services - [distri-client (@distri/core)](https://distri.dev/docs/guides/client/guide-distri-client/): run agents without a UI framework - [Packages](https://distri.dev/docs/packages/overview/): what each npm package is for - [Streaming Events](https://distri.dev/docs/lifecycle-events/): run, step, tool and message events - [Theming](https://distri.dev/docs/theming/) ## Bots and workflows - [Channels](https://distri.dev/docs/channels/overview/): connect agents to messaging platforms - [Workflows](https://distri.dev/docs/guides/agent/workflows/): fixed sequences of steps that can pause for a person ## Gateway, usage and limits - [Usage Tracking](https://distri.dev/docs/cloud/usage/): tokens and cost per workspace and per end user, with limits - [API Keys](https://distri.dev/docs/cloud/api-keys/) - [Secrets](https://distri.dev/docs/cloud/secrets/): provider keys and other credentials - [Traces](https://distri.dev/docs/traces/): every run and model call as an OpenTelemetry trace ## Build agents - [Managing Agents](https://distri.dev/docs/managing-agents/): keep agents in your repo and push them - [Skills](https://distri.dev/docs/guides/agent/agent-skills/): on-demand knowledge an agent loads at runtime - [Prompts](https://distri.dev/docs/guides/agent/prompts/): reusable prompt templates - [Sub-Tasks](https://distri.dev/docs/concepts/sub-tasks/): spawning and supervising child agents - [Deep Agents](https://distri.dev/docs/concepts/deep-agents/): planning, sub-agents and context compaction - [Sessions](https://distri.dev/docs/concepts/using-session/): state scoped to a thread ## Self-hosting - [Run Distri locally](https://distri.dev/docs/self-hosted/local-server/): `distri serve`, no account needed - [Self-Hosted Setup](https://distri.dev/docs/self-hosted/setup/) - [Database Schema](https://distri.dev/docs/self-hosted/database/) ## Blog - [Blog](https://distri.dev/blog/): walkthroughs and samples