Skip to main content
Run Agent HTTP servers from the command line. Run AI agent servers from the command line.

Quick Start

1

Simple Usage

praisonai-ts server start --port 3000 --instructions "You are helpful"
2

With Configuration

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

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

Server Adapters

Express, Hono, Fastify

Agent

Agent configuration