Developer Hub

One line of code.
Enterprise-grade AI infrastructure.

Drop-in SDKs, native Terraform provider, production Helm charts, and a full REST management API. Deploy TokenLens across your entire stack without leaving your IDE.

Drop-in SDKs
Native wrappers for OpenAI & Anthropic. Zero refactor.
Terraform & Helm
Declarative deploy into your existing CI/CD pipelines.
REST Management API
Provision keys, budgets, regions, PII rules programmatically.
Pillar 2

Drop-in SDK wrappers

Identical surface area to the official OpenAI and Anthropic SDKs. Failover, semantic caching, PII masking, and cost tracking are wired in automatically.

install
npm install @tokenlens/sdk
typescript
import { TokenLensOpenAI } from "@tokenlens/sdk"; const client = new TokenLensOpenAI({ apiKey: process.env.TOKENLENS_KEY }); // Behaves identically to the official OpenAI SDK const res = await client.chat.completions.create({ model: "gpt-5.5", messages: [{ role: "user", content: "Summarize this contract..." }], }); // Automatic: failover, semantic cache, PII masking, cost tracking
Zero refactor
Same method signatures as openai-node and openai-python
Automatic failover
Routes to backup provider on 5xx or timeout
Built-in caching
Semantic cache returns identical responses in <50ms
PII masking
Strips emails, SSNs, API keys before egress
Pillar 1 — Infrastructure as Code

Native Terraform provider

Provision gateway keys, budgets, regional restrictions, and PII firewalls directly from your existing Terraform stack. Plug into CI/CD with zero context switching.

hcl
terraform { required_providers { tokenlens = { source = "tokenlens-ai/tokenlens" version = "~> 1.0" } } } provider "tokenlens" { admin_token = var.tokenlens_admin_token # from your secret manager } resource "tokenlens_gateway_key" "finance_team" { name = "finance-prod-key" daily_budget_usd = 250.00 monthly_budget_usd = 5000.00 region_restriction = "eu" # eu | us | global pii_firewall = true semantic_cache = true } output "finance_key" { value = tokenlens_gateway_key.finance_team.plaintext sensitive = true }
Live now

REST Management API

Everything in the dashboard, available as a clean REST API. Powers the Terraform provider, the Helm operator, and your own internal automation.

GET
/api/public/v1/admin/keys
POST
/api/public/v1/admin/keys
PATCH
/api/public/v1/admin/keys/{id}
DELETE
/api/public/v1/admin/keys/{id}
GET
/api/public/v1/models
POST
/api/public/v1/chat/completions
POST
/api/public/v1/messages
curl
curl https://tokenlens.co.in/api/public/v1/admin/keys \ -H "Authorization: Bearer tlsk_admin_..." \ -H "Content-Type: application/json" \ -d '{ "name": "finance-prod", "daily_budget_usd": 250, "region_restriction": "eu", "pii_redaction_enabled": true }'
Pillar 3 — Open Core

Built on open source

The proxy gateway, Inngest workflow engine, and PII regex library are Apache 2.0. Multi-tenant RBAC, forecasting analytics, and SAML SSO ship with the Enterprise tier.

Open Source — Apache 2.0
  • Core proxy gateway
  • PII regex engine
  • Inngest workflow definitions
  • OpenAI/Anthropic compat layer
  • Semantic cache primitives
Enterprise — Closed
  • Multi-tenant RBAC
  • Forecasting analytics
  • SAML SSO + SCIM
  • Audit log streaming
  • 24/7 dedicated support

Need help shipping?

Talk to Navin directly. We pair with platform teams during onboarding.