This guide covers all methods to install the Agent-as-Code binary on your system.
- macOS: 10.15+ (Catalina) or later
- Linux: Ubuntu 18.04+, CentOS 7+, or equivalent
- Windows: Windows 10+ (64-bit)
- Docker: Required for building and running agents
# Download the binary
curl -L -o agent https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-darwin-amd64
# Make it executable
chmod +x agent
# Move to system PATH
sudo mv agent /usr/local/bin/agent
# Verify installation
agent version# Download the binary
curl -L -o agent https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-darwin-arm64
# Make it executable
chmod +x agent
# Move to system PATH
sudo mv agent /usr/local/bin/agent
# Verify installation
agent version# Download the binary
curl -L -o agent https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-linux-amd64
# Make it executable
chmod +x agent
# Move to system PATH
sudo mv agent /usr/local/bin/agent
# Verify installation
agent version# Download the binary
curl -L -o agent https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-linux-arm64
# Make it executable
chmod +x agent
# Move to system PATH
sudo mv agent /usr/local/bin/agent
# Verify installation
agent version# Download the binary
Invoke-WebRequest -Uri "https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-windows-amd64.exe" -OutFile "agent.exe"
# Move to system PATH (run as Administrator)
Move-Item "agent.exe" "C:\Windows\System32\agent.exe"
# Verify installation
agent version# Download the binary
Invoke-WebRequest -Uri "https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-windows-arm64.exe" -OutFile "agent.exe"
# Move to system PATH (run as Administrator)
Move-Item "agent.exe" "C:\Windows\System32\agent.exe"
# Verify installation
agent version# For Linux/macOS users who prefer wget
wget -O agent https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)
chmod +x agent
sudo mv agent /usr/local/bin/agent# Detect your platform automatically
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
# Map architecture names
case $ARCH in
x86_64) ARCH="amd64" ;;
aarch64) ARCH="arm64" ;;
arm64) ARCH="arm64" ;;
esac
# Download appropriate binary
curl -L -o agent "https://github.com/pxkundu/agent-as-code/releases/latest/download/agent-${OS}-${ARCH}"
chmod +x agent
sudo mv agent /usr/local/bin/agentIf you prefer to use Docker instead of installing the binary:
# Pull the latest image
docker pull pxkundu/agent-as-code:latest
# Run commands using Docker
docker run --rm pxkundu/agent-as-code:latest version
docker run --rm pxkundu/agent-as-code:latest init my-agentFor Python users, you can also install via pip:
# Install from PyPI
pip install agent-as-code
# Verify installation
agent versionAfter installation, verify everything works:
# Check version and ASCII art
agent version
# Check help
agent --help
# Test initialization
agent init test-agent --template chatbot# Make sure the binary is executable
chmod +x agent
# Check file permissions
ls -la agent# Verify the binary is in PATH
which agent
# Check if /usr/local/bin is in your PATH
echo $PATH | grep /usr/local/bin
# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="/usr/local/bin:$PATH"# Check if it's the right architecture
file $(which agent)
# Verify it's not corrupted
agent version# Check Docker is running
docker --version
docker ps
# Restart Docker if needed
sudo systemctl restart docker # Linux
# Or restart Docker Desktop on macOS/WindowsAfter successful installation:
- Read the Quickstart Guide to create your first agent
- Explore Templates for pre-built agent configurations
- Check CLI Overview for all available commands
- Review Examples for practical use cases
- CLI Overview - Complete command reference
- Quickstart Guide - Get started in minutes
- Architecture - Understand the system design
- Examples - Real-world usage examples
- GitHub Issues: Report bugs or request features
- Documentation: Browse the
/docsfolder for comprehensive guides - Examples: Check the
/examplesfolder for working code samples
Happy coding with Agent-as-Code! 🚀