Docs / local first

Start with one surface, not a platform migration.

Run the local tools in seconds. Add application instrumentation or gateway enforcement only when the ownership boundary calls for it.

available now

MCP / CLI / Python tracker

no hosted account required

1

MCP Server

Inspect supported Claude Code sessions and Cline task data. Cline data can be discovered in VS Code, Cursor, Windsurf, and remote server storage.

install + run

$ npx @f3d1/llmkit-mcp-server

add to your MCP config
{
  "mcpServers": {
    "llmkit": {
      "command": "npx",
      "args": ["-y", "@f3d1/llmkit-mcp-server"]
    }
  }
}

That's it. Ask your AI assistant "how much did this session cost?" and it'll use the local tools.See all 11 tools ->

2

Python SDK

Add an httpx transport hook to estimate cost from supported OpenAI- and Anthropic-style chat responses. No LLMKit account or proxy is required.

install

$ pip install llmkit-sdk

usage

from openai import OpenAI

from llmkit import tracked

 

client = OpenAI(http_client=tracked())

 

# use client normally. costs tracked automatically.

res = client.chat.completions.create(

model="gpt-4o",

messages=[{ "role": "user", "content": "hello" }]

)

Use this path only with clients that accept an httpx client. Estimates use the bundled pricing snapshot and the usage fields returned by the provider.

3

TypeScript gateway SDK

Typed sessions, cost metadata, and streaming through the hosted gateway. This path requires an existing LLMKit API key while new account creation is closed.

install

$ npm install @f3d1/llmkit-sdk

usage

import { LLMKit } from '@f3d1/llmkit-sdk'

 

const kit = new LLMKit({ apiKey: process.env.LLMKIT_API_KEY! })

const res = await kit.chat({

provider: 'openai',

model: 'gpt-4o',

messages: [{ role: 'user', content: 'hello' }]

})

 

console.log(res.content, res.cost)

4

CLI

Wrap a command that uses an OpenAI or Anthropic client honoring the standard base-URL environment variable. The CLI runs a local proxy and prints a cost summary on exit.

wrap a command

$ npx @f3d1/llmkit-cli -- python my_agent.py

illustrative output shape

LLMKIT

 

$0.0847 total 12 requests 34.2s ~$8.96/hr

 

claude-sonnet-4-20250514 8 reqs $0.0623 ================----

gpt-4o-mini 4 reqs $0.0224 ======--------------

The command is unchanged, but coverage is protocol-specific. Calls that bypass OPENAI_BASE_URL or ANTHROPIC_BASE_URL are not observed.

Hosted API gateway

Hosted account creation and API-key management are temporarily unavailable while the authenticated service is restored.

Available now

The MCP local tools, CLI, and Python tracked() path above remain available without an LLMKit account.

Hosted path

Check the service status before attempting dashboard or gateway setup.

Resources