Skip to content

Installing Clawdbot

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)
  1. Install Python (if not already installed):

    Terminal window
    # Using Homebrew
    brew install python@3.11
  2. Clone the repository:

    Terminal window
    git clone https://github.com/polvoazul/clawdbot.git
    cd clawdbot
  3. Create a virtual environment:

    Terminal window
    python3 -m venv venv
    source venv/bin/activate
  4. Install dependencies:

    Terminal window
    pip install -r requirements.txt
  5. Configure environment:

    Terminal window
    cp .env.example .env
    # Edit .env with your Anthropic API key

Create or edit your .env file with the following settings:

.env
# Required: Your Anthropic API key
ANTHROPIC_API_KEY=sk-ant-xxxxx
# Optional: Model selection (default: claude-sonnet-4-20250514)
CLAUDE_MODEL=claude-sonnet-4-20250514
# Optional: Logging level
LOG_LEVEL=INFO
# Channel-specific settings (add as needed)
# TELEGRAM_BOT_TOKEN=your_token
# DISCORD_BOT_TOKEN=your_token
# WHATSAPP_PHONE_NUMBER=+1234567890

Test your installation:

Terminal window
# Activate virtual environment (if not already active)
source venv/bin/activate # Linux/macOS
# or
.\venv\Scripts\Activate.ps1 # Windows
# Run the test command
python -m clawdbot --version

You should see the version number printed.

Python version error:

Terminal window
# Check your Python version
python3 --version
# If below 3.10, install a newer version

Missing dependencies:

Terminal window
# Update pip and try again
pip install --upgrade pip
pip install -r requirements.txt

Permission denied errors:

Terminal window
# Linux/macOS: Use virtual environment
source venv/bin/activate
# Windows: Run PowerShell as Administrator

API 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-

With Clawdbot installed, proceed to: