OpenClaw
Open-source AI coding agent · Setup guide
What is OpenClaw?
OpenClaw is an open-source AI coding agent focused on flexible model access and toolchain integration, supporting multiple LLM backends, ideal for developers who need high customization.
Installation
Multiple installation methods are available:
Script install (recommended)
curl -fsSL https://openclaw.ai/install.sh | bashWindows (PowerShell):
iwr -useb https://openclaw.ai/install.ps1 | iexnpm global install
npm install -g openclaw@latestInstall from source
git clone https://github.com/openclaw/openclaw.git
cd openclaw && pnpm install
pnpm link --globalVerify installation:
openclaw --versionConfigure HAI Gateway
openclaw onboard --install-daemonIn the configuration wizard, set the following model configuration:
{
"models": {
"default": {
"provider": "openai-compatible",
"base_url": "https://api.hai.network/openai/v1",
"api_key": "sk-pat-YOUR_ACCESS_TOKEN",
"model": "claude-sonnet-4-20250514"
}
}
}Configuration complete
Once configured, you can run openclaw in any project directory to get started.