Last Updated: 2026-03-19 Status: Code complete, awaiting credentials configuration
- KV namespace configured in
wrangler.toml- Production:
5b4f4cc3f3b342c59eead588a5446ca8 - Staging:
52c44a6e0d144e53a51c9cb4e9bcbbe0
- Production:
- R2 bucket for transcripts configured
- Durable Objects bindings configured
- Google OAuth authentication flow (
src/auth.ts) - Session management (KV-backed, 24h TTL)
- Dashboard UI (
src/dashboard.html) - Real-time agent monitoring
- Agent control API (kill individual, shutdown all)
- Auto-refresh (30s interval)
- Security: CSRF protection, HttpOnly cookies
- API routes (
src/index.ts,src/dashboard.ts)
- Agent SDK integration with
ANTHROPIC_BASE_URL - Registry configuration support
- Environment variable injection into containers
- API endpoints for configuration management
- Dashboard setup guide (
docs/dashboard-setup.md) - AI Gateway documentation (
docs/cloudflare-ai-gateway.md) - Setup checklist (
docs/cloudflare-ai-gateway-setup-checklist.md) - User-facing README (
README-DASHBOARD.md) - NEW: Completion guide (
docs/dashboard-completion-guide.md)
- NEW: Interactive setup script (
scripts/complete-dashboard-setup.sh) - API-based configuration (no manual file editing needed)
What's needed:
- Google Cloud OAuth 2.0 Client ID
- Google Cloud OAuth 2.0 Client Secret
- Allowed email addresses for access
How to configure:
cd orchestrator
# Set secrets
wrangler secret put GOOGLE_CLIENT_ID
wrangler secret put GOOGLE_CLIENT_SECRET
wrangler secret put ALLOWED_EMAILS # user1@example.com,user2@example.com
# Deploy
wrangler deploySetup steps:
- See:
docs/dashboard-completion-guide.md→ Step 1
What's needed:
- Cloudflare AI Gateway created
- Account ID
- Gateway ID (slug)
How to configure:
# Via API (requires API_KEY and WORKER_URL environment variables)
curl -X PUT https://product-engineer.YOUR_SUBDOMAIN.workers.dev/api/settings/cloudflare_ai_gateway \
-H "X-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"value": {
"account_id": "YOUR_ACCOUNT_ID",
"gateway_id": "YOUR_GATEWAY_ID"
}
}'
# Then deploy
cd orchestrator && wrangler deploySetup steps:
- See:
docs/dashboard-completion-guide.md→ Step 2
cd /workspace/product-engineer
# Set environment
export WORKER_URL=https://product-engineer.YOUR_SUBDOMAIN.workers.dev
export API_KEY=your_api_key_here
# Run interactive setup
./scripts/complete-dashboard-setup.shThe script will:
- Check current configuration status
- Guide you through Google OAuth setup
- Configure AI Gateway (if credentials provided)
- Optionally deploy for you
Follow the detailed guide:
cat docs/dashboard-completion-guide.mdOr follow the original checklist:
cat docs/cloudflare-ai-gateway-setup-checklist.md# List all settings (requires API_KEY)
curl -H "X-API-Key: $API_KEY" \
https://product-engineer.YOUR_SUBDOMAIN.workers.dev/api/settings
# Check AI Gateway configuration specifically
curl -H "X-API-Key: $API_KEY" \
https://product-engineer.YOUR_SUBDOMAIN.workers.dev/api/settings \
| jq .settings.cloudflare_ai_gatewaycd orchestrator
# List configured secrets (won't show values, just names)
wrangler secret listExpected secrets:
GOOGLE_CLIENT_ID✓ (if dashboard configured)GOOGLE_CLIENT_SECRET✓ (if dashboard configured)ALLOWED_EMAILS✓ (if dashboard configured)API_KEY✓ (required for admin API)ANTHROPIC_API_KEY✓ (required for agents)SLACK_BOT_TOKEN✓ (required for Slack integration)SLACK_APP_TOKEN✓ (required for Socket Mode)WORKER_URL✓ (required for event routing)
- Visit:
https://product-engineer.YOUR_SUBDOMAIN.workers.dev/dashboard - Should redirect to Google login
- After auth, should show agent dashboard
- No agents expected if none are running (that's OK)
- Create a test Linear ticket or Slack mention
- Wait for agent to start processing
- Check Cloudflare Dashboard: AI > AI Gateway > [your gateway]
- Should see requests within 1-2 minutes
- Set
GOOGLE_CLIENT_IDsecret - Set
GOOGLE_CLIENT_SECRETsecret - Set
ALLOWED_EMAILSsecret - Configure Google OAuth redirect URI in Cloud Console
- Create Cloudflare AI Gateway
- Configure AI Gateway settings via API
- Deploy:
cd orchestrator && wrangler deploy - Test dashboard access
- Test Google login
- Verify AI Gateway receives traffic
- Take screenshots for BC-177
- Update BC-177 Linear ticket
The following can be done programmatically with API access:
✅ Can automate:
- Configuring AI Gateway settings (via
/api/settings/cloudflare_ai_gateway) - Checking current configuration (via
/api/settings) - Deployment (via
wrangler deployif credentials available) - Creating test agents to verify setup
❌ Cannot automate (requires user action):
- Creating Google OAuth client (Google Cloud Console)
- Creating Cloudflare AI Gateway (Cloudflare Dashboard)
- Setting Cloudflare secrets (requires account authentication)
- Adding OAuth redirect URI (Google Cloud Console)
| Purpose | Path |
|---|---|
| Setup script | scripts/complete-dashboard-setup.sh |
| Completion guide | docs/dashboard-completion-guide.md |
| Detailed setup | docs/dashboard-setup.md |
| AI Gateway docs | docs/cloudflare-ai-gateway.md |
| User README | README-DASHBOARD.md |
| Auth code | api/src/auth.ts |
| Dashboard UI | api/src/dashboard.html |
| Dashboard routes | api/src/dashboard.ts |
| Main routes | api/src/index.ts |
| Wrangler config | api/wrangler.toml |
- Check troubleshooting section in
docs/dashboard-completion-guide.md - Review error logs:
cd orchestrator && wrangler tail - Verify secrets:
wrangler secret list - Check settings:
curl -H "X-API-Key: $API_KEY" $WORKER_URL/api/settings
Next Action: Run ./scripts/complete-dashboard-setup.sh or follow docs/dashboard-completion-guide.md