Skip to main content

Installation

pip install tokensense
Requirements: Python 3.10+ TokenSense has zero required dependencies. The core package uses only Python’s standard library — sqlite3, logging, threading, urllib. Optional — for development and testing:
pip install tokensense[dev]
# includes: pytest, pytest-asyncio, anthropic, openai, groq