> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.astropods.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.astropods.com/_mcp/server.

# Web chat

Web chat is a chat page behind Astropods sign-in. People open it from **Launch** or **Chat**. The `web` adapter relays each message between web chat and your agent over the [Messaging SDK](/messaging-sdk).

## Turn on messaging

Messaging is on when `agent.interfaces` is absent, or when it sets `messaging: true`:

**`astropods.yml`**

```yaml title="astropods.yml"
agent:
  build:
    context: .
    dockerfile: Dockerfile
  interfaces:
    messaging: true
```

Once you set `interfaces`, `messaging` defaults to `false`, so set it to keep web chat.

## Turn on web chat at deploy

#### Web app

On the deploy page, select **web** under **Messaging interface**.

#### CLI

```bash
ast blueprint deploy my-agent --adapter web
```

Without `--adapter`, the deploy turns on `web` only. A redeploy without `--adapter` keeps the agent's current adapters.

An agent with no messaging has no adapters, and `--adapter` has no effect on it. For the file size limit and every other deploy setting, see [Deploy a blueprint](/deploy-agent#messaging-interface).

## Who can chat with the agent

A new agent opens web chat to you.

#### Web app

Set access in **Interface access** on the deploy page, or later on the agent's **Configuration** > **Access** page.

#### CLI

```bash
ast agent access set --name my-agent --web org=acme
```

Changes take effect within a minute, without a redeploy.

To open web chat with no sign-in, set `public: { web: true }` in the [deploy file](/deploy-spec#31-public). See [Access control](/access-control).

## Run it locally

List `web` under `dev`:

**`astropods.yml`**

```yaml title="astropods.yml"
dev:
  interfaces:
    messaging:
      adapters: [web]
```

`ast project start` serves web chat at `http://localhost:3100`, or the next free port up to `3199`. See [Run your agent locally](/run-locally).

## Next steps

* [Slack](/slack): answer in Slack as well
* [Messaging SDK](/messaging-sdk): receive and answer messages in your code
* [Custom app](/custom-app): serve your own web app as well