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

# Getting started

# Getting Started with AgentArea

<Info>
  Create your first AI agent in under 5 minutes. This guide walks you through installation, setup, and building your first working agent.
</Info>

<Warning>
  Make sure you have Docker installed and running before starting.
</Warning>

## 📋 Prerequisites

### Required Software

* **Docker** (v20.10+) or **Podman** (v4.0+)
* **Docker Compose** (v2.0+)
* **Git** (v2.30+)
* **Python** (v3.11+) - for local development
* **Node.js** (v18+) - for frontend development

### System Requirements

* **RAM**: 8GB minimum, 16GB recommended
* **Storage**: 10GB free space
* **OS**: Linux, macOS, or Windows with WSL2

## 🚀 Quick Setup (5 minutes)

### 1. Clone the Repository

```bash theme={null}
git clone https://github.com/agentarea/agentarea.git
cd agentarea
```

### 2. Environment Configuration

```bash theme={null}
# Copy environment template
cp agentarea-platform/docs/env.example .env

# Edit configuration (optional for development)
vim .env
```

### 3. Start Development Environment

```bash theme={null}
# Using Docker Compose
docker compose -f docker-compose.dev.yaml up -d

# Or using make
make up-dev
```

### 4. Verify Installation

```bash theme={null}
# Check service health
curl http://localhost:8000/health

# Expected response: {"status": "healthy"}
```

## 🔧 Development Environment

### Service Overview

| Service         | Port | Purpose                 | Health Check                   |
| --------------- | ---- | ----------------------- | ------------------------------ |
| **Core API**    | 8000 | Main application API    | `http://localhost:8000/health` |
| **MCP Manager** | 7999 | MCP server management   | `http://localhost:7999/health` |
| **Traefik**     | 8080 | Reverse proxy dashboard | `http://localhost:8080`        |
| **PostgreSQL**  | 5432 | Database                | Internal                       |
| **Redis**       | 6379 | Cache & sessions        | Internal                       |
| **MinIO**       | 9000 | Object storage          | `http://localhost:9000`        |

### Key URLs

* **API Documentation**: `http://localhost:8000/docs`
* **Admin Interface**: `http://localhost:8000/admin`
* **MCP External Access**: `http://localhost:81/mcp/{slug}/mcp/`

## 🛠️ Development Workflow

### Daily Development

```bash theme={null}
# Start services
docker compose -f docker-compose.dev.yaml up -d

# View logs
docker compose -f docker-compose.dev.yaml logs -f app

# Stop services
docker compose -f docker-compose.dev.yaml down
```

### Database Operations

```bash theme={null}
# Run migrations
docker compose -f docker-compose.dev.yaml run --rm app alembic upgrade head

# Create new migration
docker compose -f docker-compose.dev.yaml run --rm app alembic revision --autogenerate -m "description"

# Reset database (development only)
docker compose -f docker-compose.dev.yaml down -v
docker compose -f docker-compose.dev.yaml up -d
```

### CLI Usage

AgentArea ships an interactive CLI (`@agentarea/cli`) for authenticating, discovering agents, and streaming task output. See the [`agentarea-cli` README](https://github.com/agentarea/agentarea/tree/main/agentarea-cli) for full usage.

```bash theme={null}
# Install globally
npm install --global agentarea-cli

# Launch the interactive CLI
agentarea-cli
```

## 🧪 Testing Your Setup

### 1. API Health Check

```bash theme={null}
curl -X GET http://localhost:8000/health
# Expected: {"status": "healthy", "timestamp": "..."}
```

### 2. Create Your First Agent

```bash theme={null}
curl -X POST http://localhost:8000/v1/agents/ \
  -H "Content-Type: application/json" \
  -d '{
    "name": "hello-world",
    "description": "My first agent",
    "type": "chat"
  }'
```

### 3. Test MCP Integration

```bash theme={null}
# List available MCP servers
curl http://localhost:8000/v1/mcp-servers/

# Test MCP flow
python test_mcp_flow.py
```

### 4. Verify Database Connection

```bash theme={null}
# Check database tables
docker compose -f docker-compose.dev.yaml exec db psql -U agentarea -d agentarea -c "\dt"
```

## 📚 Next Steps

### For Backend Developers

1. **[Platform Architecture](/architecture)** - Understand the system design
2. **[Building Agents](/building-agents)** - Create and configure AI agents
3. **[API Reference](/api-reference)** - Explore available endpoints
4. **[Agent Communication](/agent-communication)** - A2A protocol patterns

### For Frontend Developers

1. **[Platform Overview](/platform-overview)** - Understand the full stack
2. **[API Reference](/api-reference)** - API integration patterns
3. **[Features](/features)** - All platform capabilities

### For DevOps/Infrastructure

1. **[Infrastructure](/infrastructure)** - Architecture and scaling patterns
2. **[Deployment Guide](/deployment)** - Docker, Kubernetes, and cloud deployment
3. **[Monitoring](/monitoring)** - Observability and alerting setup

### For Product/Business

1. **[Platform Overview](/platform-overview)** - Vision and architecture
2. **[Roadmap](/roadmap)** - Development priorities
3. **[Features](/features)** - All platform capabilities

## 🔍 Troubleshooting

### Common Issues

#### Services Won't Start

```bash theme={null}
# Check Docker daemon
docker info

# Check port conflicts
lsof -i :8000

# Clean restart
docker compose -f docker-compose.dev.yaml down -v
docker compose -f docker-compose.dev.yaml up -d
```

#### Database Connection Errors

```bash theme={null}
# Check database logs
docker compose -f docker-compose.dev.yaml logs db

# Reset database
docker compose -f docker-compose.dev.yaml down -v
docker compose -f docker-compose.dev.yaml up -d db
# Wait 30 seconds, then start other services
```

#### Permission Errors

```bash theme={null}
# Fix file permissions (Linux/macOS)
sudo chown -R $USER:$USER .

# Or run with sudo (not recommended)
sudo docker compose -f docker-compose.dev.yaml up -d
```

#### Module Import Errors

```bash theme={null}
# Rebuild containers
docker compose -f docker-compose.dev.yaml build --no-cache
docker compose -f docker-compose.dev.yaml up -d
```

### Getting Help

1. **Check Logs**: `docker compose -f docker-compose.dev.yaml logs -f`
2. **Service Status**: `docker compose -f docker-compose.dev.yaml ps`
3. **Health Checks**: Visit health endpoints listed above
4. **Documentation**: Check our [troubleshooting guide](/troubleshooting)
5. **Community Support**: Ask for help in [GitHub Discussions](https://github.com/agentarea/agentarea/discussions)

## 🎉 Success!

If you've reached this point, you should have:

* ✅ AgentArea running locally
* ✅ All services healthy
* ✅ Database connected
* ✅ First API call successful

## 🚀 What's Next?

<CardGroup cols={2}>
  <Card title="Build Your First Agent" icon="bot" href="/building-agents">
    Create a working AI agent with our step-by-step guide
  </Card>

  <Card title="Explore Examples" icon="play" href="/examples">
    See real-world examples and use cases
  </Card>
</CardGroup>

**Ready to build amazing AI agent experiences!** 🚀

***

*Last updated: March 2026*
