← 开源
2aronS

Duel-Agents

CLI, SDK, and IDE plugins for Duel Agents

AI EngineeringAccess modelsTypeScript
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
745
Star
28
Fork
+0
本周
1
贡献者
创建于 2026-05-28 · 更新于 2026-10-07 · 今日第 14278 名
主要开发者

2aronS/Duel-Agents 排名第 14,278,有 745 个星标。

同类别比较

2aronS/Duel-Agents 排名第 14,278,此处有 8 个同类条目;tesserato/CodeWeaver 排名第 14,276。

同类别比较
名称排名指标
joelhooks/swarm-tools14,267
语言:
TypeScript
星标数:
747
分叉数:
65
简介:
🐝 Multi-agent swarm coordination for OpenCode with learning capabilities, agent issue tracking, and management
microclaw/microclaw14,273
语言:
Rust
星标数:
746
分叉数:
139
简介:
🦀An agentic AI assistant that lives in your chats, inspired by nanoclaw and incorporating some of its design ideas. Built with Rust 🦀
rapidaai/voice-ai14,275
语言:
Go
星标数:
746
分叉数:
123
简介:
Rapida is an open-source, end-to-end voice AI orchestration platform for building real-time conversational voice agents with audio streaming, STT, TTS, VAD, multi-channel integration, agent state management, and observability.
tesserato/CodeWeaver14,276
语言:
Go
星标数:
746
分叉数:
58
简介:
Weave your codebase into a single, navigable Markdown document
chujianyun/skills14,286
语言:
JavaScript
星标数:
745
分叉数:
102
简介:
WuMing's Claude Skills
GH05TCREW/MetasploitMCP14,295
语言:
Python
星标数:
744
分叉数:
210
简介:
MCP Server for Metasploit
VikParuchuri/tabled14,298
语言:
Python
星标数:
744
分叉数:
55
简介:
Detect and extract tables to markdown and csv
bhimrazy/receipt-ocr14,308
语言:
Python
星标数:
743
分叉数:
88
简介:
An efficient OCR engine for receipt image processing.
关键参数与规格
关键参数与规格
参数值
语言TypeScript
类别AI Engineering
子类别Access models
关键词Agent-ready APIs, Client integration, Multi-model workflow
星标数745
分叉数28
贡献者1
创建日期2026-05-28
更新日期2026-10-07
1 天星标数0
7 天星标数0
排名14,278
上次排名14,137
排名变化-141
7 天星标排名14,388
上次 7 天星标排名14,400
7 天星标排名变化12
总星标排名14,150
上次总星标排名14,124
总星标排名变化-26
README 摘录

Duel 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. Star History Requirements Every tool in this repo routes LLM traffic through ** ** with a **Duel API key** ( ). You cannot use raw Anthropic or OpenAI keys with these integrations. Cursor The installer copies a skill to and writes to your project . You still need

to set **Settings → Models → Override OpenAI Base URL** to with your Duel key. Codex CLI Writes and (your Duel key) to . OpenClaw Patches with a provider and sets default model to . Telegram/Discord channels are unchanged. Only the model backend switches to Duel. example Build on top Use in your apps, agents, and scripts. ** Hermes Agent, Venice, and any OpenAI-compatible client can use the same pattern: LangChain and LlamaIndex Duel is OpenAI wire compatible, so it works with the

major Python frameworks. Official packages Source for both lives in . | | from doctor | Key revoked or subscription inactive. Key format can still be valid; retry later. | | OpenClaw won't start | Run after install; restore from if needed. | | | The custom path has to live under . | | Cursor still uses OpenAI | Confirm model override URL and that the API key field is your key. | | Skill copy failed after npm install | Re-run in the repo, or reinstall . | Repo map Development See CONTRIBUTING.

常见问题

记录了多少星标和分叉?

2aronS/Duel-Agents 有 745 个星标和 28 个分叉。

仓库排名是多少?

2aronS/Duel-Agents 排名第 14,278。

记录的语言和类别是什么?

2aronS/Duel-Agents 有 745 个星标,语言为 TypeScript,类别为 AI Engineering。

哪个仓库排名最接近?

2aronS/Duel-Agents 与 tesserato/CodeWeaver 比较,后者排名第 14,276,有 746 个星标。

README

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

Star History

Requirements

Every tool in this repo routes LLM traffic through https://duelagents.com/v1 with a Duel API key (duel__).

You cannot use raw Anthropic or OpenAI keys with these integrations. Get a key from the dashboard:

https://duelagents.com/dashboard/settings (subscribe → create API key)

Quick start

# 1. Get your key from the dashboard, then:
export DUEL_API_KEY=duel_yourprefix_yoursecret

# 2. Install for your tools
npx @duel-agents/install all

# 3. Verify
npx @duel-agents/install doctor

Install per tool

Tool Command
Claude Code npx @duel-agents/install claude-code
Cursor npx @duel-agents/install cursor
Codex CLI npx @duel-agents/install codex
OpenClaw npx @duel-agents/install openclaw
All npx @duel-agents/install all

Claude Code plugin

git clone https://github.com/2aronS/Duel-Agents.git
cd duel-agents
claude plugin install ./integrations/claude-plugin
npx @duel-agents/install claude-code

Use /duel-agents:setup in Claude Code for guided setup.

Cursor

The installer copies a skill to .cursor/skills/duel-agents/ and writes DUEL_API_KEY to your project .env.

You still need to set Settings → Models → Override OpenAI Base URL to https://duelagents.com/v1 with your Duel key. See templates/cursor-models.override.md and templates/env.cursor.example.

Codex CLI

Writes OPENAI_BASE_URL and OPENAI_API_KEY (your Duel key) to .env. Restart Codex after install. See templates/env.codex.example.

OpenClaw

Patches ~/.openclaw/openclaw.json with a duel provider and sets default model to duel/duel-auto. Telegram/Discord channels are unchanged. Only the model backend switches to Duel.

npx @duel-agents/install openclaw
openclaw config validate

Reference config: templates/openclaw.duel.json5 and templates/env.openclaw.example

Build on top

Use @duel-agents/sdk in your apps, agents, and scripts. apiKey is required.

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

const duel = new DuelClient({
  apiKey: process.env.DUEL_API_KEY!, // required (from dashboard)
});

// OpenAI-compatible
const chat = await duel.chat.completions.create({
  model: "duel-auto",
  messages: [{ role: "user", content: "Explain concurrent agents briefly." }],
});

// Anthropic-compatible
const msg = await duel.messages.create({
  model: "duel-auto",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});

Hermes Agent, Venice, and any OpenAI-compatible client can use the same pattern:

OPENAI_BASE_URL=https://duelagents.com/v1
OPENAI_API_KEY=duel_yourprefix_yoursecret

LangChain and LlamaIndex

Duel is OpenAI wire compatible, so it works with the major Python frameworks.

Official packages

pip install langchain-duel        # LangChain
pip install llama-index-llms-duel # LlamaIndex
from langchain_duel import ChatDuel

llm = ChatDuel(model="duel-auto")  # reads DUEL_API_KEY
llm.invoke("Explain concurrent agents in one sentence.")
from llama_index.llms.duel import DuelLLM

llm = DuelLLM(model="duel-auto")   # reads DUEL_API_KEY
llm.complete("Explain concurrent agents in one sentence.")

Source for both lives in python/. They default to duel-auto routing and the https://duelagents.com/v1 proxy.

Without the packages

Any LangChain or LlamaIndex OpenAI client works by pointing at the proxy:

from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="duel-auto",
    base_url="https://duelagents.com/v1",
    api_key="duel_yourprefix_yoursecret",
)

Configuration

Variable Purpose
DUEL_API_KEY Your Duel API key (required)
DUEL_AGENTS_API_KEY Alias accepted by the installer
DUEL_PROXY_URL Override proxy URL (staging only)
OPENCLAW_CONFIG_PATH Custom OpenClaw config path

Troubleshooting

Symptom Fix
Invalid API key format Key must be duel_ + 8 chars + _ + 32 chars. Create one at the dashboard.
401 from doctor Key revoked or subscription inactive. Create a new key on billing/settings.
Could not reach Duel API The proxy at duelagents.com/v1 must be running. Key format can still be valid; retry later.
OpenClaw won't start Run openclaw config validate after install; restore from openclaw.json.bak if needed.
OPENCLAW_CONFIG_PATH must be inside The custom path has to live under ~/.openclaw. Unset it to use the default.
Cursor still uses OpenAI Confirm model override URL and that the API key field is your duel_* key.
Skill copy failed after npm install Re-run npm run build in the repo, or reinstall @duel-agents/install. Skills ship inside the package.

Repo map

packages/core     @duel-agents/core    validation, env maps, connectivity
packages/cli      @duel-agents/install installer CLI
packages/sdk      @duel-agents/sdk     TypeScript API client
integrations/     Claude plugin, Cursor skill, OpenClaw skill
python/           langchain-duel, llama-index-llms-duel
templates/        Example env and config files

Development

npm install
npm run build
npm test

See CONTRIBUTING.md.

License

MIT. See LICENSE.

排名相邻
同类项目