Overview
OpenClaw is an open-source AI assistant that supports multiple model providers through OpenAI-compatible APIs. Vast Serverless provides an auto-scaling inference layer with an OpenAI-compatible proxy, so any tool that speaks the OpenAI API can connect directly. In this guide, you will:- Create a Vast Serverless endpoint serving Qwen3-8B
- Run OpenClaw’s onboarding wizard to connect to the endpoint
- Send messages through OpenClaw to the Serverless backend
Requirements
- Vast.ai account with credits loaded (quickstart guide)
- Vast.ai API key from your account page
- Node.js 22.12.0 or later (nodejs.org)
- HuggingFace account with a read-access token (for gated models)
Step 1: Install the Vast CLI
Bash
Bash
Step 2: Configure HuggingFace Token
Navigate to your Vast account settings and add your HuggingFace token as a user environment variable:- Key:
HF_TOKEN - Value: Your HuggingFace read-access token
Step 3: Create a Serverless Endpoint
Create an endpoint that will receive requests and route them to GPU workers:Bash
Text
cold_workers value of 1 keeps one worker ready for fast response times. Increase max_workers if you expect concurrent usage.
Step 4: Create a Workergroup
Attach GPU workers to the endpoint using the vLLM Serverless template:Bash
The default vLLM Serverless template serves Qwen/Qwen3-8B. To use a different model, edit the template on the Templates page, change the
MODEL_NAME environment variable, save it, and copy the new template hash for the --template_hash flag.Text
Bash
loading → running as they download the model and complete benchmarking. A worker in running status may take an additional 1-3 minutes to pass health checks before the endpoint routes traffic to it.
Step 5: Verify the Endpoint
Once at least one worker reachesrunning status, wait 1-2 minutes for health checks to complete, then verify the endpoint is responding with curl. If you receive a 504 timeout, wait another minute and retry.
Bash
<ENDPOINT_NAME> with openclaw-qwen3-8b (or your chosen endpoint name) and <YOUR_VAST_API_KEY> with your API key from the account page.
You should see a JSON response with Qwen3-8B’s reply in the content field.
Qwen3-8B defaults to “thinking mode,” which uses tokens for internal reasoning before producing a final answer. The
enable_thinking: false flag disables this for a straightforward response. Without it, short max_tokens values may result in content: null because all tokens are consumed by reasoning. See Troubleshooting for details.Step 6: Install and Configure OpenClaw
If you don’t have OpenClaw installed yet, install it and run the onboarding wizard. If you already have OpenClaw running, skip to the existing installation tab.- New installation
- Existing installation
Install OpenClaw:Set your Vast API key and run the onboarding wizard:Replace
Bash
OpenClaw requires Node.js 22.12.0 or later. If you see a version error, update Node.js or use nvm to install a compatible version.
Bash
<ENDPOINT_NAME> with your endpoint name (e.g., openclaw-qwen3-8b).This configures the Vast Serverless provider, installs the gateway daemon, and sets Qwen3-8B as the default model.Bash
Bash
Text
Step 7: Test OpenClaw
Send a message through OpenClaw to the Serverless backend:Bash
Text
--thinking off flag disables Qwen3’s reasoning mode, which otherwise prepends reasoning tokens to every response.
You can also open the OpenClaw dashboard to chat through the web UI:
Bash
Troubleshooting
Responses contain only reasoning, no final answer
If responses includereasoning_content but content is null, increase max_tokens. Qwen3-8B’s thinking mode consumes tokens for its chain of thought before producing the final answer. Set maxTokens to at least 4096, or disable thinking with --thinking off.
Cleanup
Find your endpoint ID:Bash
Bash
Bash
Resources
- OpenClaw Documentation
- OpenClaw Getting Started
- OpenClaw vLLM Provider Guide
- Qwen3-8B Model Card
- Vast Serverless Getting Started
- Vast OpenAI-Compatible API
- Vast vLLM Serverless Template
- OpenClaw Instance-Based Guide (alternative: single GPU with manual instance management)