1.7 KiB
1.7 KiB
PRD: OpenClaw Copilot Workstation Setup
Purpose
Provide a repeatable, low-risk setup for a Copilot-only OpenClaw workstation with cost controls and schedule-based model routing.
Goals
- Enforce
github-copilot/*as the only provider/model family. - Use paid profile during work hours (
08:00-18:00local). - Use free/low-cost profile off-hours (
18:00-08:00local). - Auto-heal routing/policy drift via launchd guardrails.
- Keep installation easy for AI-assisted and human-assisted setup.
Scope
- Config-driven profile routing (
config/model-profiles.config.json). - Schedule guard (
scripts/model_schedule_guard.sh+ launchd). - Budget guard, policy guard, auth watchdog.
- Staged launchd runtime under:
~/Library/Application Support/openclaw-copilot-guard
Non-Goals
- Supporting non-Copilot providers in normal operation.
- Cross-platform install workflows (target is macOS).
- Billing automation outside model/provider selection.
Required Outcomes
scripts/install_copilot_guardrails.shinstalls all 4 guards:ai.openclaw.model-budget-guardai.openclaw.copilot-policy-guardai.openclaw.copilot-auth-watchdogai.openclaw.copilot-model-schedule-guard
- Off-hours traffic defaults to free/low-cost profile.
- Work-hours defaults return to paid profile.
- Docs clearly describe setup, verification, troubleshooting.
Success Criteria
- Fresh machine setup succeeds using:
setup/setup_openclaw_copilot.shcopilot auth loginbash ./scripts/install_copilot_guardrails.sh
openclaw models statusreflects expected profile by local time window.- Launchd checks/logs show healthy runs and no repeated hard failures.