Skip to content

A3m Router

Self-hosted OpenAI-compatible router on port 8787 that sends each prompt to the cheapest capable model across free, budget, mid and premium tiers, with heuristic auto and Jev-backed routing modes.

Stars
16
Language
TypeScript
License
MIT
Published by
Community
Author
Das-rebel
Last verified
Oct 2026

Das-rebel/a3m-router

User repository on GitHub

View on GitHub

⚡ Adaptive multi-model LLM router — 80+ providers, Jev System One single-pass routing (model=jev-auto), pheromone-trail failover, parallel ensemble merge. npm: adaptive-memory-multi-model-router

Forks
5
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.Homepage

About this project

GPT-4o costs $0.03/run. A3M routes the same request to Groq/Mistral for $0.0001. Most requests don't need GPT-4o. A simple question costs the same as a complex one. A3M analyzes your prompt and routes to the cheapest provider that can answer it correctly. model="auto" — Heuristic router, 0.4ms overhead, zero extra cost. model="jev-auto" — ML decision head, calibrated probabilities, 2ms warm. Provider availability checked at runtime — no hardcoded uptimes. OpenRouter takes a cut. A3M runs on your machine.

Quoted from the project's README. Read the full README.

Highlights

  • Drop-in OpenAI base-URL replacement with model auto for cheapest-capable routing.
  • Heuristic and ML-backed routing paths with semantic duplicate checks before provider choice.
  • Tiered provider catalog from local runtimes to premium models with runtime availability checks.
  • Parallel ensembles, uncertainty estimation, memory windows and CLI health and benchmark tools.

Watch out

Savings illustrations assume simple prompts route correctly and complex reasoning still pays premium rates. Availability is checked at runtime and local-service or Docker hosting is on you. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

48GitHub stars
Agent harness for work that outlives one chat, with resumable turns, routed state machines, and observational memory across sessions and processes.
Jev Agents & MCP#community#jevbest#catalog-import
Assistant framework that stores specs, memory, and specialist agents as plain markdown files in your repo for Claude Code, Codex, Opencode, and similar runtimes.
Jev Agents & MCP#community#jevbest#catalog-import
36GitHub stars
Obsidian plugin providing multi-provider chat, vault read and write with function calling, visual workflow automation, and local vector search.
Jev Agents & MCP#community#jevbest#catalog-import
13GitHub stars
Pi extension that classifies each task with Jev over OpenRouter and routes it to a Pareto-optimal model balancing measured quality, cost, and latency under a role policy.
Jev Agents & MCP#community#jevbest#catalog-import
11GitHub stars
Pi Coding Agent extension that routes only at task boundaries, using Jev judgments plus declared capabilities, availability, price estimates, and failure state.
Jev Agents & MCP#community#jevbest#catalog-import
10GitHub stars
Node router that sends each query to the cheapest capable LLM tier by asking Jev to classify demand against your tier descriptions, with no LLM call spent on routing.
Jev Agents & MCP#community#jevbest#catalog-import
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai