---
title: How Klex Bots work
sidebar:
  label: Overview
description: Learn how a Klex Bot runs, remembers, and works through connected computers and apps.
related:
  - /bot/quickstart
  - /bot/concepts/brain-and-computers
  - /bot/concepts/memory
  - /cloud/hosted-vs-local
---

A Klex Bot is an autonomous agent with its own identity and memory. It runs in a Bot environment and works in other environments connected through MCP (Model Context Protocol).

The Bot's own environment keeps it running and manages its memory. Its work happens in connected computers and apps.

<div class="bot-overview-diagram">
  <img class="bot-overview-wide" src="/images/bot-overview-wide.svg" width="1200" height="480" alt="A Klex Bot and its memory are inside the Bot environment. Memory holds skills and learnings. Separate MCP connections link the Bot to a computer and an app outside the environment, where its work happens." />
  <img class="bot-overview-compact" src="/images/bot-overview-compact.svg" width="640" height="810" alt="A Klex Bot and its memory are inside the Bot environment. Memory holds skills and learnings. Separate MCP connections link the Bot to a computer and an app outside the environment, where its work happens." />
</div>

## Where the Bot runs

You can use a Cloud-hosted Bot or run a Bot in your own environment. Klex recommends Cloud hosting; a self-hosted Bot can also be enrolled in Klex Cloud. Cloud enrollment is not technically required for a self-hosted Bot, although the standalone experience is less complete. See [hosted vs. self-hosted](/cloud/hosted-vs-local).

## How the Bot works with computers and apps

A Bot connects to an MCP server to reach an external environment. That environment can be a full computer or an app such as GitHub or Google Workspace.

For most MCPs, the Bot acts through an account or identity of its own. That identity is configured per Bot and can have permissions and access grants. See [Connections](/bot/concepts/brain-and-computers) for the connection and access model.

## What the Bot remembers

Memory helps a Bot build on its experience. It uses skills and learnings for recurring work and can recall relevant context from past activity. See [Memory](/bot/concepts/memory) to learn more and [the data directory](/bot/concepts/data-directory) for storage and administrator access.

## Next steps

- [Create a Bot](/bot/quickstart)
- [Connect computers and apps](/bot/concepts/brain-and-computers)
- [Explore Memory](/bot/concepts/memory)
