Context
`src/infra/provider-usage.*` (3,204 lines across 15 files) fetches LLM provider quotas from external APIs (Anthropic, Google, OpenAI, Codex, Copilot, MiniMax, Zai). This is consumer dashboard UX — "how much of my API quota have I used?" It doesn't route through RemoteClaw infrastructure. The auth layer reads API keys from profiles and hits provider rate-limit endpoints.
Found during MBP deep dive audit of `src/infra/`.
Scope
Delete provider-usage files (~15 files, 3,204 lines):
- `provider-usage.ts` (barrel)
- `provider-usage.auth.ts` (269 lines)
- `provider-usage.fetch.ts` + all provider-specific fetchers (claude, gemini, copilot, codex, minimax, zai, shared)
- `provider-usage.format.ts`, `provider-usage.load.ts`, `provider-usage.shared.ts`, `provider-usage.types.ts`
- All corresponding test files (~11 files)
Clean up callers:
- `gateway-cli` likely has a `usage-cost` subcommand — remove or stub
- Status commands that display provider usage — remove the section
Acceptance Criteria
Size
~3,204 lines removed.
Context
`src/infra/provider-usage.*` (3,204 lines across 15 files) fetches LLM provider quotas from external APIs (Anthropic, Google, OpenAI, Codex, Copilot, MiniMax, Zai). This is consumer dashboard UX — "how much of my API quota have I used?" It doesn't route through RemoteClaw infrastructure. The auth layer reads API keys from profiles and hits provider rate-limit endpoints.
Found during MBP deep dive audit of `src/infra/`.
Scope
Delete provider-usage files (~15 files, 3,204 lines):
Clean up callers:
Acceptance Criteria
Size
~3,204 lines removed.