How does HILT log LLM calls?
HILT (Human-AI Log Tracing) is an open-source Python library that auto-instruments OpenAI SDK calls with a single import line. Once enabled, HILT captures 11 columns per request: timestamp, model, latency in milliseconds, input and output token counts, estimated cost in USD, user prompt, model response, session identifier, custom metadata, and success or error status. Logs are written to a local JSONL file by default, or pushed to a Google Sheets spreadsheet if the user configures a service account key. HILT supports GPT-3.5, GPT-4, GPT-4o and GPT-5 models from day one, plus any model compatible with the standard OpenAI API. The library is under 800 lines of pure Python code.
