TensorCost TensorCost
Open source

Open where it touches your request path. Closed where it makes the number.

Code that sits between your application and a model should be code your security team can read. So the connectors, the SDKs and the protocols are open. The ledger that makes the number right is not.

What’s open

Code under Apache-2.0. Specs under CC-BY-4.0. Contributions under a DCO, not a CLA.

hub

Gateway connectors and policies

The LiteLLM guardrail and logger, the Azure APIM and Apigee policy templates, and the Workato and Power Platform connectors, built in a public repository.

description

The admit spec

The protocol a gateway uses to ask “may this caller spend this?”, with a mock server and conformance tests, so any gateway can implement it.

functions

The usage record format

The shape of a call record, so a gateway or a tool can send us what it saw. How we count it once stays closed.

schema

OpenTelemetry GenAI cost mapping

From OpenTelemetry gen_ai spans to a call record. On npm, source on GitHub.

terminal

SDKs and CLI

The Node.js and Python SDKs (source) and the TensorCost CLI (source). The CLI’s audit command runs on your laptop and sends no telemetry.

data_object

MCP framework and rate catalogue

The MCP framework the TensorCost tools are built on, and the public model rate catalogue.

What stays closed

And why

The counted-once ledger service, the quality judge, enforcement (admission, period budgets and holds), the route advisor and the console stay closed. That is what makes the number right, and it’s what you pay for.

The open specs mean someone else could serve the same protocol. We think that’s fine. The reference server is the one with a ledger behind it.

Building a gateway or a FinOps tool?

Implement the admit spec and test against the mock server. Tell us how it goes.