Add LLM tracing to your AI application in seconds. This Claude Code plugin auto-detects your LLM SDKs and instruments them with Scorecard — so you can monitor, evaluate, and debug your AI app from app.scorecard.io.
It also bundles the Scorecard MCP server, giving Claude Code direct access to your Scorecard workspace — projects, testsets, metrics, runs, and more — without leaving your editor.
claude --plugin-dir /path/to/scorecard-claude-plugin/scorecard-pluginThen, from your project directory:
/scorecard:instrument
The plugin will detect your LLM setup, modify your code, and configure environment variables. That's it.
The /scorecard:instrument skill scans your project, identifies which LLM SDKs you're using, and applies the right instrumentation automatically. It handles:
- Adding Scorecard proxy configuration or OTEL exporters to your code
- Creating or updating your
.envwith the required variables - Ensuring
.envis in.gitignore - Instrumenting all client initializations (not just the first one)
- Merging with existing custom headers and configuration
Approaches are applied in priority order — built-in OTEL first, manual OTEL next, proxy/wrapper last.
| Integration | Language | Approach |
|---|---|---|
| Claude Agent SDK | JS/TS, Python | Built-in OTEL — env vars only, no code changes |
| Existing OpenTelemetry | JS/TS, Python | OTEL — adds Scorecard as an additional exporter |
| LangChain | Python | OTEL — via Traceloop / OpenLLMetry |
| Any other app (raw OpenAI/Anthropic/custom) | JS/TS, Python | Manual OTEL — emits Agent-SDK-shaped spans |
| OpenAI SDK | JS/TS, Python | Proxy (lower-priority) — routes through llm.scorecard.io |
| Anthropic SDK | JS/TS, Python | Proxy (lower-priority) |
| Azure OpenAI | JS/TS, Python | Proxy (lower-priority) |
| Vercel AI SDK | JS/TS | SDK wrapper (lower-priority) — via scorecard-ai |
Installing the plugin also connects the Scorecard MCP server, which lets Claude Code read and manage your Scorecard workspace directly — ask for what you want in plain language and Claude calls the tools on your behalf.
Available tools cover:
- Projects — list and create
- Testsets & testcases — create, read, update, delete
- Metrics — create, read, update, delete evaluation metrics
- Runs & records — list runs, list/create records, upsert scores
- Systems — manage system configurations and versions
- Docs — search the Scorecard documentation
For example: "Create a testset in my project from these examples" or "List my last 5 runs and show their scores."
Claude Code connects to the server automatically once the plugin is loaded. Run /mcp to check the connection and complete any authentication it prompts for.
- A Scorecard account
- An API key from app.scorecard.io/settings
- Claude Code CLI installed
Scorecard ingests OpenTelemetry traces. The plugin applies the highest-priority approach that fits your stack:
- Built-in OTEL via env vars (preferred) — For the Claude Agent SDK (and other frameworks with built-in OTEL), tracing is enabled purely with environment variables — no code changes. Traces go to
https://tracing.scorecard.io/otel. - OTEL instrumentation (fallback) — For any other app, the plugin emits OpenTelemetry traces to Scorecard. Existing-OTEL and LangChain apps use their standard exporters; everything else is instrumented to emit spans in the same shape the Claude Agent SDK emits, so they render identically in Scorecard — branded with your app's own service name.
- Proxy / SDK wrapper (lower-priority) — Simpler but less faithful. Redirects your client's base URL to
https://llm.scorecard.io(proxy) or wraps the Vercel AI SDK withscorecard-ai. Used only if you prefer a minimal-code option.
All approaches support streaming responses.
- Set your
SCORECARD_API_KEYin.env(starts withak_) - Run your app and make a few LLM requests
- Check app.scorecard.io — traces appear in the Records tab within 1–2 minutes