Repository navigation
feat: custom prices override reported costs; follow provider extends - #7
Merged
Merged
Conversation
Runtimes can report a list-price fallback for models they do not know, so local or unbilled turns show a cost that was never charged. When the new host setting is on and a custom or reference price matches, that estimate replaces the reported cost. Turns without a price keep the reported cost, and the ledger file still stores the raw value. Closes #1 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename the unreleased "Prefer price estimates" setting to "Custom prices override reported costs" (customPricesOverride). Only a matching pricing.json price replaces a runtime-reported cost; OpenRouter and built-in prices never do, because they miss cache writes that the reported Claude cost includes. Custom providers that declare extends: claude/codex in the daemon config now follow their base harness. The plugin reads provider bases through paseo.config.get() (throttled), and new records store the resolved harness so later config changes do not reinterpret them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #1.
Changes
customPricesOverride, off by default). When apricing.jsonprice matches, it replaces the runtime-reported cost. A runtime can report a list-price fallback for local or unbilled models. Addprovidersto an entry to limit it to one provider.extends. A custom provider that declaresextends: "claude"orextends: "codex"in the daemon config now follows its base harness. Before, such a provider (for examplelocal-claude) was an unknown-scope snapshot, so it had no per-turn usage and no price.paseo.config.get()(available since Paseo 0.11.0), at most every 30 seconds. It keeps only provider names and base names.harness, so a later config change does not reinterpret them. Earlier records of such providers stay unknown-scope snapshots.Verification
extendsprovider with a synthetic name.extendsentries of the provider config, and a test turn records normally.🤖 Generated with Claude Code