Construisez Votre Infrastructure IA Personnelle

Transformez votre ordinateur en un centre de commande IA autonome. Ce guide vous accompagne dans l'installation, la configuration et votre première tâche automatisée, sans présumer que vous êtes un administrateur système.

⏱️ Estimated Time: 30 minutes

Avant de Commencer : Comprendre Ce Que Vous Construisez

Most AI installation guides treat software as a black box: download, install, forget. clawbot is different because you're not installing an app—you're establishing infrastructure . Think of this as setting up your own private email server, except instead of managing messages, you're orchestrating an AI that can genuinely control your digital environment.

This guide explains what each step does and why it matters. Understanding the architecture makes troubleshooting intuitive and customization straightforward.

What You'll Have After 30 Minutes

  • A Gateway service running persistently on your device, coordinating all AI activity
  • Connection to your chosen AI model (Claude, GPT-4, or free local Ollama)
  • At least one messaging channel (WhatsApp, Telegram, etc.) linked to your AI
  • A functioning automation that demonstrates genuine system control
  • Understanding of how to extend, customize, and troubleshoot your setup

Prérequis : Ce Dont Vous Avez Vraiment Besoin

Avant de télécharger quoi que ce soit, vérifiez que votre système répond à ces exigences. Chacune sert un objectif spécifique :

Exigences Matérielles

  • Operating System: macOS 11+, Linux (Ubuntu 20.04+, Debian 11+), or Windows 10+ with WSL2
  • RAM: Minimum 2GB available (4GB recommended for smoother operation)
  • Disk Space: 500MB for core installation plus space for AI model caching
  • Network: Stable internet connection for AI API calls (unless using local Ollama)

Dépendances Logicielles

clawbot requires Node.js 22 or higher. Why this specific version? Newer Node.js versions include critical performance improvements and security patches that clawbot's real-time communication relies on. The installer typically handles this, but manual installations require it pre-installed.

Accès aux Modèles IA (Choisissez-en Un)

Cost-Benefit Analysis: Which AI Model Should You Choose?

Option 1: Anthropic Claude (Recommended for most users)

  • Cost: ~$20-40/month for typical personal use
  • Advantage: Exceptional reasoning, strong security awareness, long context windows
  • Get API key: console.anthropic.com

Option 2: OpenAI GPT-4

  • Cost: ~$25-50/month depending on usage patterns
  • Advantage: Broad knowledge base, excellent for creative tasks
  • Get API key: platform.openai.com

Option 3: Local Ollama Models (Completely free)

  • Cost: $0 (runs entirely on your hardware)
  • Advantage: Zero ongoing costs, complete privacy, offline operation
  • Disadvantage: Slower responses, requires more powerful hardware (8GB+ RAM recommended)
  • Setup: ollama.ai

Étape 1 : Téléchargez le Bon Package pour Votre Plateforme

clawbot distributes platform-specific installers that bundle everything needed. Why multiple formats? Different operating systems handle background services differently—the installer configures these correctly.

macOS
Linux
Windows
Docker
1

Installation macOS

Téléchargez l'installeur DMG pour une expérience des plus simples :

curl -fsSL https://github.com/steipete/clawbot/releases/download/v2026.1.23/clawbot-2026.1.23.dmg -o clawbot.dmg

Or download directly from GitHub Releases .

What the installer does:

  • Installs the Gateway service to /Applications/clawbot.app
  • Creates configuration directory at ~/.clawbot/
  • Configures system permissions for automation capabilities
  • Optionally sets up launch-at-startup (recommended)
1

Installation Linux

Installez via npm (recommandé) ou Docker :

npm install -g clawbot@latest

Puis initialisez la configuration :

clawbot init

Setting up as a systemd service (optional but recommended):

clawbot install-service

Cela garantit que clawbot démarre automatiquement au démarrage et redémarre s'il plante.

1

Installation Windows (WSL2)

Windows nécessite WSL2 (Windows Subsystem for Linux). S'il n'est pas installé :

wsl --install

Suivez ensuite les instructions Linux à l'intérieur de votre environnement WSL2 Ubuntu.

⚠️ Windows Native Support

Le support natif de Windows (sans WSL2) est expérimental. WSL2 offre une meilleure compatibilité avec les intégrations système de Node.js et l'exécution des commandes shell.

1

Déploiement Docker

Pour la compatibilité multiplateforme ou les déploiements serveur :

docker pull ghcr.io/steipete/clawbot:latest

Exécutez avec une configuration persistante :

docker run -d \
--name clawbot \
-v ~/.clawbot:/root/.clawbot \
-p 18789:18789 \
ghcr.io/steipete/clawbot:latest

Understanding the Docker flags:

  • -d : Runs container in background (daemon mode)
  • -v ~/.clawbot:/root/.clawbot : Persists configuration between restarts
  • -p 18789:18789 : Exposes Gateway WebSocket port for local clients

Étape 2 : Installez et Lancez la Passerelle

The Gateway is clawbot's core—a persistent service that manages all communication between messaging platforms, AI models, and your system. Think of it as the central nervous system : channels send messages to the Gateway, which routes them to the appropriate AI model, receives responses, and delivers them back.

2

Exécutez l'Installeur

macOS: Open the downloaded DMG and drag clawbot to Applications. Launch it.

Linux/WSL: After npm installation, start the Gateway:

clawbot gateway start

Vérifiez qu'elle fonctionne :

clawbot gateway status

You should see: Gateway is running on ws://127.0.0.1:18789

🔍 What's Happening Behind the Scenes

La Passerelle crée un serveur WebSocket sur le port 18789 (personnalisable). Ce serveur local uniquement accepte les connexions de :

  • Channel plugins (WhatsApp, Telegram, etc.) that forward user messages
  • Node clients (mobile apps, web interfaces) for direct interaction
  • Skills and tools that extend functionality

Toute la communication reste sur votre machine, sauf si vous configurez explicitement l'accès à distance (couvert dans les guides avancés).

Étape 3 : Connectez Votre Cerveau IA

Avec la Passerelle en cours d'exécution, elle a besoin d'un modèle IA pour générer des réponses. Cette étape configure les modèles que vous utiliserez et authentifie l'accès API.

3

Configurer le Fournisseur IA

Ouvrez le fichier de configuration :

clawbot config edit

Or manually edit ~/.clawbot/clawbot.json . Add your API credentials:

{
  "aiProviders": {
    "anthropic": {
      "apiKey": "sk-ant-your-api-key-here",
      "model": "claude-3-5-sonnet-20250219",
      "enabled": true
    }
  },
  "defaultProvider": "anthropic"
}

For local Ollama instead:

{
  "aiProviders": {
    "ollama": {
      "baseURL": "http://localhost:11434",
      "model": "llama3.1:8b",
      "enabled": true
    }
  },
  "defaultProvider": "ollama"
}

Security Best Practice: API Key Management

Never commit clawbot.json to version control if it contains API keys. Consider using environment variables for production deployments:

export ANTHROPIC_API_KEY="your-key-here"

clawbot lit automatiquement les variables d'environnement si elles sont présentes.

Étape 4 : Liez Vos Canaux de Communication

Channels are how you interact with your AI—WhatsApp for mobile, Telegram for desktop, Discord for team collaboration. Each channel connects independently to the Gateway, and clawbot maintains a unified conversation history across all of them .

4

Connectez Votre Premier Canal : Exemple WhatsApp

Installez le plugin de canal WhatsApp :

clawbot channel add whatsapp

Cela lance une configuration interactive :

  1. A QR code appears in your terminal
  2. Open WhatsApp on your phone → Settings → Linked Devices → Link a Device
  3. Scan the QR code
  4. clawbot confirms connection and saves session credentials

How it works: clawbot uses the WhatsApp Web protocol (via Baileys library) to establish a persistent connection. Your phone remains the "primary" device; clawbot acts as a linked secondary device—just like WhatsApp Web in your browser.

⚠️ WhatsApp Account Safety

WhatsApp's terms of service prohibit bot usage. While clawbot implements rate limiting and human-like behavior patterns, we recommend using a secondary phone number rather than your primary personal WhatsApp account. Consider:

  • Getting a Google Voice or similar virtual number
  • Using an old SIM card you don't actively use
  • Trying Telegram instead (officially supports bots)

Canaux Alternatifs

Chaque canal a des exigences de configuration uniques. Options populaires :

Telegram (Recommended for beginners):

clawbot channel add telegram

Suivez l'invite pour vous authentifier avec votre numéro de téléphone. Telegram prend officiellement en charge les bots, ce qui en fait l'option la plus sûre.

Discord (Great for teams):

clawbot channel add discord

Requires creating a Discord bot application at discord.com/developers . Copy the bot token when prompted.

Full channel documentation: docs.clawd.bot/channels

Étape 5 : Exécutez Votre Première Tâche Autonome

Avec tout configuré, vérifions que clawbot peut réellement contrôler votre système, pas seulement répondre avec du texte.

5

Tester l'Intégration Système

Ouvrez votre canal de messagerie connecté (WhatsApp, Telegram, etc.) et envoyez ce message :

"Create a text file called test.txt in my Documents folder with today's date and a motivational quote."

What should happen:

  1. clawbot receives your message through the channel
  2. Gateway routes it to your configured AI model
  3. AI generates a response plan including shell commands
  4. clawbot executes: echo "..." > ~/Documents/test.txt
  5. You receive confirmation: "Created test.txt with..."
  6. Check your Documents folder—the file exists

🎉 You Just Demonstrated Genuine AI Automation

What distinguishes clawbot from ChatGPT or Siri: it didn't just tell you how to create the file—it actually created it . This same capability extends to:

  • Managing your calendar and sending meeting invites
  • Monitoring log files and alerting you to errors
  • Pulling data from APIs and generating reports
  • Controlling smart home devices via Home Assistant
  • Running development workflows (tests, builds, deployments)

Que Construire Ensuite

Votre infrastructure IA est opérationnelle. Voici comment étendre ses capacités :

1. Installez des Compétences depuis ClawdHub

Les compétences sont des modules d'automatisation pré-construits. Parcourez le marché :

clawbot skills browse

Compétences de démarrage populaires :

  • google-calendar : Natural language calendar management
  • home-assistant : Smart home control integration
  • github-assistant : Repository management and PR reviews
  • daily-briefing : Morning summary of calendar, weather, news

2. Créez une Automatisation Personnalisée

Skills are just folders with a SKILL.md file. Create your own:

mkdir -p ~/.clawbot/skills/my-automation
echo "# My Custom Skill" > ~/.clawbot/skills/my-automation/SKILL.md

Full guide: docs.clawd.bot/skills/creating

3. Configurez des Comportements Proactifs

Unlike traditional AI, clawbot can initiate contact. Enable heartbeat monitoring:

clawbot config set heartbeat.enabled true
clawbot config set heartbeat.interval "every day at 8am"

Maintenant, clawbot vous enverra proactivement un briefing matinal sans qu'on le lui demande.

4. Déployez dans le Cloud (Optionnel)

Exécuter clawbot sur votre ordinateur portable fonctionne, mais le déploiement dans le cloud garantit une disponibilité 24h/24 et 7j/7. Guides disponibles pour :

  • DigitalOcean Droplets ($6/month)
  • AWS EC2 Free Tier (12 months free)
  • Hetzner Cloud (€4/month)
  • Home Raspberry Pi (one-time hardware cost)

Problèmes Courants et Solutions

Gateway Won't Start

Symptom: Error: EADDRINUSE: address already in use

Cause: Another process is using port 18789.

Solution: Find and kill the conflicting process:

lsof -ti:18789 | xargs kill -9

Or configure clawbot to use a different port in clawbot.json .

AI Model Returns Errors

Symptom: "API authentication failed" or "Invalid model specified"

Cause: Incorrect API key or model name in configuration.

Solution: Verify your API key is valid:

curl https://api.anthropic.com/v1/messages \
-H "x-api-key: YOUR_KEY" \
-H "anthropic-version: 2023-06-01"

Vérifiez les noms de modèles dans la documentation du fournisseur (Anthropic, OpenAI).

WhatsApp Disconnects Frequently

Symptom: QR code authentication required every few days.

Cause: Session credentials not persisting correctly.

Solution: Ensure ~/.clawbot/channels/whatsapp/ has write permissions:

chmod 700 ~/.clawbot/channels/whatsapp/

Vérifiez également que votre téléphone reste connecté à Internet ; WhatsApp nécessite que l'appareil principal soit en ligne.

Vous Exécutez Désormais Votre Propre Infrastructure IA

What you've built isn't just a chatbot—it's a personal automation platform that combines the intelligence of frontier AI models with the capability of local system control. Unlike cloud services that constrain what AI can do, your clawbot installation has the same access to your digital environment that you do.

Ce pouvoir s'accompagne de responsabilités : clawbot peut exécuter toute commande que vous approuvez. Le système de sandboxing et de permissions protège contre les dommages accidentels, mais en fin de compte, vous accordez à une IA un contrôle significatif. Commencez par des automatisations simples, comprenez comment les décisions sont prises et élargissez progressivement les capacités à mesure que vous établissez la confiance.

Prêt à Aller Plus Loin ?

Explorez la configuration avancée, le développement de compétences et les analyses architecturales approfondies

Complete Usage Guide Technical Architecture Security Best Practices