sandbase-harness
sandbaseai
Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ajceee/dsh-subscription-overlay
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Toggleable DSH web-overlay that aggregates subscription quota for Claude, Codex, and opencode-go (fresh OAuth/session fetches), plus a commandcode availability probe and a local monthly burn ledger.
Honesty rule: commandcode has no quota endpoint, so the card shows probe state (online/offline + latency) and local burn only — never a fabricated percentage. When no monthly budget is set, no percentage bar is rendered at all.
shell.overlay slot, own plugin id — composites with
the stock dsh-quota pill): draggable pill or ring mode, alert badge,
click opens the 4-provider panel, staleness-triggered refresh.Ctrl+Shift+S hotkey, settings-section switch, and host master
switch. Hidden unmounts pill/ring and panel and stops polling.0 = track only, no %).x-dsh-subscription-overlay
CSRF header):GET /plugins/dsh-subscription-overlay/api/status → { refreshedAt, providers[4], alertPct, overlay, enabled, settings }POST /plugins/dsh-subscription-overlay/api/refresh → force re-fetchPOST /plugins/dsh-subscription-overlay/api/probe → commandcode re-probePOST /plugins/dsh-subscription-overlay/api/settings → validated patchPOST /plugins/dsh-subscription-overlay/api/ledger/append → { model, tokens } fallback burn writerPrerequisites: DSH 0.1.5-rc.1 or later, Node 20+.
dsh plugin --profile web add C:/Projects/dsh-subscription-overlay
# restart the DSH web process once (bundle-list changes need a restart)
dsh --profile web --dump-config | grep dsh-subscription-overlay # loader row check
On the next web load the 订阅额度 pill appears (bottom-right, draggable).
Press Ctrl+Shift+S to hide/show it.
GET {baseURL}/models;
本月消耗 shows month-to-date tokens and (only when budget > 0) % of budget.docs/SPIKE.md §2.1).The overlay pill/panel render inside the running DSH web GUI after the
bundle loads (restart required after install). Screenshots will be added
here from a live session:
docs/screenshots/pill.png, docs/screenshots/panel.png,
docs/screenshots/settings.png.
npm install
npm run typecheck # host
npm run typecheck:client # browser client
npm run build # tsdown → lib/index.js + lib/client.js
node --test tests/*.test.ts # 8 tests
src/index.ts — host: fresh-fetch aggregation, commandcode probe, burn
ledger, settings validation, HTTP routes.src/client/ — browser: SubscriptionPanel, OverlaySettingsSection,
controller (snapshot store + API bridge), locale (zh/en), styles.docs/SPIKE.md — DSH/wezterm API spike (precedents + verdict).cordis.patch.yml + package.json#dsh — official profile-bundle install.MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: claude-code、monitoring、quota。