How sleet1k/orca-quota-panel works
Quota Panel is an Orca sidebar plugin for monitoring OpenRouter daily quota and managing quota-aware modes, credentials, settings, skill installation, and automation. The user workflow runs from the panel through worker request handlers to quota status or saved settings; the worker also installs the bundled skill and synchronizes its configuration with Orca automation. Edges rely on README statements and the shown worker excerpts; panel internals and the skill script were not sampled, so their details are limited.
Main entry points: worker.ts Plugin worker · panel.html Quota panel · quota-aware-planning Quota planning skill · config.json Skill configuration
Components 13
Panel Interface
- Quota panel
src/panel.html - Request contract
src/protocol.ts
Quota Worker
- Plugin worker
src/worker.ts
Settings and State
- Orca plugin storage
- Skill key file
- Mode file
Skill and Automation
- Quota planning skill
skill/quota-aware-planning - Skill configuration
skill/quota-aware-planning/config.json - Orca bot skill installs
- OpenCode skill mirror
Other components
- Orca user
- OpenRouter API
- Orca CLI
Connections 13
- Orca user → Quota panel: uses
README.md - Quota panel → Plugin worker: sends requests
README.md - Plugin worker → Quota panel: returns status
- Plugin worker → OpenRouter API: polls quota
src/worker.ts - Plugin worker → Orca plugin storage: reads and writes
src/worker.ts - Plugin worker → Skill key file: reads and exports key
src/worker.ts - Plugin worker → Mode file: reads and writes mode
src/worker.ts - Plugin worker → Quota planning skill: installs from
src/worker.ts - Plugin worker → Orca bot skill installs: installs skill
src/worker.ts - Plugin worker → OpenCode skill mirror: mirrors skill
src/worker.ts - Plugin worker → Skill configuration: loads defaults
src/worker.ts - Plugin worker → Orca CLI: syncs automation
README.md - Plugin worker → Quota panel: serves logs and settings