Overview
Routa provides automatic installation of ACP agents from the ACP Registry. The installer supports three distribution types:- NPX - Node.js packages from npm
- UVX - Python packages from PyPI
- Binary - Platform-specific compiled binaries
Installation Methods
Automatic Installation
Routa automatically selects the best distribution type based on availability:Preferred Distribution Type
Specify a preferred distribution type:Manual Installation
NPM Package
Binary Download
Distribution Type Selection
The installer selects distributions in this order:- NPX (if
npxis available and agent has NPX distribution) - UVX (if
uvxis available and agent has UVX distribution) - Binary (if agent has binary for current platform)
Checking Runtime Availability
Installation Locations
NPX Packages
NPX packages are pre-downloaded to the npm cache:npx -y <package> --help to trigger the download.
UVX Packages
UVX packages are cached by uv:Binary Agents
Binary agents are installed to:Building Agent Commands
After installation, build the command to run the agent:Checking Installation Status
Check if Agent is Available
List All Agents with Status
Uninstalling Agents
Binary Agents
NPX/UVX Packages
NPX and UVX packages are managed by their respective package managers:Archive Extraction
The installer automatically extracts archives:Supported Formats
.tar.gz/.tgz- Gzip-compressed tar.tar.bz2/.tbz2- Bzip2-compressed tar.zip- Zip archive
Extraction Behavior
Platform Detection
Complete Installation Example
Error Handling
Network Failures
Platform Not Supported
Missing Dependencies
Best Practices
- Check before installing - Use
isAgentAvailable()to avoid redundant installs - Handle installation failures gracefully - Network issues are common
- Prefer NPX over binary - NPX agents are easier to update
- Cache agent commands - Don’t rebuild commands on every spawn
- Clean up old versions - Remove unused binary agents to save disk space