Commands
Start Command
Launch and manage ElizaOS projects and agents in production mode
Start Command
Start the Eliza agent server.
Usage
Options
Option | Description |
---|---|
-c, --configure | Reconfigure services and AI models |
--character <paths...> | Character file(s) to use |
-p, --port <port> | Port to listen on |
Usage
Options
Option | Description |
---|---|
-c, --configure | Reconfigure services and AI models |
--character <paths...> | Character file(s) to use |
-p, --port <port> | Port to listen on |
Production Features
When you run start
, ElizaOS provides production-ready features:
- Optimized Performance: Runs with production optimizations
- Stable Configuration: Uses saved configuration by default
- Service Management: Handles service connections and disconnections
- Error Recovery: Automatic recovery from transient errors
- Resource Management: Efficient resource allocation and cleanup
Startup Process
When you run the start
command, ElizaOS:
- Project Detection: Detects whether you’re in a project or plugin directory
- Configuration Loading: Loads and validates the configuration
- Database Initialization: Initializes the database system
- Plugin Loading: Loads required plugins
- Service Startup: Starts any configured services
- Knowledge Processing: Processes knowledge files if present
- API Server: Starts the HTTP API server
- Agent Runtime: Initializes agent runtimes
- Event Listening: Begins listening for messages and events
Project Detection
ElizaOS automatically detects the type of directory you’re in and adjusts its behavior accordingly:
- ElizaOS Projects: Loads project configuration and starts defined agents
- ElizaOS Plugins: Runs in plugin test mode with the default character
- Other Directories: Uses the default Eliza character
Configuration Management
Default Configuration
- Uses saved configuration from previous runs
- Loads environment variables from
.env
file - Applies project-specific settings
Force Reconfiguration
This is useful when:
- You’ve changed API keys or service credentials
- You want to select different AI models
- Service configurations have changed
- Troubleshooting configuration issues
Environment Variables
The start
command automatically loads environment variables:
From .env File
Direct Environment Variables
Error Handling
Character Loading Errors
If character files fail to load, ElizaOS will:
- Log Errors: Display detailed error messages for each failed character
- Continue Starting: Use any successfully loaded characters
- Fallback: Use the default Eliza character if no characters load successfully
Service Connection Errors
- Automatic retry for transient connection issues
- Graceful degradation when optional services are unavailable
- Error logging with recovery suggestions
Port Management
Default Port
- Port must be specified with
-p
or--port
option - Automatically detects if port is in use
- Suggests alternative ports if specified port is unavailable
Custom Port
Build Process
The start
command does not include built-in build functionality. To build your project before starting: