Files
kandev/docs/plans/teamclaude-proxy-usage/task-03-openrouter-key-usage.md
T

887 B

id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
id title status wave depends_on plan requirements acceptance_criteria system_design
03-openrouter-key-usage Add OpenRouter key-usage adapter planned 3
02-profile-proxy-configuration
plan.md
REQ-PLATFORM-PROVIDER-ERROR-RECOVERY-001
AC-PLATFORM-PROVIDER-ERROR-RECOVERY-001.3
AC-PLATFORM-PROVIDER-ERROR-RECOVERY-001.4
../../specs/platform/system-design/provider-error-recovery.md

Task 03: Add OpenRouter Key-Usage Adapter

Use an explicitly selected OpenRouter profile and its secret-store credential to call the documented authenticated key endpoint. Project key usage, remaining limit, and reset period into Kandev's provider-usage contract. Never expose the key or user/workspace identifiers in usage DTOs, logs, or cache keys.

Verification

cd apps/backend && go test -tags fts5 ./internal/agent/usage ./internal/backendapp