Docs / local first
Start with one surface, not a platform migration.
available now
MCP / CLI / Python tracker
no hosted account required
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.
$ npx @f3d1/llmkit-mcp-server
{
"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 ->
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.
$ pip install llmkit-sdk
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.
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.
$ npm install @f3d1/llmkit-sdk
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)
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.
$ npx @f3d1/llmkit-cli -- python my_agent.py
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.