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

# server • AI Agent SDK

> Server Module for PraisonAI Agents.

# server

<Badge color="blue">AI Agent</Badge>

Server Module for PraisonAI Agents.

Provides an optional HTTP server with SSE event streaming
for real-time agent communication.

Features:

* REST API for agent operations
* Server-Sent Events (SSE) for real-time updates
* Event bus integration
* Multi-project support
* CORS handling

Usage:
from praisonaiagents.server import AgentServer

# Create and start server

server = AgentServer(port=8080)
server.start()

# Or use as context manager

with AgentServer(port=8080) as server:

# Server is running

pass

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import server
```
