Overview
OpenClaw is an open-source AI agent Gateway that bridges chat apps to AI coding agents. It supports multiple AI model providers and API formats, enabling you to connect tools like Claude Code, Cursor, and other AI coding agents through a unified gateway. This guide covers the manual installation process, giving you full control over the configuration.For a faster setup, check out the OpenClaw Auto Install guide instead.
Prerequisites
FoxAPI API Key
An active FoxAPI API key.
Node.js
Node.js >= 22.12.0 installed on your system.
npm
npm (comes with Node.js).
Git
Git installed on your system.
Installation
Run Onboarding
Run the onboarding command to initialize OpenClaw and install the background daemon:This creates the configuration directory and default config files.
Configure Model Providers
Edit the main configuration file to add FoxAPI as a model provider.In the
- macOS / Linux
- Windows
models.providers section, add the following three provider blocks for different API formats:Verify the Connection
- Switch to a model to confirm it is available:
- Start a conversation with the agent to test the connection.
- If you receive a response, the FoxAPI integration is working correctly.
Switching Models
You can switch the active model at any time using:Troubleshooting
openclaw command not found
openclaw command not found
- Ensure Node.js >= 22.12.0 is installed:
node --version - Reinstall OpenClaw:
npm install -g openclaw@latest - Check that npm global bin directory is in your
PATH.
Cannot connect to AI models
Cannot connect to AI models
- Verify the
apiKeyandbaseUrlvalues inopenclaw.json. - Make sure you are using the correct base URL for each API format:
- Anthropic:
https://api.foxapi.cc - Google:
https://api.foxapi.cc/v1beta - OpenAI:
https://api.foxapi.cc/v1
- Anthropic:
- Test the API key with a curl command:
Model switch fails
Model switch fails
- Confirm the provider name and model ID match exactly what is defined in
openclaw.json. - The format must be
<provider>/<model-id>, e.g.foxapi-anthropic/claude-opus-4-6.
Daemon not running
Daemon not running
- Re-run the onboarding command:
openclaw onboard --install-daemon - Check system logs for daemon errors.