Server Adapters CLI

Command-line interface for running AI servers

Run Agent HTTP servers from the command line.

Diagram

User

CLI

Agent

HTTP Server

Run AI agent servers from the command line.

Quick Start

  1. Simple Usage
    bash
    praisonai-ts server start --port 3000 --instructions "You are helpful"
  2. With Configuration
    bash
    praisonai-ts server start --framework express --port 3000 --streaming

Commands

Start Server

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

OptionTypeDefaultDescription
--portnumber3000Server port
--frameworkstringhttpFramework (http, express, hono, fastify)
--instructionsstring–Agent instructions
--modelstringgpt-4oModel to use
--streamingbooleanfalseEnable streaming
--corsstring–CORS origin

Examples

Express Server

bash
praisonai-ts server start \
  --framework express \
  --port 3000 \
  --instructions "You are a helpful API assistant" \
  --streaming

With Tools

bash
praisonai-ts server start \
  --port 3000 \
  --tools calculator,search \
  --streaming

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesFor the agent
PORTNoServer port

Related