Browse / Agent tools

metergraph/metergraphsdk

Zero-dependency Python and TypeScript SDKs for function-level LLM cost attribution across major LLM providers and integrations, including OpenAI, Anthropic, Gemini, and Vercel AI.

  • ai-agents
  • anthropic
  • cost-attribution
  • gemini
  • llm-cost
  • llm-observability
  • openai
  • opentelemetry
  • python
  • self-hosted
  • typescript
  • vercel-ai-sdk

Needs keys or hardware.Tested on 2026-11-18. From the README alone, on Linux with Haiku.

For maintainers

Fix your README for agents

Paste this prompt into Claude Code, Codex, or your coding agent to fix the exact setup issue Coldpass recorded.

Improve the README and setup experience of metergraph/metergraphsdk so a small coding agent can install and verify it from scratch on a fresh Linux machine (Python 3, Node 22, standard tools).
Latest Coldpass Linux status: Needs keys or hardware (an account or key, tested 2026-11-18).
Please:
1. List all required environment variables, keys, logins, or hardware clearly at the top of the README (and add a .env.example if env vars are needed).
2. If possible, add a keyless local dry-run, mock, or fixture mode documented in the README so developers and agents can verify installation without live credentials.
3. Keep install and first-use commands copy-pasteable with pinned dependencies.
Also review the recorded check notes (known vulnerabilities) and address any unintended dependency advisories or committed sample tokens.

Shareable status badge

Add a live Coldpass Linux verification badge to your README.

Coldpass status for metergraph/metergraphsdk
[![Coldpass status](https://coldpass.dev/badge/metergraph--metergraphsdk.svg)](https://coldpass.dev/repo/metergraph--metergraphsdk/)

What we checked

Is it safe?Review first. Found: known vulnerabilities.Each check
  • Malware: not checked on every setup (its lockfile dependencies and the packages installed during our run).
  • Secrets in its files: none found by gitleaks.
  • Known vulnerabilities in its dependencies: 12 OSV advisories: pip 24.0 (GHSA-4xh5-x5gv-qwph); pip 24.0 (GHSA-58qw-9mgm-455v); pip 24.0 (GHSA-6vgw-5pg2-w6jp); pip 24.0 (GHSA-jp4c-xjxw-mgf9); pip 24.0 (GHSA-qwm4-qh6w-59xr); pip 24.0 (GHSA-wf93-45jw-7689); pip 24.0 (PYSEC-2026-1795); pip 24.0 (PYSEC-2026-1796); pip 24.0 (PYSEC-2026-196); pip 24.0 (PYSEC-2026-2875); pip 24.0 (PYSEC-2026-2876); pip 24.0 (PYSEC-2026-3721). Packages installed during our run were not checked for ordinary vulnerabilities on every setup.
  • Lines that download and run a program: none found in its source.
  • Planted fake secret files: repo code opened none.
  • Planted fake credential: not seen in unencrypted outgoing traffic. Encrypted traffic can't be read.
  • Hosts the repo's own code contacted: none. Not recorded for Haiku.

From our newest run of each setup (Nov 18, 2026, Nov 27, 2026). A quiet run is not a safety guarantee.

Can a small agent set it up?Not tested (Haiku, an account or key)
Yes (Luna, 1:34)
The run

Stuck at: <guest-path> examples/test-fixtures/fake-providers/run_e2e.py

What failed: missing prerequisite cannot prove a working operation: {"argv": ["<guest-path>", "examples/test-fixtures/fake-providers/run_e2e.py"], "returncode": 0, "stdout": "sent 7 cal

Suggested fix: None for the offline demo. To verify storage, run a self-hosted metergraph server and set METERGRAPH_INGEST_URL to it with a valid token.

Test history

  • Nov 27, 2026 · f8a8751c1b0d · linux / Luna · passed · run JSON
  • Nov 19, 2026 · 0752e40ae289 · linux / Luna · passed · run JSON
  • Nov 18, 2026 · 0752e40ae289 · linux / Haiku 5.5 · needs a key or login we did not have · run JSON
Does it do what the README says?1 of 1 claims held up. A claim is one README promise we ran and checked.Evidence

“See where your agentic AI application's LLM spend comes from.”

Does the repo’s own CI pass?Success.GitHub checks

GitHub’s check status for the default branch at the commit we tested. We did not run their CI.

Needs keys, a login or a browser?Yes.Details

credentials

What does it depend on?python3 3.12.3, metergraph PyPI package (zero runtime deps)Dependencies

Software the test agent reported the README needed.

Local or hosted?bothHow we tell

From the README and the endpoint we tested.

Is the README accurate?Yes.Deviations

No step differed.

What did it do when we ran it?During our run, it made network connection attempts.What we saw

Linux / Haiku

  • During our run it made network connection attempts; this record can't tell lookups from real connections.

Linux / Luna

  • Nothing unexpected in the trace for this setup.
  • While installing, git-remote-https looked up github.com.
  • While installing, python looked up files.pythonhosted.org, pypi.org.
  • We found no known-malicious packages among the 3 Python and npm packages we observed (checked against OSV malicious-package advisories).

We could not tell whether OSV lists a malware advisory for its dependencies.

We found no compiled programs in its files.

What we checked: OSV vulnerability and malware advisories for pinned dependencies, secret-pattern scanning (gitleaks), compiled files shipped in the repo, and the connection attempts, file writes and credential-file reads we traced from repo processes while we installed and ran it. Expected package-manager and cache activity is left out. Where a setup's record is missing, capped or cut short, it says so above, and these checks may not have run for it.

What we didn't check: host name lookups; whether a connection got through; other UDP traffic; environment variables it read; minified JavaScript; programs packed inside archives or Git LFS; or what the code is meant to do.

A quiet run is not a safety guarantee.

Is it maintained?MaintainedActivity

actively maintained: last commit 0 days ago; 98 commits and 60 merged PRs in 90 days; 0 open issues, 0 open PRs; 1 of 2 recent threads got a maintainer reply, median first reply 27.7h; latest release 2026-11-18

AboutStars: 1 · Forks: 1 · Contributors: 3 · Owner account since Oct 6, 2026Source

Recorded GitHub repository and owner account metadata.

LicenseSPDX: Apache-2.0 · commercial use: yesSource

From GitHub’s license detection. The repository’s license text gives the terms.

Cost to runNeeds a key or login (name not captured)Details

Peak guest RAM: not captured

Guest disk change: not captured

GPU need: not captured

Paid service: not captured