Capture proxy-lane usage (muse/meta, kimi, glm) from claudex config dir#8
Merged
Merged
Conversation
The muse/meta, kimi, glm, and luna lanes log through the Claude CLI with CLAUDE_CONFIG_DIR=~/.claude-claudex, a directory the exporter never scanned, so their usage was invisible. Add it via --claudex-projects (default on), map the proxy model ids to their real providers (muse-spark to meta, kimi, glm to zai, luna to openai), and price them from MODEL_PRICING so they get an API-equivalent cost estimate.
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one) (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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.
Capture the proxy-lane subscriptions (muse/meta, kimi, glm, luna) that the exporter never saw.
Why
Those lanes run through the Claude CLI with
CLAUDE_CONFIG_DIR=~/.claude-claudex(CLIProxyAPI on :8317). The exporter only scanned~/.claude/projects, sodata/usage.jsoncarried anthropic/ollama/openai/xai and nothing else. Meta AI, Kimi, and GLM usage were invisible.What
--claudex-projectssource (default~/.claude-claudex/projects).MODEL_PROVIDER_OVERRIDEmaps proxy model ids to their real providers: muse-spark to meta, kimi, glm to zai, gpt-5.6-luna/sol to openai, grok to xai.MODEL_PRICINGso they get an API-equivalent cost estimate.Verification
python3 -m pytest tests/ -qpasses; new test covers the mapping. A 90-day export now reports meta/kimi/zai records that were previously absent.