clawtainer/OPENCLAW-SETUP.md

3.1 KiB

OpenClaw Setup Guide

Welcome to Clawtainer! This desktop has OpenClaw Gateway pre-installed and running on port 18789.

What is OpenClaw?

OpenClaw is an open-source AI agent orchestration platform that connects to AI provider APIs. The Gateway is already running in the background, but you need to configure it with your API keys.

Quick Setup (Choose One)

Open a terminal and run:

openclaw onboard

This will guide you through:

  • Selecting your preferred AI models
  • Entering API keys
  • Configuring messaging channels (optional)

Option 2: Web Interface

  1. Open Firefox/Chromium in this desktop
  2. Navigate to: http://localhost:18789
  3. Click Settings in the Gateway UI
  4. Add your API keys for desired providers

Option 3: Manual Configuration

Create or edit ~/.openclaw/openclaw.json:

{
  "models": {
    "providers": {
      "anthropic": {
        "apiKey": "sk-ant-your-key-here"
      },
      "openai": {
        "apiKey": "sk-your-key-here"
      },
      "google": {
        "apiKey": "AIza-your-key-here"
      }
    }
  }
}

Or use environment variables in ~/.bashrc:

export ANTHROPIC_API_KEY="sk-ant-your-key-here"
export OPENAI_API_KEY="sk-your-key-here"
export GOOGLE_API_KEY="AIza-your-key-here"

Get API Keys

You'll need API keys from at least one provider:

Verify Setup

After adding keys, test the connection:

openclaw gateway status

Or visit http://localhost:18789 to see the Gateway control panel.

Pre-installed Tools

This desktop includes:

  • OpenClaw - AI agent orchestration (port 18789)
  • Cursor - AI-powered code editor
  • VS Code - Microsoft Visual Studio Code
  • Antigravity - Google's AI IDE with Gemini
  • Anthropic SDK - Python library for Claude (import anthropic)

All tools have desktop shortcuts for easy access.

Gateway Token

The OpenClaw Gateway is configured with token: clawtainer

You can change this by setting the OPENCLAW_GATEWAY_TOKEN environment variable when launching the container.

Troubleshooting

Gateway not responding?

# Check if gateway is running
ps aux | grep openclaw

# Restart gateway
openclaw gateway restart

API key not working?

  • Check that your API key has not expired
  • Verify billing is enabled on the provider's platform
  • Check for typos in the key

Need help?


Clawtainer - https://colinknapp.com Licensed under CC Attribution 4.0