One command to launch a SGLang inference server with Qwen3.5-122B and install OpenClaw fully configured against it — no manual steps.
curl -fsSL https://raw.githubusercontent.com/Mahdi-CV/openclaw-amd-sglang/main/setup_openclaw_sglang.sh | bashThat's it. The script will:
- Start the SGLang Docker container (
Qwen/Qwen3.5-122B-A10B-FP8, port 8090) - Wait for the server to be ready — including Docker image pull and model load (up to 1 hour)
- Install OpenClaw via npm (installs Node 22 if needed)
- Configure OpenClaw to point at the SGLang endpoint automatically
- Start the OpenClaw gateway
- Print the SSH tunnel command to access the browser UI
- AMD Instinct MI300X GPU
- ROCm drivers installed (
/dev/kfd,/dev/driavailable) - Docker
- Internet access (for Docker image + model weights on first run)
Pass flags after the script:
curl -fsSL https://raw.githubusercontent.com/Mahdi-CV/openclaw-amd-sglang/main/setup_openclaw_sglang.sh | bash -s -- [options]| Option | Default | Description |
|---|---|---|
--port PORT |
8090 |
Port to expose the SGLang server on |
--api-key KEY |
abc-123 |
API key for the SGLang endpoint |
--model MODEL_PATH |
Qwen/Qwen3.5-122B-A10B-FP8 |
HuggingFace model path |
--served-name NAME |
qwen3-5-122b |
Model name used in API calls |
--hf-cache PATH |
/data/hf_cache |
Local path to cache model weights |
--tp-size N |
1 |
Tensor parallel size |
--no-wait |
— | Skip waiting for SGLang to be ready before installing OpenClaw |
--sglang-only |
— | Only start SGLang, skip OpenClaw install |
--openclaw-only |
— | Only install OpenClaw (assumes SGLang is already running) |
Custom API key and port:
curl -fsSL https://raw.githubusercontent.com/Mahdi-CV/openclaw-amd-sglang/main/setup_openclaw_sglang.sh | bash -s -- --api-key my-secret-key --port 8080SGLang only (skip OpenClaw):
curl -fsSL https://raw.githubusercontent.com/Mahdi-CV/openclaw-amd-sglang/main/setup_openclaw_sglang.sh | bash -s -- --sglang-onlyOpenClaw only (SGLang already running):
curl -fsSL https://raw.githubusercontent.com/Mahdi-CV/openclaw-amd-sglang/main/setup_openclaw_sglang.sh | bash -s -- --openclaw-onlyThe script prints a ready-to-use dashboard URL with the auth token included. To open the browser UI:
- On your local machine, open the SSH tunnel:
ssh -N -L 18789:127.0.0.1:18789 root@<server-ip>
- Open the URL printed by the script (it includes the token), or run on the server:
openclaw dashboard
Other useful commands:
# Check OpenClaw status
openclaw status
# Tail SGLang logs
docker logs -f sglang_server
# Tail gateway logs
tail -f /tmp/openclaw-gateway.log
# Stop everything
docker rm -f sglang_server
openclaw gateway stop