# Margovia ## Docs - [Core concepts](https://docs.margovia.com/concepts.md): Understand runs, cost events, outcomes, and customer attribution. - [Anthropic](https://docs.margovia.com/guides/anthropic.md): Wrap Anthropic messages and capture usage automatically. - [Customer attribution](https://docs.margovia.com/guides/customer-attribution.md): Choose stable customer IDs, names, plans, and revenue fields. - [Environment variables](https://docs.margovia.com/guides/environment-variables.md): Configure the SDK with backend environment variables. - [Integration patterns](https://docs.margovia.com/guides/integration-patterns.md): Pick the right Margovia SDK API for your app. - [Local development](https://docs.margovia.com/guides/local-development.md): Point the SDK at a local Margovia API while developing another app. - [Manual tracking](https://docs.margovia.com/guides/manual-tracking.md): Track custom providers, tool calls, and multi-step workflows. - [OpenAI](https://docs.margovia.com/guides/openai.md): Wrap OpenAI chat completions and capture usage automatically. - [Troubleshooting](https://docs.margovia.com/guides/troubleshooting.md): Debug missing runs, stuck runs, attribution, and local API issues. - [Installation](https://docs.margovia.com/installation.md): Install Margovia in Node.js and backend JavaScript runtimes. - [Introduction](https://docs.margovia.com/introduction.md): Track AI cost, customer attribution, and outcome economics from Node.js apps. - [Quickstart](https://docs.margovia.com/quickstart.md): Install the SDK and track your first AI call. - [Margovia client](https://docs.margovia.com/reference/client.md): Constructor and methods on the Margovia SDK client. - [MargoviaRun](https://docs.margovia.com/reference/run.md): Methods available on a started run. - [Types](https://docs.margovia.com/reference/types.md): Public TypeScript input types exported by the SDK.