Skip to content

Capture proxy-lane usage (muse/meta, kimi, glm) from claudex config dir#8

Merged
solomonneas merged 1 commit into
mainfrom
feat/proxy-lane-usage-capture
Jul 17, 2026
Merged

Capture proxy-lane usage (muse/meta, kimi, glm) from claudex config dir#8
solomonneas merged 1 commit into
mainfrom
feat/proxy-lane-usage-capture

Conversation

@solomonneas

Copy link
Copy Markdown
Collaborator

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, so data/usage.json carried anthropic/ollama/openai/xai and nothing else. Meta AI, Kimi, and GLM usage were invisible.

What

  • New --claudex-projects source (default ~/.claude-claudex/projects).
  • MODEL_PROVIDER_OVERRIDE maps 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.
  • Pricing for those models in MODEL_PRICING so they get an API-equivalent cost estimate.

Verification

python3 -m pytest tests/ -q passes; new test covers the mapping. A 90-day export now reports meta/kimi/zai records that were previously absent.

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.
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository: escoffier-labs/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 1291dc4e-d1db-4ecd-9320-9b2ed1aae906

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/proxy-lane-usage-capture

Comment @coderabbitai help to get the list of available commands.

@solomonneas
solomonneas merged commit 9398217 into main Jul 17, 2026
4 checks passed
@solomonneas solomonneas self-assigned this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant