What is OpenClaw Services Guides Pricing Case studies About Book a discovery call
๐Ÿ› ๏ธ Step-by-Step Guide

OpenClaw Setup

From zero to your first AI agent in production. Complete installation and configuration guide.

โš ๏ธ Before You Start OpenClaw requires technical setup including Node.js, environment configuration, and API keys. Most businesses benefit from professional setup to ensure security and optimal configuration. This guide covers the basics โ€” for production deployment, consider our setup service.

Prerequisites

Before installing OpenClaw, ensure you have:

๐Ÿ’ก Hardware Requirements OpenClaw runs on any modern machine. Recommended: 4GB RAM, 2GB storage for basic setup. For production with multiple agents and skills, 8GB+ RAM is better.

Installation

Install OpenClaw CLI

Install the OpenClaw command-line interface globally:

npm install -g openclaw

Verify installation:

openclaw version

Initialize Your Workspace

Create a new OpenClaw workspace:

mkdir my-openclaw-setup
cd my-openclaw-setup
openclaw init

This creates the basic directory structure and configuration files.

Configure Environment Variables

OpenClaw needs API keys and configuration. Create a .env file:

# AI Model Keys
ANTHROPIC_API_KEY=your_anthropic_key_here
OPENAI_API_KEY=your_openai_key_here

# Gateway Configuration  
OPENCLAW_PORT=3000
OPENCLAW_HOST=localhost

# Optional: Telemetry (set to false to disable)
OPENCLAW_TELEMETRY=false
๐Ÿ” Security Note Never commit API keys to version control. Add .env to your .gitignore file immediately.

Create Your First Agent

Generate an agent configuration:

openclaw agent create

You'll be prompted to configure:

  • Agent name (e.g., "Assistant", "Ops Agent")
  • Primary model (Claude, GPT-4, etc.)
  • System prompt/persona
  • Initial skills to include

Start the Gateway

Launch the OpenClaw gateway server:

openclaw gateway start

You should see output like:

โœ“ Gateway running on port 3000
โœ“ Agent "Assistant" connected  
โœ“ Skills loaded: 3
โœ“ Ready to receive connections

Test Your Agent

Open a new terminal and test the connection:

openclaw chat

This opens a direct chat interface. Try asking:

  • "Hello, who are you?"
  • "What skills do you have?"
  • "What can you help me with?"
โœ… Success! If your agent responds, congratulations โ€” OpenClaw is working. Your AI agent is now running locally and ready for configuration.

Basic Configuration

Agent Persona (SOUL.md)

Your agent's personality is defined in the SOUL.md file. This controls how it communicates and behaves:

# SOUL.md โ€” Your Assistant

**Name:** Assistant | **Email:** assistant@yourcompany.com 
**Emoji:** ๐Ÿค– | **Persona:** Professional helper

## Tone & Style  
- Professional but friendly
- Clear, concise responses
- Always ask for clarification when uncertain
- Use bullet points for complex information

## Capabilities
- Answer questions about your business
- Help with scheduling and organization  
- Provide information and research
- Create content and documents

## Never
- Make assumptions about sensitive topics
- Access external systems without permission
- Share confidential information

Memory Configuration

OpenClaw agents maintain memory in two forms:

The agent automatically manages these files, but you can review and edit them to guide future behavior.

Adding Skills

Skills extend your agent's capabilities. Install your first skill:

openclaw skills install web-search

Available built-in skills include:

Connecting Clients

Mobile App

Download the OpenClaw companion app:

Connect by scanning the QR code displayed when you run:

openclaw node pair

Telegram Integration

For Telegram integration:

  1. Create a bot via @BotFather
  2. Get the bot token
  3. Add to your .env:
TELEGRAM_BOT_TOKEN=your_bot_token_here

Restart the gateway and your agent will be available in Telegram.

Common Issues & Troubleshooting

Gateway Won't Start

Agent Not Responding

Skills Not Loading

Next Steps

Now that OpenClaw is running, consider:

Production Deployment

For production use, you'll need:

โš ๏ธ Production Considerations Setting up OpenClaw for production involves security, reliability, and performance considerations beyond this basic guide. We recommend professional setup for business-critical deployments.

Getting Help

If you're stuck:

Remember: OpenClaw is powerful but complex. Don't hesitate to get help โ€” a properly configured system saves weeks of troubleshooting later.

Need Help with Your Setup?

Skip the troubleshooting. We'll set up your OpenClaw system properly from day one โ€” secure, optimized, and ready for production.

Book Free Setup Consultation โ†’
Book Your Free Consultation โ†’