Skip to content
Development
Skill

/duel-agents

Configure and use Duel Agents model routing in Claude Code. Requires a Duel API key from duelagents.com. Routes all LLM traffic through duelagents.com/v1.

From plugin
duel-agents
8453 skills1 command
Install
$ npx -y skills add 2aronS/Duel-Agents --skill duel-agents --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/duel-agents

Context preview

The summary Claude sees to decide when to auto-load this skill.

Configure and use Duel Agents model routing in Claude Code. Requires a Duel API key from duelagents.com. Routes all LLM traffic through duelagents.com/v1.

SKILL.md

duel-agents.SKILL.md
name: duel-agents
description: >-
  Configure and use Duel Agents model routing in Claude Code. Requires a Duel
  API key from duelagents.com. Routes all LLM traffic through duelagents.com/v1.

Duel Agents

Duel Agents runs your prompts against multiple models and picks the cheapest answer that still passes quality checks. Every request must use your **Duel API key**. Never substitute a direct Anthropic or OpenAI key.

Setup

1. Subscribe and create an API key at https://duelagents.com/dashboard/settings 2. Run: `npx @duel-agents/install claude-code` 3. Or set manually in `~/.claude/.env`:

ANTHROPIC_BASE_URL=https://duelagents.com/v1
ANTHROPIC_API_KEY=duel_yourprefix_yoursecret

4. Restart Claude Code

Verify

npx @duel-agents/install doctor

Build on top

Use `@duel-agents/sdk` in your own tools. Always pass `apiKey` from your Duel dashboard.

import { DuelClient } from "@duel-agents/sdk";

const duel = new DuelClient({ apiKey: process.env.DUEL_API_KEY! });
await duel.chat.completions.create({
  model: "duel-auto",
  messages: [{ role: "user", content: "Hello" }],
});

Repository: https://github.com/2aronS/Duel-Agents

Ships withduel-agents

Use, extend, and ship with Duel Agents: the IDE-native routing layer that runs prompts against multiple models and picks the cheapest answer that still wins. This repo is the official integration package for duelagents.com.

Get the whole plugin
Stats
845
Stars
25
Forks
Maintained
Maintenance
TypeScript
Language
MIT
License
1mo ago
Last commit
2mo ago
Created

Repo: 2aronS/Duel-Agents