Skip to content
zodwickPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fulcrum

An LLM proxy that maximizes ROI on AI spend. All your AI traffic flows through Fulcrum, so every request becomes a trace. We route each request to the cheapest model that clears the quality bar — without ever downgrading the request that's actually writing your code — and show the dollars saved live.

The problem

Uber's CTO recently shared that they blew their entire yearly AI budget in 4 months.

It's a hard reality hitting every team that went all-in on tokenmaxxing — you now have to get budgets and defend the ROI. You don't want your engineers falling behind, but you don't have an infinite budget either. So today most orgs do the worst possible thing: they ration. Seat caps, "ask before you use Opus," budget anxiety. The people you hired to move fast get throttled.

Fulcrum kills the rationing. We don't sell cost-cutting — we sell leverage: more work per dollar. Say right now $100 gets you X amount of work. Our goal is 5X the work for the same $100 — so finance defends the spend and engineers get more headroom, not less.

Fulcrum console — live sessions, per-request routing decisions, and savings mined from traces

The idea

We're an LLM proxy — one env var and every prompt and response becomes a trace we can analyze. From those traces, across products and users, we do four things:

  1. Quality floor first (this is why engineers trust us). We never downgrade the request that's actually writing your code. Coding agents emit a huge long tail of cheap auxiliary calls — summaries, titles, file digestion — and that's what we harvest. Your hot path stays on the strong model.
  2. Route each request to the cheapest model that clears the quality bar. That's where the savings come from.
  3. Turn traces into shared leverage. Find the patterns — "your team asks this 40×/week" — and turn them into shared skills, workflows, and context the whole org inherits. This is the part engineers actually want.
  4. Governance comes free: budgets, guardrails, PII.

Demo

📹 Watch the demo video → — coding live through the proxy with a real agent while the console ticks up the dollars saved. (captions)

The video is committed in this repo under documents/. On GitHub, click the file to play it inline, or download it to watch locally.

Tech stack

agents → LiteLLM (+ our plugin) → Postgres ─┬─ LiteLLM keys/budgets/spend (free)
                                            └─ our `traces` table (actual + what-if $)
                                                       │
                                                       ▼
                                               Console (Next.js, polls ~2s)

Three services, no extra moving parts:

Layer Tech Role
Gateway Python · LiteLLM + one custom plugin Routing hook (cheapest model clearing the bar) + trace logger. Savings computed at write-time (actual + counterfactual cost per row).
Datastore PostgreSQL LiteLLM keys/budgets/spend and our own traces table. One database, no Redis/queue.
Console Next.js · TypeScript · Tailwind v4 · shadcn/ui Live dashboard; its own API routes read Postgres directly (no separate backend).
Infra Docker Compose · uv (Python) litellm + postgres + console — the whole system.

Routing brain (pure stdlib, unit-tested in milliseconds): a request classifier, a pricing table, and a savings calculator live in gateway/plugins/. The hero demo path points Claude Code (or OpenCode / Codex) at the proxy via a single ANTHROPIC_BASE_URL env var.

Quick start

cp .env.example .env           # fill ANTHROPIC_API_KEY + OPENROUTER_API_KEY
docker compose up              # postgres + litellm (gateway) + console

Console: http://localhost:3001/console

Point Claude Code at the proxy:

export ANTHROPIC_BASE_URL=http://localhost:4000
export ANTHROPIC_AUTH_TOKEN=sk-fulcrum-dev          # = FULCRUM_MASTER_KEY
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5   # aux calls → cheap tier

Verify the routing brain without Docker or API keys:

uv sync
./harness/verify.sh --fast     # classifier + pricing + savings, millisecond loop

Repo layout

  • gateway/ — LiteLLM config.yaml + plugins/ (routing hook, logger, classifier)
  • console/ — Next.js app + its app/api/ read routes
  • db/ — schema.sql (the traces table)
  • harness/ — test fixtures, replay, contract + golden tests, smoke_demo.sh
  • documents/ — demo video, captions, and console screenshot

See PLAN.md for the full design and phase plan, CLAUDE.md for the working guide, and elavator_pitch.md for the original framing.


Built at AIBoomi Startup Weekend.

Notes / backing facts (2026-06-20)
  • Uber spent its full 2026 AI budget in 4 months (Claude Code + Cursor); ~5,000 engineers, $500–$2,000/engineer/month. COO Andrew Macdonald questioned ROI. (Fortune, TechCrunch, May–Jun 2026)
  • Enterprise LLM API spend doubled in 6 months: $3.5B late 2024 → $8.4B mid 2025.
  • Routing proof: RouteLLM hit 85% cost savings at 95% of GPT-4 quality, using the strong model on only 14% of queries. 50–70% of enterprise requests can run on the cheapest tier. (supports the 5x claim)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages