Server Adapters CLI
Command-line interface for running AI servers
Run Agent HTTP servers from the command line.
Run AI agent servers from the command line.
Quick Start
- Simple Usage
bash praisonai-ts server start --port 3000 --instructions "You are helpful" - With Configuration
bash praisonai-ts server start --framework express --port 3000 --streaming
Commands
Start Server
# 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
praisonai-ts server start \
--framework express \
--port 3000 \
--instructions "You are a helpful API assistant" \
--streamingWith Tools
praisonai-ts server start \
--port 3000 \
--tools calculator,search \
--streamingEnvironment Variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes | For the agent |
PORT | No | Server port |