
Collective Intelligence
Self-hosted multi-model AI engine with 31 coordination strategies.
Replaces —

Who it's for
Teams that want a single internal endpoint for all AI calls, with routing, cost governance, and audit trails built in, can deploy Collective Intelligence behind their applications. The OpenAI-compatible API means existing code needs only a base_url change, and tenant isolation lets different teams share one deployment safely.
If you are routing a single team's requests to a single provider with no governance requirements, the coordination layer adds latency and cost with no return.
The benchmark use is committed to the repository and reproducible. Teams building pipelines where correctness can be verified, such as code execution, math, or data extraction, can run the collective's strategies against their own workloads and measure the accuracy difference against a single-model baseline.
If your tasks are open-ended prose generation, creative writing, or subjective evaluation, single frontier models currently outperform the collective.
Per-request max_cost enforcement, full provenance on every response via ailin_metadata, and architectural tenant isolation address the governance layer that most direct API integrations leave to teams to build themselves. AGPL Section 13 compliance endpoints are served by the engine.
If compliance is not a requirement and your team calls a single model for straightforward generation tasks, the overhead is not justified.
The problem
Teams building AI applications have to pick a single model for each call, which means accepting that model's training biases, blind spots, and vendor constraints as the application's own. Provider outages or rate limits stall every dependent service at once; there is no cross-check to catch a confident wrong answer; and audit requirements have no surface to satisfy since the decision rationale lives inside the model's weights. When a provider changes its pricing, deprecates a model, or introduces new policy restrictions, the entire application must adapt. The governance problem compounds this. Per-request cost caps, tenant isolation, and audit trails for AI decisions all have to be built from scratch by each team. Most integrations end up with no provenance at all: a response arrives with no record of which model gave it, what strategy selected it, or what it cost.
How it works
The discovery engine continuously scans native provider APIs, cloud hubs, model aggregators, open-model repositories, and private inference endpoints, indexing over 100,000 model identifiers across approximately 90 provider integrations. Every discovered model is indexed automatically across capabilities, performance profile, pricing, context window, modalities, and architecture. When a new model is released, the catalog absorbs it without code changes or downtime.
Strategies include consensus with convergence floors, blind debate, expert panels, devil's-advocate consensus, cost-cascade, and best-of-N with objective verification. Each strategy is labeled with its reachability (auto-selectable, explicit-only, or roadmap) and falsifiable by the benchmark use in the repository. The default ailin-auto cascade selects the cheapest viable path for simple requests and escalates to deeper strategies only when the quality gate demands it.
Any existing OpenAI SDK client connects by changing the base_url only, with no other code changes required. This covers Python, TypeScript, and any HTTP client that follows the OpenAI API shape. The engine runs as a self-hosted server.
Every response includes ailin_metadata recording the strategy used, the models chosen, the final decider, per-subcall cost, and dissent from non-winning models. This covers both the audit trail for governance and the evidence chain needed to reproduce the decision for debugging.
A max_cost parameter enforced at admission prevents any single request from exceeding a budget. Tenant isolation is architectural, not configuration-level. These controls are enforced at the platform layer for every request and every strategy, so each team or application gets the same guarantees without building them separately.
Image, audio, and video generation are routed by capability to models that support the requested modality. Deterministic file rendering for DOCX, XLSX, PDF, PPTX, ZIP, and code archives works from any structured-output chat model and is documented as production-grade.
Features
- 100,000+ Model Catalog with Semantic Discovery
- 31 Registered Coordination Strategies
- OpenAI-Compatible API
- Full Decision Provenance on Every Response
- Per-Request Cost Governance
- Multimodal and Deterministic File Generation
Recommended for this setup
Strengths
- AGPL-3.0 Self-Hosting with No Per-Request Fees: Under AGPL-3.0, any team can run Collective Intelligence on their own infrastructure for internal use without licensing fees. Unlike paid AI gateway products, there is no per-call pricing on the coordination layer. AGPL requires sharing source changes if you offer the engine itself as a hosted service to others.
- Published Benchmark Against Frontier Models: The 2026-07 benchmark recorded 97% accuracy (37/38 correct) on verifiable tasks, against 68-82% pooled across GPT-5.5-pro, Claude Opus 4.8, Gemini 3.1 Pro, and Grok 4.3. The raw per-execution data and reproducible scripts are committed to the repository so the results can be re-run independently.
- Vendor-Agnostic Routing Across 90+ Providers: The engine routes across approximately 90 provider integrations, including frontier APIs, model aggregators, and self-hosted models. If a provider degrades, the fallback chain continues the request with full provenance. Capability is decoupled from any single vendor's roadmap, pricing, or policy.
- Automatic Model Discovery at the Frontier: The discovery engine absorbs newly released models without code changes or manual integration work. When a provider publishes a new model to a monitored source, the catalog picks it up and health-gates it before advertising it for routing. No hardcoded model lists.
Trade-offs
- Single Models Still Win on Open-Ended Prose: The README's own benchmark table notes that individual frontier models outperform the collective on creative writing and refactoring tasks. The collective's advantage is on verifiable tasks where a deterministic verifier can check correctness; for open-ended creative work, decider selection matters but singles still lead.
- Cost Premium for Multi-Round Strategies: Coordinating multiple models across rounds costs more than a single model call. The verifier short-circuit collapses this cost approximately 100x when it fires, and ailin-auto defaults to the cheapest viable strategy, but multi-round arbitration strategies carry a real cost premium over direct single-model calls.
- Early-Stage Project: The repository was created in July 2026 and has 227 stars. Some layers described in the README carry roadmap status badges, and the coordinator model weights are listed as still in development. Teams depending on it for production should track active development closely.
- AGPL-3.0 Restricts SaaS Re-hosting: AGPL-3.0 permits running the engine for internal and commercial team use without restriction. What it prohibits is offering a hosted version as a managed service to external users without releasing your modifications. Teams planning to resell the engine as a managed product need a separate commercial license arrangement.
Tech stack
FAQ
An AI gateway like LiteLLM routes requests to different providers but still executes one model call per request. Collective Intelligence coordinates multiple models on a single request through its strategy layer: consensus, debate, and verification strategies run several models together and arbitrate a final answer with full provenance. The gateway function is one component; collective coordination is the product's core design.
AGPL-3.0. You can run it on your own infrastructure, modify it, and use it for internal or commercial team purposes without restriction. If you deploy a modified version as a hosted service to external users, AGPL requires you to publish your source changes. Teams planning to resell the engine as a managed service should check whether a commercial license is available from the project.
Yes. The engine exposes an OpenAI-compatible API and requires only a base_url swap to redirect existing SDK calls. This applies to any client that follows the OpenAI API shape, including Python, TypeScript, and direct HTTP calls.
On objectively verifiable tasks, yes: the 2026-07 benchmark recorded 97% accuracy (37/38 correct) versus 68-82% pooled across four frontier flagships. For open-ended prose, creative writing, and subjective tasks, single frontier models currently lead. The README documents both results honestly, with the raw data committed for independent reproduction.
The ailin-auto conservative cascade sends a request to the cheapest viable single model for simple inputs. If a request declares an answer_check constraint, it routes to consensus plus the deterministic verifier. Any request naming an explicit strategy uses that one of the 31 registered options. The default behavior favors cost and speed; deeper strategies activate only when the quality gate demands them.