Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds one line under "Extra commands" in docs/plugins/directory.md for llm-token-costs, a plugin I wrote for the cost tracking asked for in #1039 (open since May 2025). LLM already logs input_tokens, output_tokens and token_details for every response, so
llm costsprices those rows by model, day, month or conversation, andllm costs estimateprices a prompt across several models before you send it. It splits out cached input (inside input_tokens for OpenAI and Gemini, outside it for Anthropic), bills Anthropic cache writes and long-context tiers at their own rates, and reads both the turns table and the older responses table. Its tests pass on llm 0.27.1, 0.31.1 and 0.37.2 across Python 3.9 to 3.14, and the docs build cleanly with this line. I maintain the plugin and the llm-prices package it gets rates from (both MIT; that package is separate from your llm-prices.com).