360 Secure SkillHub
360 安全技能中心

Rei-Clawd

通过脚本或手动编辑 ~/.clawdbot/clawdbot.json,把 OpenAI 兼容端点 coder.reilabs.org 上的 Rei Qwen3 Coder 注册为模型提供商并加入模型白名单,支持 rei/opus 模型切换、配置备份还原,并通过 User-Agent 请求头排查 403 错误。

0xreisearch
0xreisearch
热度 96.51
最近更新 2026-05-11 15:50:57
分类:开发依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:API 集成 / 自动化脚本 / 工作流 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add rei
Metadata
name
rei
description
Set up Rei Qwen3 Coder as a model provider. Use when configuring coder.reilabs.org, adding Rei to Clawdbot, or troubleshooting 403 errors from Rei endpoints.

Rei Qwen3 Coder

Rei provides Qwen3 Coder via an OpenAI-compatible endpoint at coder.reilabs.org.

Setup via Script

./skills/rei/scripts/setup.sh YOUR_REI_API_KEY

This adds the provider, adds it to the model allowlist, and restarts the gateway.

Setup via Agent

Ask your agent:

"Set up Rei with API key: YOUR_KEY"

The agent will read this skill and run the setup script for you.

Switching Models

Via chat:

/model rei
/model opus

Via script:

./skills/rei/scripts/switch.sh rei
./skills/rei/scripts/switch.sh opus

Via agent:

"Switch to Rei" or "Switch back to Opus"

Revert

If something breaks, restore the backup:

./skills/rei/scripts/revert.sh

Manual Setup

Add to ~/.clawdbot/clawdbot.json:

{
  "models": {
    "providers": {
      "rei": {
        "baseUrl": "https://coder.reilabs.org/v1",
        "apiKey": "YOUR_API_KEY",
        "api": "openai-completions",
        "headers": { "User-Agent": "Clawdbot/1.0" },
        "models": [{
          "id": "rei-qwen3-coder",
          "name": "Rei Qwen3 Coder",
          "contextWindow": 200000,
          "maxTokens": 8192
        }]
      }
    }
  },
  "agents": {
    "defaults": {
      "models": {
        "rei/rei-qwen3-coder": { "alias": "rei" }
      }
    }
  }
}

Then restart: clawdbot gateway restart

Troubleshooting

403 errors: The User-Agent: Clawdbot/1.0 header is required. The setup script adds this automatically. If you configured manually, make sure the header is present.

"Model not allowed": Rei must be in agents.defaults.models to switch to it. The setup script handles this. For manual setup, add the allowlist entry shown above.