🏠 Home 📖 Overview 🏗️ Architecture 🚀 Getting Started 🔌 API Docs 📄 Complete Wiki

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/aanshshah/llm_token_analytics_lib.git
    cd llm_token_analytics_lib
  2. Install the library and dependencies:

    pip install -e .
  3. (Optional) Install provider dependencies for data collection:

    pip install llm-token-analytics[providers]
  4. Set up your environment variables for API keys (if applicable):

    export OPENAI_API_KEY="your-key"
    export ANTHROPIC_API_KEY="your-key"
    export GOOGLE_CLOUD_PROJECT="your-project"

Verification Steps

To verify the installation, run the basic simulation example:

python examples/01_basic_simulation.py