Open source at the core.
Two of Majordomo's tools are open source under the MIT license: a standalone gateway for cost and usage tracking, and a Python client that talks to every provider. Run them yourself for free — or let Majordomo Cloud give you the fully-managed platform and dashboard on top.
majordomo-gateway
The open-source, self-hosted LLM gateway
A standalone, self-hosted gateway for LLM cost and usage tracking. Point your apps at it instead of the provider, and every request is priced and logged to your own Postgres. No UI to run — the interface is a CLI and an MCP server, and nothing phones home.
- Provider-agnostic proxy — OpenAI, Anthropic, Gemini, Bedrock, and OpenAI-compatible providers
- Your keys, relayed — it forwards your own provider key upstream and never stores credentials
- Agent-run observability — reconstruct a run's cost waterfall from trace and span headers
- Query usage from the CLI or straight from Claude Code via the bundled MCP server
# Clone, build, and run the gateway
git clone https://github.com/go-majordomo/majordomo-gateway.git
majordomo-llm
The unified Python LLM client
A single async interface across every major provider, with cost tracking built into every response. Use it on its own, or point it at a Majordomo gateway to route and log traffic centrally.
- One API across OpenAI, Anthropic, Gemini, DeepSeek, Cohere, Bedrock, and more
- Automatic cost tracking, token counts, and latency on every response
- Cascade across providers with LLMCascade — if one fails, the next picks up automatically
- Structured Pydantic outputs, streaming, retries, and optional request logging
# Install from PyPI
pip install majordomo-llm
Let Claude Code wire it up
Two open-source Claude Code skills connect your codebase to Majordomo the right way — correct base URL, headers, metadata, and agent-run tracking. Route any client (OpenAI or Anthropic SDK, Pydantic AI, Agno, or majordomo-llm) through the gateway just by asking.
Prefer not to run it yourself?
Majordomo Cloud is the fully-managed platform — a hosted gateway plus a dashboard for cost analytics, request logs, replays, evals, and experiments. Start in the cloud today, and self-host the platform in your own VPC whenever you need.