Agent Execution Optimization Engine — answers the question: what is the best execution strategy for this task? Built on the AgentStateGraph substrate so plans, scoring, and policy live in one graph.
Cost-per-unit-of-work · Efficiency score · Agent history per task type · Built on AgentStateGraph
LLM routers optimize tokens. Real agent systems waste money on the wrong axis: the same task gets pinned to the most expensive model whether it needs it or not. AEOE optimizes for cost-per-unit-of-work on your own workload, scored against your own history, with the routing decision recorded as a commit you can blame later.
Why this matters
Pre-alpha — the foundation is in flight. Here's the shape of the engine.
A planning agent receives 50 tasks of mixed shape — some need code, some need long context, some are throwaway summaries. Without AEOE: a flat router pins everything to GPT-5 and burns budget.
With AEOE: call route(task) and get back the best model + parameters for this task type, scored on cost-per-unit-of-work and prior efficiency for the same shape. The decision is a commit. The outcome is a commit. The next batch sees both.
You already have a LiteLLM-shaped client. AEOE's proxy facade is OpenAI- and Anthropic-compatible — change the base URL, get optimized routing under the covers, keep every existing call site.
No rewrites. No new SDK. Same payloads, optimized routing, with the prior-run history visible in your AgentStateGraph store.
AEOE is built on AgentStateGraph. Every routing decision and its outcome is a commit. The next decision for a similar task sees the prior efficiency score — for your agents, on your task shapes, not a public leaderboard.
The engine improves on your workload. Yesterday's wins become tomorrow's defaults.
How it works
LiteLLM answers which key. AEOE answers everything else — and records the answer as a commit.
Deploy It Anywhere
Get Started
What it is not
AEOE is an optimization engine, not a key vault or a leaderboard.
License
AgentStateRouter is built to become infrastructure for agent execution. Infrastructure primitives are strip-mining targets: cloud providers offer them as managed services, capture the value, and contribute nothing back. BSL 1.1 closes that gap.
Part of a family
AEOE is the optimization engine. AgentStateGraph is the substrate that makes prior-run scoring history possible. OpenClaw is the reference embedded consumer.
Visit agentstategraph.dev GitLab