Synopsis
Description
Thedeploy
command handles agent deployment workflows. Currently supports local deployment, with remote cloud deployment coming soon.
Note: Remote deployment features require authentication and are coming soon. Local deployment is fully available through the
serve
command.Options
Option | Description | Default |
---|---|---|
--folder | Folder containing agent files | Current directory |
--local , -l | Deploy locally (redirects to serve) | false |
--id | Agent ID (for remote start only) | None |
--framework | Framework type (auto-detected if not specified) | Auto-detect |
--config | JSON configuration for deployment | None |
Current Usage
Local Deployment
For local deployment, use theserve
command directly:
--local
option internally calls the serve
command with automatic:
- Port allocation
- Database management
- Agent registration
Coming Soon: Remote Deployment
Remote Deployment Workflow (Coming Soon)
Planned Remote Features
1
Authentication Setup
2
Agent Upload
3
Remote Start
4
Full Deployment
Local Deployment Process (Available Now)
Usingrunagent serve
for local deployment:
1
Validation
- Checks
runagent.config.json
- Validates entrypoints and framework
- Verifies agent structure
2
Database Registration
- Registers agent in local database
- Allocates unique port automatically
- Handles capacity management (5 agents max)
3
Server Start
- Starts FastAPI server
- Configures endpoints
- Enables real-time execution
4
Ready for Use
- Agent available at local endpoint
- Can execute via Python SDK or CLI
Examples
Current Local Deployment
Local Deployment via Deploy Command
Future Remote Examples (Coming Soon)
Output
Local Deployment Output
Future Remote Deployment Output (Coming Soon)
Local Database Management
Local deployments are managed through a SQLite database:- Maximum 5 agents simultaneously
- Automatic port allocation (8450-8454)
- Replace oldest agent when at capacity
Configuration
Agent Configuration
Inrunagent.config.json
:
Future Remote Configuration (Coming Soon)
Validation Checks
Before deployment, RunAgent validates:Error Handling
Common Local Deployment Errors
Troubleshooting
Local Deployment Issues
Local Deployment Issues
Configuration Errors
Configuration Errors
Port Conflicts
Port Conflicts
Local deployment automatically handles port allocation:
- Starts from port 8450
- Increments if port is busy
- Maximum 5 agents (ports 8450-8454)
Best Practices
- Test with Serve: Always use
runagent serve
for local development - Monitor Capacity: Check
runagent db-status --capacity
regularly - Clean Up: Remove unused agents with
runagent delete
- Version Control: Keep
runagent.config.json
in version control - Environment Setup: Configure
.env
files properly
Migration Guide
Current Workflow
Future Remote Workflow (Coming Soon)
See Also
runagent serve
- Local development server (recommended)runagent upload
- Upload agent to remote (coming soon)runagent start
- Start remote agent (coming soon)runagent db-status
- Check local databaserunagent run
- Execute agents