Discover and explore top open-source AI tools and projects—updated daily.
2aronSIntelligent LLM routing for cost-effective inference
New!
Top 36.2% on SourcePulse
Duel Agents provides an IDE-native routing layer for Large Language Models (LLMs), enabling users to run prompts against multiple models simultaneously and select the most cost-effective response that meets quality standards. It targets developers and researchers seeking to optimize LLM usage by automating model selection based on performance and price, offering significant cost savings and streamlined integration across various tools and applications.
How It Works
This project routes all LLM traffic through the duelagents.com/v1 API endpoint, requiring a specific Duel API key. It employs an intelligent routing mechanism that evaluates responses from multiple models, prioritizing the cheapest option that satisfies predefined quality criteria. The system includes an SDK for custom application development and integrates seamlessly with popular tools, offering both OpenAI-compatible and Anthropic-compatible interfaces for flexible adoption.
Quick Start & Requirements
export DUEL_API_KEY=duel_<prefix>_<secret>.npx @duel-agents/install all.npx @duel-agents/install doctor.Highlighted Details
@duel-agents/sdk for programmatic use in TypeScript applications, supporting both chat completions and message creation.Maintenance & Community
The repository structure includes core packages (@duel-agents/core, @duel-agents/cli, @duel-agents/sdk) and an integrations/ directory. Development instructions involve standard npm install, npm run build, and npm test. Further details can be found in CONTRIBUTING.md. No specific community links (Discord, Slack) or notable contributors are mentioned in the README.
Licensing & Compatibility
The project is licensed under the MIT License. This permissive license generally allows for commercial use and integration into closed-source projects, with minimal restrictions beyond attribution.
Limitations & Caveats
Users must obtain and use a Duel API key; raw OpenAI or Anthropic API keys are not supported by these integrations. The service relies on the availability and performance of the duelagents.com/v1 proxy. Some integrations, like Cursor, require additional manual configuration beyond the installer script.
1 week ago
Inactive
transitive-bullshit
langchain-ai