Back to skills
SkillHub ClubShip Full StackFull Stack

rei

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.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
3,129
Hot score
99
Updated
March 20, 2026
Overall rating
C4.0
Composite score
4.0
Best-practice grade
A88.4

Install command

npx @skill-hub/cli install openclaw-skills-rei

Repository

openclaw/skills

Skill path: skills/0xreisearch/rei

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.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: openclaw.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install rei into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/openclaw/skills before adding rei to shared team environments
  • Use rei for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
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

```bash
./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:**
```bash
./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:

```bash
./skills/rei/scripts/revert.sh
```

## Manual Setup

Add to `~/.clawdbot/clawdbot.json`:

```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.


---

## Skill Companion Files

> Additional files collected from the skill directory layout.

### _meta.json

```json
{
  "owner": "0xreisearch",
  "slug": "rei",
  "displayName": "Rei-Clawd",
  "latest": {
    "version": "1.0.3",
    "publishedAt": 1769506550807,
    "commit": "https://github.com/clawdbot/skills/commit/761217abca753ab977a8d5c9f4f168e2f1e41bd9"
  },
  "history": []
}

```

### scripts/revert.sh

```bash
#!/usr/bin/env bash
# Revert Rei setup - restores config backup
# Usage: ./revert.sh

set -e

CONFIG_FILE="${HOME}/.clawdbot/clawdbot.json"
BACKUP_FILE="${CONFIG_FILE}.bak"

if [[ ! -f "$BACKUP_FILE" ]]; then
  echo "Error: No backup found at $BACKUP_FILE"
  echo "Nothing to revert."
  exit 1
fi

echo "Restoring config from backup..."
cp "$BACKUP_FILE" "$CONFIG_FILE"

echo "Restarting Clawdbot gateway..."
clawdbot gateway restart

echo ""
echo "✅ Reverted to previous config"

```

### scripts/setup.sh

```bash
#!/usr/bin/env bash
# Rei setup script
# Usage: ./setup.sh <API_KEY>

set -e

API_KEY="${1:-}"
CONFIG_FILE="${HOME}/.clawdbot/clawdbot.json"

if [[ -z "$API_KEY" ]]; then
  echo "Usage: $0 <REI_API_KEY>"
  echo ""
  read -p "Enter your Rei API key: " API_KEY
  if [[ -z "$API_KEY" ]]; then
    echo "Error: API key required"
    exit 1
  fi
fi

if [[ ! -f "$CONFIG_FILE" ]]; then
  echo "Error: Clawdbot config not found at $CONFIG_FILE"
  echo "Run 'clawdbot configure' first."
  exit 1
fi

if ! command -v jq &> /dev/null; then
  echo "Error: jq is required but not installed."
  echo "Install with: sudo dnf install jq (Fedora) or brew install jq (macOS)"
  exit 1
fi

echo "Adding Rei provider to Clawdbot config..."

# Backup config
cp "$CONFIG_FILE" "${CONFIG_FILE}.bak"

# Create the rei provider config
REI_PROVIDER=$(cat <<EOF
{
  "baseUrl": "https://coder.reilabs.org/v1",
  "apiKey": "$API_KEY",
  "api": "openai-completions",
  "headers": {
    "User-Agent": "Clawdbot/1.0"
  },
  "models": [
    {
      "id": "rei-qwen3-coder",
      "name": "Rei Qwen3 Coder",
      "reasoning": false,
      "input": ["text"],
      "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
      "contextWindow": 200000,
      "maxTokens": 8192
    }
  ]
}
EOF
)

# Add rei provider
jq --argjson rei "$REI_PROVIDER" '.models.providers.rei = $rei' "$CONFIG_FILE" > "${CONFIG_FILE}.tmp" && mv "${CONFIG_FILE}.tmp" "$CONFIG_FILE"

# Add rei to model allowlist so switching works
jq '.agents.defaults.models["rei/rei-qwen3-coder"] = {"alias": "rei"}' "$CONFIG_FILE" > "${CONFIG_FILE}.tmp" && mv "${CONFIG_FILE}.tmp" "$CONFIG_FILE"

echo "✅ Rei provider added to config"
echo "✅ Rei added to model allowlist"
echo ""
echo "Restarting Clawdbot gateway..."
clawdbot gateway restart

echo ""
echo "✅ Done! You can now use rei/rei-qwen3-coder"
echo ""
echo "Switch to Rei:  /model rei  OR  ./scripts/switch.sh rei"
echo "Switch back:    /model opus OR  ./scripts/switch.sh opus"

```

### scripts/switch.sh

```bash
#!/usr/bin/env bash
# Switch between Rei and Opus
# Usage: ./switch.sh rei|opus

set -e

TARGET="${1:-}"

if [[ -z "$TARGET" ]]; then
  echo "Usage: $0 <rei|opus>"
  echo ""
  echo "  rei   - Switch to rei/rei-qwen3-coder"
  echo "  opus  - Switch to anthropic/claude-opus-4-5"
  exit 1
fi

case "$TARGET" in
  rei)
    echo "Switching to Rei..."
    clawdbot models set rei/rei-qwen3-coder
    ;;
  opus)
    echo "Switching to Opus..."
    clawdbot models set anthropic/claude-opus-4-5
    ;;
  *)
    echo "Unknown target: $TARGET"
    echo "Use 'rei' or 'opus'"
    exit 1
    ;;
esac

```

rei | SkillHub