tessera-langchain
Drop-in cost optimization for LangChain ChatModels. One line of config in your existing ChatOpenAI / ChatAnthropic / ChatMistralAI / ChatGroq / ChatCohere constructor routes your traffic through the Tessera proxy — auto-route, exact + provider-prompt-cache hits, per-role compression, output-length ceiling, batch arbitrage. Free Sandbox tier: 60M tokens/month, no card. Paid tiers: flat monthly subscription by token volume, keep 100% of savings.
Companion package to tessera-llm-proxy — same proxy, LangChain-shaped API.
Install
pip install tessera-langchain
Quickstart
from langchain_openai import ChatOpenAI
from tessera_langchain import tessera_openai_config
llm = ChatOpenAI(
model="gpt-4o",
openai_api_key="sk-...", # your OpenAI key, unchanged
**tessera_openai_config(api_key="tk_..."), # one line, routes through Tessera
)
# Existing LangChain code (agents, chains, tools, streaming) runs unchanged.
response = llm.invoke("Summarize a Kubernetes operator architecture in 3 bullets.")
Same pattern for the other providers — tessera_anthropic_config, tessera_mistral_config, tessera_groq_config, tessera_cohere_config.
Or wrap an existing instance:
from tessera_langchain import wrap_openai
llm = wrap_openai(my_existing_ChatOpenAI, tessera_api_key="tk_...")
Free key
Get a free API key (60M tokens/mo, no card) at tesseraai.io/dev — sign-up takes ~30 seconds and returns an instant tk_… key plus magic-link dashboard access.
Documentation
Full README with worked-numbers example ($24k → $9.4k OpenAI bill cut), mechanic table, FAQ, and architecture notes:
→ github.com/tessera-llm/tessera-langchain
Tessera platform:
License
Apache-2.0. The SDK is open source; the optimization proxy at api.tesseraai.io is closed. Wire format is open; mechanic implementations are not.
Metadata
Release files for tessera-langchain 0.1.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 |
|---|---|---|---|---|
| tessera_langchain-0.1.3.tar.gz | 7.5 kB | Without provenance | Details for tessera_langchain-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tessera_langchain-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tessera_langchain-0.1.3-py3-none-any.whl |
Total release size: 13.9 kB
Release files / tessera_langchain-0.1.3.tar.gz
| Download URL | tessera_langchain-0.1.3.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91cd06844eeaf7ec75c331793e10f6dc41d9cc6032cdb3e01ad6c657232841ba
|
|
BLAKE2b-256 checksum How to use checksums |
0032375649828a2e27a202e4f1cf19fb0f7ea1b5022b590c68c45b6c2d4eb52d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / tessera_langchain-0.1.3-py3-none-any.whl
| Download URL | tessera_langchain-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d528903d95c16294aeba86050fda2afc7e5b6d89dd13c92c6d524291667c5ed7
|
|
BLAKE2b-256 checksum How to use checksums |
16e461054e8d7d2d1ec83a04ab7aa4760fa6748f535ed7eb47114538fb7cacab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for tessera-langchain 0.1.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.