Skip to main content
ClaudeWave
Skill942 repo starsupdated 7d ago

duel-agents

Duel Agents routes OpenClaw agents through a unified API gateway that intelligently distributes requests across multiple model providers while maintaining compatibility with existing Telegram, Discord, and other channel integrations. Use this when you need flexible model backend switching, cost optimization across providers, or failover capabilities without reconfiguring your agent deployment infrastructure.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/2aronS/Duel-Agents /tmp/duel-agents && cp -r /tmp/duel-agents/integrations/openclaw/skills/duel-agents ~/.claude/skills/duel-agents
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Duel Agents (OpenClaw)

Route OpenClaw agents through Duel Agents. Telegram, Discord, and other channels keep working. Only the **model backend** changes.

## Install

```bash
export DUEL_API_KEY=duel_yourprefix_yoursecret
npx @duel-agents/install openclaw
openclaw config validate
```

Default model after install: `duel/duel-auto`

## Manual config

See `templates/openclaw.duel.json5` in the repo root. Merge into `~/.openclaw/openclaw.json`.

**Important:** Use `${DUEL_API_KEY}` in the provider config and set `DUEL_API_KEY` in the `env` section. Never paste a raw OpenAI or Anthropic provider key for Duel routing.

## Verify

```bash
npx @duel-agents/install doctor
```