> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cowagent.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Console

> The web console is CowAgent's default channel: chat in your browser, manage models, skills, memory and channels online, protect it with a password, and enable an OpenAI-compatible chat API.

The Web Console is CowAgent's default channel. It runs automatically once started, letting you chat with the Agent in a browser and manage models, skills, memory, channels, and other configuration online.

## Configuration

```json theme={null}
{
  "channel_type": "web",
  "web_host": "0.0.0.0",
  "web_port": 9899,
  "web_password": "",
  "external_api_enabled": false,
  "external_api_token": "",
  "enable_thinking": false
}
```

| Parameter | Description | Default |
| - | - | - |
| `channel_type` | Set to `web` | `web` |
| `web_host` | Web service listen address. When empty, it listens on `127.0.0.1` (local only) without a password and on `0.0.0.0` once a password is set. It can also be changed from the console, see "Access URL" below | `""` |
| `web_port` | Web service listen port | `9899` |
| `web_public_url` | Display address used in API URLs, share links and embed code. Enter your domain if you have one; leave empty to detect it | `""` |
| `web_password` | Access password. Leave empty to disable password protection; recommended when listening on `0.0.0.0` | `""` |
| `external_api_enabled` | Turn on the [Chat API](https://docs.cowagent.ai/extensions/chat-api.md) | `false` |
| `external_api_token` | API key of the [Chat API](https://docs.cowagent.ai/extensions/chat-api.md), kept while the API is off | `""` |
| `web_session_expire_days` | Login session validity in days | `30` |
| `web_file_serve_root` | Additional root directory the web console can directly read/send files from (defaults to the user home directory). Configured Agent workspaces, including disabled Agents, and opened project directories are also allowed; set to `/` to allow the whole filesystem | `"~"` |
| `enable_thinking` | Whether to enable deep thinking mode | `false` |

Once a password is configured, you must enter it to log in when accessing the console. The login session is kept for 30 days by default, so restarting the service during that period does not require re-login. The password can also be changed online from the "Configuration" page in the console. A client that enters a wrong password 5 times in a row is locked out for 10 minutes.

## Access URL

After starting the project, visit:

* Local: `http://localhost:9899`
* Server: `http://<server-ip>:9899`

> [!NOTE]
>
> Ensure the server firewall and security group allow the corresponding port.

Under **Config → Integrations → Addresses** in the console you can change:

* **Display address**: the address used in API URLs, share links and embed code. Enter your domain if you have one; leave empty to detect it.
* **Listen address**: the IP and port the service listens on. `127.0.0.1` is reachable from this machine only; `0.0.0.0` lets other devices on the local network or the internet connect and requires an access password first. After saving, the service switches to the new address without a restart, and goes back to the old one if the new one cannot be used. While other devices can connect, this machine's local network addresses are shown below.

![Integrations](https://cdn.jsdelivr.net/gh/zhayujie/cowagent-assets@main/screenshots/en/web-console-integrations.png)

## HTTPS and Domain Access

To serve the console on a domain with HTTPS, use one of the two setups below.

**Option 1: nginx reverse proxy (recommended).** Let nginx terminate TLS and forward plain HTTP to the console, and set `"web_host": "127.0.0.1"` so the console is only reachable through nginx:

```nginx theme={null}
server {
    listen 443 ssl;
    server_name cow.example.com;

    ssl_certificate     /etc/letsencrypt/live/cow.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/cow.example.com/privkey.pem;

    location / {
        proxy_pass http://127.0.0.1:9899;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        # Replies stream over SSE: keep connections open and unbuffered
        proxy_read_timeout 3600s;
        proxy_buffering off;
        # File uploads up to 512 MB
        client_max_body_size 512m;
    }
}
```

**Option 2: direct HTTPS.** The console serves TLS itself:

```json theme={null}
{
  "web_https_enabled": true,
  "web_ssl_certfile": "/etc/letsencrypt/live/cow.example.com/fullchain.pem",
  "web_ssl_keyfile": "/etc/letsencrypt/live/cow.example.com/privkey.pem"
}
```

| Parameter | Description | Default |
| - | - | - |
| `web_https_enabled` | Serve the console over HTTPS directly | `false` |
| `web_ssl_certfile` | PEM certificate file (full chain recommended) | `""` |
| `web_ssl_keyfile` | PEM private key file | `""` |

A missing or unreadable certificate stops startup with an error instead of falling back to HTTP.

> [!NOTE]
>
> The console must be served at the root path; use a dedicated subdomain rather than a sub-path such as `/cow/`. If you use MCP servers with OAuth, also set `"mcp_oauth_redirect_base": "https://cow.example.com"`.

## Chat API

The Web Console's port also serves an OpenAI-compatible chat API, `/v1/chat/completions`. It is off by default; turn it on and get an API key from the Chat API card on the settings page. See [Chat API](https://docs.cowagent.ai/extensions/chat-api.md).

## Features

### Chat Interface

Supports streaming output with real-time display of the Agent's reasoning process and tool calls, providing intuitive observation of the Agent's decision-making. Deep thinking can be toggled via configuration or the "Agent Configuration" switch in the console.

![](https://cdn.link-ai.tech/doc/20260227180120.png)

#### Multi-Session Management

The chat interface supports multi-session management. All session records are persistently stored in the database:

* **Session List**: Click the history icon on the left to expand/collapse the session list panel, with scroll-to-load support for all historical sessions
* **AI-Generated Titles**: After the first exchange in a new session, the model is automatically called to generate a short summary title
* **New Session**: Click the "New Chat" button at the top of the session list or the `+` button in the input area to create a new session
* **Delete Session**: Click the delete button on a session item and confirm to permanently delete the session and all its messages
* **Clear Context**: Click the clear button in the input area to insert a divider in the current session. Messages above the divider are still displayed but no longer included as context for the model
* **Workspace / Model / Permission**: Set a workspace, model, and permission mode for the current session below the input box. When you work across several projects, past sessions are grouped by project automatically. See [Architecture - Project Workspace](https://docs.cowagent.ai/intro/architecture.md#project-workspace)

![](https://cdn.jsdelivr.net/gh/zhayujie/cowagent-assets@main/screenshots/en/web-console-workspace-project-demo.png)

Sessions grouped by workspace, with a per-session workspace and model

#### Permission Modes

Each session can run under its own permission mode, controlling how far the Agent can reach into files and commands: read-only, workspace-write, or full-access. When a tool call is blocked, the hint is clickable so you can adjust the permission on the spot.

![](https://cdn.jsdelivr.net/gh/zhayujie/cowagent-assets@main/screenshots/en/web-console-access-mode.png)

Per-session permission modes: read-only, workspace-write, full-access

### Artifacts

Collects the pages, documents, images and videos your agents create on one timeline, with preview, pinning, and a jump back to the original conversation. The page is hidden by default; show it from the [Custom Menu](https://docs.cowagent.ai/extensions/custom-menu.md) editor:

![](https://cdn.jsdelivr.net/gh/zhayujie/cowagent-assets@main/screenshots/en/web-console-artifacts.png)

### Model Management

Manage text, image, voice, and embedding model configurations for different providers online — no need to edit config files manually:

![](https://cdn.link-ai.tech/doc/20260521212949.png)

### Skill Management

View and manage Agent skills (Skills) online:

![](https://cdn.link-ai.tech/doc/20260227173403.png)

### Memory Management

View and manage Agent memory online:

![](https://cdn.link-ai.tech/doc/20260227173349.png)

### Channel Management

Manage connected channels online with real-time connect/disconnect operations:

![](https://cdn.link-ai.tech/doc/20260227173331.png)

### Scheduled Tasks

View and manage scheduled tasks online, including one-time tasks, fixed intervals, and Cron expressions:

![](https://cdn.link-ai.tech/doc/20260227173704.png)

### Logs

View Agent runtime logs in real time for monitoring and troubleshooting:

![](https://cdn.link-ai.tech/doc/20260227173514.png)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.