# Install (/docs/sdk/install)



One install, then `tp.init()`.

## Python [#python]

```bash
pip install token-police
```

Requires &#x2A;*Python 3.10+**. OpenAI, Anthropic, Bedrock, and Google Gemini are metered by this
install alone; so are Cohere, Mistral, Groq, Together, OpenRouter, Cerebras, Hugging Face and
xAI. Frameworks (LangChain, LlamaIndex, CrewAI, …) each add one extra.

## Node [#node]

```bash
npm i token-police
```

Requires &#x2A;*Node 20+**; works in ESM and CommonJS. Install the provider package you already use
— they're optional peer dependencies — and TokenPolice taps it. LangChain apps add one
companion package:

```bash
npm i token-police token-police-langchain
```

<Callout type="info">
  Using native ESM, `pnpm`, a workspace, or `openai` 7.x? Pass your provider modules to
  `tp.init()` — see [Node & ESM](/docs/sdk/node-esm).
</Callout>

## Next [#next]

<Cards>
  <Card title="Supported versions" href="/docs/sdk/supported-versions" description="Runtimes, every extra, per-provider capabilities, and the versions we've verified." />

  <Card title="Support matrix" href="/docs/integrations/matrix" description="Providers and frameworks at a glance, with the per-framework wiring pages." />

  <Card title="init() parameters" href="/docs/sdk/init" description="Configure the SDK once at startup." />
</Cards>
