Skip to main content

Server Adapters CLI

Run AI agent servers from the command line.

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

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

Examples

Express Server

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

With Tools

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

Environment Variables

VariableRequiredDescription
OPENAI_API_KEYYesFor the agent
PORTNoServer port
  • praisonai-ts server stop - Stop server
  • praisonai-ts server status - Check status