> ## 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.

# serve • AI Agent SDK

> serve: Start the AgentApp server.

# serve

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**AgentOSProtocol**](../classes/AgentOSProtocol) class in the [**protocols**](../modules/protocols) module.

Start the AgentApp server.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def serve(host: Optional[str], port: Optional[int], reload: bool) -> None
```

## Parameters

<ParamField query="host" type="Optional" required={false}>
  Host address to bind to (default: "0.0.0.0")
</ParamField>

<ParamField query="port" type="Optional" required={false}>
  Port number to listen on (default: 8000)
</ParamField>

<ParamField query="reload" type="bool" required={false} default="False">
  Enable auto-reload for development (default: False) \*\*kwargs: Additional server configuration
</ParamField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/app/protocols.py#L58">
  `praisonaiagents/app/protocols.py` at line 58
</Card>
