Installing Clawdbot
Prerequisites
Section titled “Prerequisites”Before installing Clawdbot, ensure you have:
- Python 3.10 or higher
- Git (for cloning the repository)
- An Anthropic API key (Get one here)
- pip (Python package manager)
Installation Methods
Section titled “Installation Methods”-
Install Python (if not already installed):
Terminal window # Using Homebrewbrew install python@3.11 -
Clone the repository:
Terminal window git clone https://github.com/polvoazul/clawdbot.gitcd clawdbot -
Create a virtual environment:
Terminal window python3 -m venv venvsource venv/bin/activate -
Install dependencies:
Terminal window pip install -r requirements.txt -
Configure environment:
Terminal window cp .env.example .env# Edit .env with your Anthropic API key
-
Install Python:
Terminal window # Ubuntu/Debiansudo apt updatesudo apt install python3.11 python3.11-venv python3-pip# Fedorasudo dnf install python3.11# Archsudo pacman -S python -
Clone the repository:
Terminal window git clone https://github.com/polvoazul/clawdbot.gitcd clawdbot -
Create a virtual environment:
Terminal window python3 -m venv venvsource venv/bin/activate -
Install dependencies:
Terminal window pip install -r requirements.txt -
Configure environment:
Terminal window cp .env.example .envnano .env # Edit with your API key
-
Install Python from python.org
- Check “Add Python to PATH” during installation
-
Open PowerShell and clone:
Terminal window git clone https://github.com/polvoazul/clawdbot.gitcd clawdbot -
Create virtual environment:
Terminal window python -m venv venv.\venv\Scripts\Activate.ps1 -
Install dependencies:
Terminal window pip install -r requirements.txt -
Configure environment:
Terminal window copy .env.example .envnotepad .env # Edit with your API key
-
Pull the image:
Terminal window docker pull ghcr.io/polvoazul/clawdbot:latest -
Create a config directory:
Terminal window mkdir -p ~/.clawdbot -
Create your
.envfile:Terminal window cat > ~/.clawdbot/.env << EOFANTHROPIC_API_KEY=your_api_key_hereEOF -
Run the container:
Terminal window docker run -d \--name clawdbot \-v ~/.clawdbot:/app/config \--env-file ~/.clawdbot/.env \ghcr.io/polvoazul/clawdbot:latest
Configuration
Section titled “Configuration”Environment Variables
Section titled “Environment Variables”Create or edit your .env file with the following settings:
# Required: Your Anthropic API keyANTHROPIC_API_KEY=sk-ant-xxxxx
# Optional: Model selection (default: claude-sonnet-4-20250514)CLAUDE_MODEL=claude-sonnet-4-20250514
# Optional: Logging levelLOG_LEVEL=INFO
# Channel-specific settings (add as needed)# TELEGRAM_BOT_TOKEN=your_token# DISCORD_BOT_TOKEN=your_token# WHATSAPP_PHONE_NUMBER=+1234567890Verifying Installation
Section titled “Verifying Installation”Test your installation:
# Activate virtual environment (if not already active)source venv/bin/activate # Linux/macOS# or.\venv\Scripts\Activate.ps1 # Windows
# Run the test commandpython -m clawdbot --versionYou should see the version number printed.
Troubleshooting
Section titled “Troubleshooting”Common Issues
Section titled “Common Issues”Python version error:
# Check your Python versionpython3 --version
# If below 3.10, install a newer versionMissing dependencies:
# Update pip and try againpip install --upgrade pippip install -r requirements.txtPermission denied errors:
# Linux/macOS: Use virtual environmentsource venv/bin/activate
# Windows: Run PowerShell as AdministratorAPI key not working:
- Verify your key at console.anthropic.com
- Ensure no extra spaces or quotes in
.env - Check that the key starts with
sk-ant-
Next Steps
Section titled “Next Steps”With Clawdbot installed, proceed to:
- Quick Start: Run your first conversation
- WhatsApp Setup: Connect WhatsApp
- Telegram Setup: Connect Telegram