traeco-sdk
Stop paying for AI agent waste. Traeco traces every LLM call, attributes costs per function, and surfaces exactly where to cut spend.
Install
pip install traeco-sdk
Quickstart
import traeco
from anthropic import Anthropic
traeco.init(
api_key="tk_live_...",
host="https://backend-kynarochlani-4185s-projects.vercel.app",
agent_name="my-agent",
)
client = traeco.wrap(Anthropic())
# Your existing code — unchanged
response = client.messages.create(model="claude-sonnet-4-6", ...)
Per-function cost breakdown
@traeco.span("market_analysis")
def analyze(data):
return client.messages.create(...)
@traeco.span("trade_decision")
def decide(analysis):
return client.messages.create(...)
Each @span becomes its own row in the dashboard — cost, tokens, latency, and recommendations per function.
Works with OpenAI too
from openai import OpenAI
client = traeco.wrap(OpenAI())
Environment variable
import os
traeco.init(api_key=os.getenv("TRAECO_API_KEY"), ...)
Full docs
See DOCS.md for the complete reference including Claude Code integration prompts.
Metadata
Release files for traeco-sdk 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| traeco_sdk-1.0.3.tar.gz | 13.2 kB | Without provenance | Details for traeco_sdk-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| traeco_sdk-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for traeco_sdk-1.0.3-py3-none-any.whl |
Total release size: 25.6 kB
Release files / traeco_sdk-1.0.3.tar.gz
| Download URL | traeco_sdk-1.0.3.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ab5f81fe08fe290e7a05240a7e4e61ff9b820386540ea0fd25a61d0f28915c3
|
|
BLAKE2b-256 checksum How to use checksums |
45b9582f6313b3d3fe87e714f291220ac652dc79e2d45d758b4d13023d28d5b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / traeco_sdk-1.0.3-py3-none-any.whl
| Download URL | traeco_sdk-1.0.3-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1aeddc1dd91cea87cfb08e545a44e05f354c18833c34cd7936b5a873217f67c
|
|
BLAKE2b-256 checksum How to use checksums |
7ac5a370fe2696f5885614f60307fdf5eb101c14c1d7cb2e7847b60eb3abb57d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for traeco-sdk 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.