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

# Server Adapters CLI

> Command-line interface for running AI servers

# Server Adapters CLI

Run AI agent servers from the command line.

## Commands

### Start Server

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Start HTTP server
praisonai-ts server start \
  --port 3000 \
  --instructions "You are a helpful assistant"

# With specific framework
praisonai-ts server start \
  --framework express \
  --port 3000

# With streaming
praisonai-ts server start \
  --streaming \
  --cors "*"
```

## Options

| Option           | Type    | Default  | Description                              |
| ---------------- | ------- | -------- | ---------------------------------------- |
| `--port`         | number  | `3000`   | Server port                              |
| `--framework`    | string  | `http`   | Framework (http, express, hono, fastify) |
| `--instructions` | string  | -        | Agent instructions                       |
| `--model`        | string  | `gpt-4o` | Model to use                             |
| `--streaming`    | boolean | `false`  | Enable streaming                         |
| `--cors`         | string  | -        | CORS origin                              |

## Examples

### Express Server

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts server start \
  --framework express \
  --port 3000 \
  --instructions "You are a helpful API assistant" \
  --streaming
```

### With Tools

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts server start \
  --port 3000 \
  --tools calculator,search \
  --streaming
```

## Environment Variables

| Variable         | Required | Description   |
| ---------------- | -------- | ------------- |
| `OPENAI_API_KEY` | Yes      | For the agent |
| `PORT`           | No       | Server port   |

## Related Commands

* `praisonai-ts server stop` - Stop server
* `praisonai-ts server status` - Check status
