Skip to content

refactor: collect Claude Code from One API, drop OpenCode - #8

Merged
BrickerP merged 1 commit into
mainfrom
codex/claude-oneapi-collection
Aug 13, 2026
Merged

refactor: collect Claude Code from One API, drop OpenCode#8
BrickerP merged 1 commit into
mainfrom
codex/claude-oneapi-collection

Conversation

@BrickerP

Copy link
Copy Markdown
Owner

变更

Claude Code 和 OpenCode 的本地采集全部移除,改从 One API 网关采集。

  • Claude Code:从 One API 的 claude 模型家族推导(账号级),最近两个日历日重建,更早日期保持旧本地口径冻结。
  • Codex:保留本地 ~/.codex rollout JSONL 采集(不走网关)。
  • OpenCode:工具系列整体移除。
  • One API ownership 规则 bump 到 v2,只排除 GPT/Codex 家族,claude 家族拆成独立 series。

涉及

  • scripts/oneapi_usage.py:aggregate_records 拆分 claude series + ownership v2
  • scripts/usage_pipeline.py:移除 opencode 全链路 + ccusage/LiteLLM 死代码,新增 claude 账号级 reconcile
  • scripts/machine_fragments.py:LOCAL_TOOL_PREFIXES 仅 codex
  • 前端 usage.ts/interaction.ts、README card、README/DESIGN 文档
  • 测试同步更新,删除 test_ccusage_pricing_retry.py

验证

  • python 单测 115 项:仅 3 项为主分支既有的失败(test_positive_model_remainder 与 codex-cache-backfill 事务测试),与本次改动无关
  • npm run test:frontend 80/80 通过

Claude Code and OpenCode local collectors are removed. Claude Code now
derives from One API's Claude model family (account-level, rebuilt for the
last two calendar days; older local values stay frozen). Codex stays on
the local ~/.codex rollout JSONL collector. OpenCode tool series is
removed. One API ownership rule bumps to v2 and excludes only the
GPT/Codex family, splitting Claude into a dedicated series.
@BrickerP
BrickerP merged commit dcce7be into main Aug 13, 2026
3 checks passed
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