Installation
Global Options
All RunAgent commands support these global options:Option | Description |
---|---|
--help | Show help message and exit |
--version | Display RunAgent version |
--verbose | Enable verbose output |
--quiet | Suppress non-error output |
Available Commands
setup
Configure authentication and API keys (Coming Soon)
teardown
Remove RunAgent configuration (Coming Soon)
init
Initialize a new agent project
template
Manage project templates
serve
Run agent locally for testing
upload
Upload agent to remote server (Coming Soon)
start
Start uploaded agent on remote server (Coming Soon)
deploy
Full deployment (upload + start) or local deploy
run
Execute a deployed agent
db-status
Show local database status and statistics
delete
Delete an agent from local database
Command Structure
RunAgent follows a consistent command structure:Command Categories
Setup & Configuration (Authentication Coming Soon)
setup
- Configure authentication with API keys (Coming Soon)teardown
- Remove all RunAgent configuration (Coming Soon)db-status
- Monitor local database and capacity
Project Management
init
- Create new agent projects from templatestemplate
- List and manage available templates
Local Development
serve
- Start local FastAPI server for testing and deploymentdelete
- Remove agents from local database
Remote Deployment (Coming Soon)
upload
- Upload agent code to remote serverstart
- Start uploaded agent on remote serverdeploy
- Full deployment workflow (upload + start)
Execution
run
- Execute deployed agents with flexible input options
Common Workflows
Development Workflow
1
Setup Authentication (Coming Soon)
2
Create Project
3
Install Dependencies
4
Configure Environment
5
Test & Deploy Locally
6
Deploy to Remote (Coming Soon)
Quick Commands Reference
Configuration Management
Authentication Setup (Coming Soon)
- Linux/Mac:
~/.runagent/user_data.json
- Windows:
%USERPROFILE%\.runagent\user_data.json
Environment Variables (Coming Soon)
RunAgent CLI will support these environment variables:Variable | Description |
---|---|
RUNAGENT_API_KEY | API key for authentication (Coming Soon) |
RUNAGENT_BASE_URL | Custom API endpoint (Coming Soon) |
RUNAGENT_CACHE_DIR | Custom cache directory location |
RUNAGENT_LOG_LEVEL | Logging level (DEBUG, INFO, WARNING, ERROR) |
Local Database Management
RunAgent maintains a local SQLite database for managing agents:Capacity Management
The local database supports up to 5 agents simultaneously. When at capacity:Output Formats
Most commands support different output formats:Error Handling
RunAgent provides clear error messages:Common Exit Codes
Code | Meaning |
---|---|
0 | Success |
1 | General error |
2 | Command line usage error |
3 | Configuration error |
4 | Network/API error |
5 | Authentication error |
Advanced Usage
Animation Control
Debugging
Enable verbose output for troubleshooting:Piping and Scripting
Aliases and Shortcuts
Add to your shell configuration:Best Practices
Use Version Control
Use Version Control
Always commit your
runagent.config.json
but never commit .env
files containing API keysTest Before Deploying
Test Before Deploying
Use
runagent serve
and runagent deploy-local
to test locally before deploying remotelyMonitor Capacity
Monitor Capacity
Use
runagent db-status --capacity
to monitor local database usageUse Templates
Use Templates
Start with templates for faster development:
runagent template --list
Automate with Scripts
Automate with Scripts
Use the CLI in CI/CD pipelines for automated deployments
Getting Help
Join our Discord community for support and discussions about RunAgent CLI