# Case Control Panel 🖤

A dark-themed web dashboard for managing all of Case's accounts, API keys, services, and budget.

## Features

- **Dashboard**: Overview of accounts, services, API keys, and spending
- **Accounts**: Manage service credentials and login links
- **API Keys**: Store and manage API keys with masked display
- **Services**: Monitor local service health (Feed Hunter, Chrome Debug, OpenClaw)
- **Budget**: Track deposits, withdrawals, and spending across services
- **Activity Log**: Chronological log of all account actions

## Technical Details

- **Port**: 8000 (binds to 0.0.0.0)
- **Backend**: Python stdlib only, threaded HTTP server
- **Storage**: JSON files in `data/` directory
- **Theme**: Dark theme matching Feed Hunter portal style
- **Service**: Managed via systemd user service

## Usage

### Start/Stop Service
```bash
systemctl --user start case-control-panel.service
systemctl --user stop case-control-panel.service
systemctl --user status case-control-panel.service
```

### Access
Open browser to: http://localhost:8000

### Data Location
All data stored in: `/home/wdjones/.openclaw/workspace/projects/control-panel/data/`

## Pre-populated Accounts

1. ProtonMail: case-lgn@protonmail.com (active)
2. Polymarket: Not yet registered (inactive)
3. Feed Hunter Portal: localhost:8888 (active)
4. Chrome Debug: localhost:9222 (active)
5. OpenClaw Gateway: localhost:18789 (active)

## Files

- `server.py` - Main HTTP server
- `data/accounts.json` - Account information
- `data/api-keys.json` - API key storage
- `data/budget.json` - Financial tracking
- `data/activity.json` - Activity log
- `~/.config/systemd/user/case-control-panel.service` - Systemd service file