Skip to main content

somm

Self-hosted LLM telemetry, routing, and intelligence loop.

The main library: SommLLM — one call wraps telemetry, provider routing across ten providers, tool calling, streaming, embeddings, multimodal dispatch, cost tracking, budget gates, online evaluation, durable eval gates, prompt optimization proposals, experiment campaigns, and cross-project model memory (the sommelier). It also exposes a neutral one-attempt harness API for Claude Code, Codex, and OpenCode so task runners do not reimplement CLI and event-stream adapters. Zero-config, privacy-first, no phone-home.

import somm

llm = somm.llm(project="my_app")
result = llm.generate(prompt="Reply with exactly: pong", workload="ping")
print(result.text, result.provider, result.cost_usd)

Async code can call await llm.agenerate(...), await llm.aembed(...), await llm.agenerate_structured(...), or iterate llm.astream(...). These methods use the same synchronous routing, embedding, governance, and telemetry paths without blocking the caller's event loop.

from somm import harnesses
from somm.harnesses import HarnessRequest

result = harnesses.run("codex", HarnessRequest(
    prompt="Fix the failing tests",
    cwd="~/src/my-project",
    capture_dir="./runs/task-1",
))
print(result.outcome, result.final_text)

Full documentation, design docs, and examples live in the somm repository.

Metadata

Release files for somm 0.18.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for somm 0.18.0
File Size Uploaded
somm-0.18.0.tar.gz 296.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for somm 0.18.0
File Interpreter ABI Platform
somm-0.18.0-py3-none-any.whl Python 3 none any Details

Total release size: 523.2 kB

Release files / somm-0.18.0.tar.gz

Download URL somm-0.18.0.tar.gz
Size 296.4 kB
Tags Source
SHA-256 checksum
How to use checksums
348f0325c07d9fd4b5f51965243f499d4ff78a9e65731fdf5b1542619a89b1b4
BLAKE2b-256 checksum
How to use checksums
2a6f86367a2cfa445df3a3dc4c7f39c843b39eddd62296373a484ab1cd20bc37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / somm-0.18.0-py3-none-any.whl

Download URL somm-0.18.0-py3-none-any.whl
Size 226.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3b6f0d6cde895224a7b102ee5bbbc4f26e5a2221ec59829c9bf7e2147bd070c
BLAKE2b-256 checksum
How to use checksums
1856061e27834c06041dc7c1878f20f323581bfa38f8331a6e5f11783512856f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

0.19.0

2 release files

This release

0.18.0 This release

2 release files

0.17.2

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page