Skip to main content

AI agent cost intelligence — trace LLM calls, attribute costs, get optimization recommendations.

Project description

Traeco SDK

Stop paying for AI agent waste. Traeco traces every LLM call in your agent, attributes costs per function, and tells you exactly where to cut spend.

Install

pip install traeco-sdk

3 lines to add tracing

import traeco
from anthropic import Anthropic

traeco.init(api_key="tk_live_...", agent_name="my-agent")
client = traeco.wrap(Anthropic(api_key="..."))

# Your existing code — unchanged
response = client.messages.create(model="claude-sonnet-4-6", ...)

Per-function cost breakdown

from traeco import span

@span("market_analysis")
def analyze(data):
    return client.messages.create(...)

@span("trade_decision")
def decide(analysis):
    return client.messages.create(...)

Every @span shows up as its own row in the dashboard with token counts, cost, latency, and optimization recommendations.

Works with OpenAI too

from openai import OpenAI
client = traeco.wrap(OpenAI(api_key="..."))

Dashboard

See costs at traeco.ai — get your API key from Settings → API Keys.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

traeco_sdk-1.0.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traeco_sdk-1.0.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file traeco_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: traeco_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for traeco_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6aff330080b89e30af40e469a58575868378c8ec2a88d93e3a2c7304eaaacd66
MD5 f318e074bbde039433123c499c691645
BLAKE2b-256 8e76341a6cf68d47fd3559eb9969cfaf2fa79b91965f3148ac7e76358e4a25d3

See more details on using hashes here.

File details

Details for the file traeco_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: traeco_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for traeco_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81c8919ea01bc83f22fa31cf55243c839b2cbcc88426eb2d1c040677a4edc0cf
MD5 4d1729d8aa282a0d8c7db42ca548587d
BLAKE2b-256 c8f46a6ccefb7962f0147bf388e356559475189f3679e59c9032ae73c8c65dd8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page