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

# Quickstart: Launch Your AI Support Agent in 5 Minutes

> Get your ChatterMate AI support agent live in about 5 minutes — sign up, connect your AI provider, train it on your docs, and embed the chat widget on your site.

# Quickstart Guide

There are two ways to run ChatterMate. Pick the one that fits you:

> [card] [Use the hosted service](#option-a-hosted-service-fastest)
>
> Sign up and manage everything from the dashboard or the CLI. No infrastructure to run.
> **Best for most people.**

> [card] [Self-host with Docker](#option-b-self-host-with-docker)
>
> Run the full ChatterMate stack on your own infrastructure with the self-host CLI.

> [!NOTE]
>
> **Two different `chattermate` commands.** The **hosted CLI** (`pip install chattermate-cli`) signs
> you up and manages agents/knowledge against the ChatterMate API. The **self-host CLI**
> (`npm install -g chattermate-deploy`) scaffolds and runs the Docker stack. They are separate tools.

## Option A — Hosted service (fastest)

Create a free account and configure your first agent — no browser required.

**1. Install the ChatterMate CLI**

```bash theme={null}
pip install chattermate-cli        # installs the `chattermate` command
# or: npm install -g chattermate-cli
```

See the [CLI reference](https://docs.chattermate.chat/features/cli.md) for `pipx`/`uvx`/`npm` options.

**2. Sign up (or log in)**

```bash theme={null}
chattermate signup \
  --name "Acme Inc" \
  --domain acme.com \
  --admin-email you@acme.com
# password is prompted securely — you're logged in automatically
```

Prefer a browser? Sign up at [app.chattermate.chat](https://app.chattermate.chat) instead.

**3. Create an agent & add knowledge**

```bash theme={null}
chattermate agent create --name "Support" --type customer_support -i "Be concise and friendly"
chattermate knowledge add-url --website https://docs.acme.com --agent-id <agent-id>
```

**4. Go live**

Embed the [chat widget](https://docs.chattermate.chat/features/widget.md) on your site, or let an AI agent drive everything via
the [MCP server](https://docs.chattermate.chat/features/mcp-server.md).

> [card] [AI Agent & Automation Quickstart](https://docs.chattermate.chat/features/agents-quickstart.md)
>
> A single copy-paste flow from signup to a live widget — built for AI agents and CI pipelines.

## Option B — Self-host with Docker

Run the entire stack on your own machine with the self-host CLI (`chattermate-deploy`).

**1. Install the self-host CLI**

```bash theme={null}
npm install -g chattermate-deploy
```

**2. Create Project**

Initialize a new ChatterMate project:

```bash theme={null}
chattermate-deploy init my-chattermate-project
cd my-chattermate-project
```

**3. Start Services**

Start all services with Docker:

```bash theme={null}
chattermate-deploy start
```

**4. Access Dashboard**

Open your browser and visit:

* Frontend Dashboard: `http://localhost/`
* Backend API: `http://localhost:8000`
* API Documentation: `http://localhost:8000/docs`

### Self-host CLI commands

```bash Project Management theme={null}
chattermate-deploy init <project-name>    # Initialize a new project
chattermate-deploy reset                  # Reset and cleanup project
```

```bash Service Management   theme={null}
chattermate-deploy start                  # Start all services
chattermate-deploy stop                   # Stop all services
chattermate-deploy status                 # Check service status
chattermate-deploy logs                   # View service logs
```

## Manual Installation

If you prefer to set up ChatterMate manually or need custom configuration:

### Backend Setup

```bash Setup Commands theme={null}
# Clone the repository
git clone https://github.com/chattermate/chattermate
cd chattermate/backend

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Copy and configure environment variables
cp .env.example .env
# Edit .env file with your configurations
```

```bash .env theme={null}
# Copy .env.example to .env and configure these values:
DATABASE_URL=postgresql://user:pass@localhost:5432/chattermate
FIREBASE_CREDENTIALS=firebase-credentials.json
JWT_SECRET_KEY=your-secret-key
CONVERSATION_SECRET_KEY=yoursecretkey
ENCRYPTION_KEY=encryption.key
CORS_ORIGINS=["https://yourdomain.com"]
# Public URL of this backend — the embedded chat widget derives its API/WS URLs from it
BACKEND_URL=https://yourdomain.com
```

### Frontend Setup

```bash Setup Commands theme={null}
# Navigate to frontend directory
cd frontend

# Install dependencies
npm install

# Copy and configure environment variables
cp .env.example .env
# Edit .env file with your configurations
```

```bash .env theme={null}
# Copy .env.example to .env and configure these values:
VITE_API_URL=http://localhost:8000
VITE_WS_URL=ws://localhost:8000
```

### Database Setup

**1. Create Database**

Create a PostgreSQL database and enable the vector extension:

```sql theme={null}
CREATE DATABASE chattermate;
\c chattermate
CREATE EXTENSION vector;
```

**2. Run Migrations**

Apply the database migrations:

```bash theme={null}
alembic upgrade head
```

### Running the Application

```bash Backend theme={null}
# Start the backend server
uvicorn app.main:app --reload --port 8000
```

```bash Frontend theme={null}
# Start the frontend development server
npm run dev
```

## Verify Installation

1. Open your browser and navigate to `http://localhost:8000/docs` to view the API documentation
2. Visit `http://localhost/` to access the web interface (CLI) or `http://localhost:3000` (manual setup)
3. Try sending a test message in the chat widget

## Next Steps

> [card] [Setup Organization](https://docs.chattermate.chat/features/organization.md)
>
> Setup new organization

> [card] [Configure AI](https://docs.chattermate.chat/features/ai-configuration.md)
>
> Configure AI provider

> [card] [Customize AI Agent](https://docs.chattermate.chat/features/ai-customization.md)
>
> Customizing AI agent

> [card] [Knowledge Base](https://docs.chattermate.chat/features/knowledge-base.md)
>
> Adding knowledge to AI agent

> [card] [Testing](https://docs.chattermate.chat/features/testing.md)
>
> Testing AI agent

> [card] [Widget Integration](https://docs.chattermate.chat/features/widget.md)
>
> Adding chat widget to the website

> [card] [Human Agents](https://docs.chattermate.chat/features/human-agents.md)
>
> Adding Human Agent

> [card] [Roles & Permissions](https://docs.chattermate.chat/features/roles.md)
>
> Managing Roles and Permission

> [card] [Chat Management](https://docs.chattermate.chat/features/chat-management.md)
>
> Managing Customer chat and Taking over chat


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