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

# memanto serve

> Start the local Memanto REST API server.

# memanto serve

Start the local Memanto API server. Exposes REST endpoints for programmatic access.

```bash theme={null}
memanto serve [OPTIONS]
```

**Options:**

| Option           | Default   | Description                 |
| ---------------- | --------- | --------------------------- |
| `--host TEXT`    | `0.0.0.0` | Server host address         |
| `--port INTEGER` | `8000`    | Server port                 |
| `--reload`       | `false`   | Auto-reload on code changes |

**Examples:**

Start on default port:

```bash theme={null}
memanto serve
```

**Output:**

```
INFO:     Uvicorn running on http://0.0.0.0:8000
INFO:     Application startup complete
```

Start on custom port:

```bash theme={null}
memanto serve --port 8001
```

Start with auto-reload (development):

```bash theme={null}
memanto serve --reload
```

Specify host and port:

```bash theme={null}
memanto serve --host 127.0.0.1 --port 9000
```

**API Documentation:**
Once server is running:

* **Swagger UI**: [http://localhost:8000/docs](http://localhost:8000/docs)
* **ReDoc**: [http://localhost:8000/redoc](http://localhost:8000/redoc)
* **OpenAPI JSON**: [http://localhost:8000/openapi.json](http://localhost:8000/openapi.json)

**Health Check:**

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

**Use Cases:**

* Run Memanto as a service
* Programmatic access via REST API
* Integration with external applications
* Development and testing
