AgentOS replaces AgentApp as the recommended class name. The old name still works as a silent alias.Quick Start
1
Simple Usage
2
With Configuration
3
Test
How It Works
Configuration Options
API Endpoints
Chat Request
Chat Response
Common Patterns
- Single Agent
- Multi-Agent
- With Teams
- Custom API Prefix
Best Practices
Use environment variables for port
Use environment variables for port
Read port from environment for deployment flexibility.
Configure CORS for production
Configure CORS for production
Restrict CORS origins in production instead of using ’*’.
Stop server gracefully
Stop server gracefully
Use the stop() method for clean shutdown.
Backward Compatibility
AgentApp works as a silent alias with no deprecation warnings.managers→teams(deprecated)workflows→flows(deprecated)
Related
Agent
Single agent documentation
AgentTeam
Multi-agent orchestration
AgentFlow
Step-based workflows
Server Adapters
Express, Hono, Next.js adapters

