Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Your real-life F.R.I.D.A.Y. — a voice-controlled, self-improving AI OS that perceives your screen, remembers everything, writes production code, and gets smarter every week. One founder = one team.
GitHub checked 783h ago - refresh overdue
Your real-life F.R.I.D.A.Y. — an autonomous AI operating system for solo founders.
Voice-controlled. Self-improving. ADHD-native. Device-aware. Budget-tracked.
One founder + Friday = a full engineering team.
"Will that be all, sir?" — No. Friday does more. Friday is what comes after Jarvis.
In the MCU, Tony Stark replaced J.A.R.V.I.S. with F.R.I.D.A.Y. — an AI that didn't just answer questions, but ran the suit, managed the lab, and made the calls when Tony couldn't. This project is the real-world version: an always-on AI chief of staff that perceives your workflow, remembers everything, writes production code, controls your devices, manages your budget, and gets smarter every week — autonomously.
Friday is not a chatbot with a microphone. It's an operating system that wraps around your entire workflow — perceiving what you're doing via screen awareness, remembering everything across projects in a battle-tested dual-SQLite memory system, generating production-quality code through an OpenCode factory with writer≠reviewer enforcement, controlling your PC and server by voice, dictating text hands-free, analyzing your screen with vision models, setting timers and reminders, delivering morning briefings, monitoring server health around the clock, decomposing complex requests into multi-step background tasks, tracking your spend per AI provider, shadow-testing new models before promoting them, and getting measurably better every Saturday — without you lifting a finger.
The thesis: most of what slows a solo founder down isn't coding ability — it's context-switching overhead, decision fatigue, forgotten context, and the constant tax of re-explaining what you're working on. Friday eliminates all of it.
You: "Friday, build the entire payment module for ACFO"
↓ intent classified (COMPLEX) → memory retrieved (project facts, architecture decisions)
↓ brain decomposes into 5-step plan → TaskManager executes in background
↓ Step 1: research existing payment patterns → Step 2: generate models
↓ Step 3: generate API endpoints → Step 4: write tests → Step 5: review
↓ progress streamed to dashboard + voice notification on completion
Friday: "Payment module complete. 5 steps, 12 files modified. Tests pass. Cost: $0.23."
You: "Open YouTube" → 0 tokens. Pattern-matched, browser opens instantly.
You: "Set a timer for 25 minutes" → 0 tokens. Timer set, TTS confirmation.
You: "How's the server?" → 0 tokens. Health report via TTS.
You: "What's on my screen?" → Screenshot → vision model → spoken description.
You: "Dictate" → Continuous speech-to-text typed at your cursor. Zero brain tokens.
| Problem | How Friday solves it |
|---|---|
| "What was I working on?" | Dual-SQLite memory (FACTS + WARM) + morning briefings reconstruct your full context |
| Context-switching kills momentum | ADHD-native focus tracking detects drift, parks side-quests, nudges you back |
| AI coding tools produce inconsistent output | OpenCode factory: spec → generate → review (writer≠reviewer) → validate → deliver |
| Every AI tool starts from zero | Friday remembers architecture decisions, coding patterns, and past mistakes permanently |
| Token costs spiral with dumb context injection | 60-70% of commands use zero tokens (pattern-matched). Complexity classification + budget tracking for the rest |
| AI assistants require constant hand-holding | Screen awareness + full device control + dictation + proactive timers/reminders |
| No way to know if a cheaper model would work | Shadow validation A/B tests new models silently, promotes when statistically proven |
| Complex tasks need babysitting | TaskManager decomposes into steps, executes in background, retries failures, reports when done |
| Server goes down at 3 AM | System monitor checks CPU/memory/disk/services every 60s, auto-restarts, sends alerts |
┌───────────────────────────────────────────────────────────────────────┐
│ YOUR MACHINE (Client) │
│ ┌────────────┐ ┌─────────────┐ ┌───────────────────────────────┐ │
│ │ Wake Word │ │ Screen │ │ Full PC Device Controller │ │
│ │ (Porcupine)│ │ Awareness │ │ Windows / Linux / macOS │ │
│ └─────┬──────┘ └──────┬──────┘ │ 50+ actions: apps, windows, │ │
│ │ Mic capture │ Window │ media, clipboard, files, │ │
│ ▼ + VAD ▼ track │ system, network, brightness │ │
│ ┌─────────────────────────────────┴──────────────────────────────┐ │
│ │ WebSocket Client (WSS + Auth) + Dictation Mode │ │
│ │ Voice stream │ Dictation stream │ Device results │ │
│ └──────────────────────┬─────────────────────────────────────────┘ │
└─────────────────────────┼────────────────────────────────────────────┘
│ Persistent connection (JWT / shared secret)
┌─────────────────────────┼────────────────────────────────────────────┐
│ SERVER ▼ │
│ ┌────────────────────────────────────────────────────────────────┐ │
│ │ Category-Based Orchestrator │ │
│ │ 1. Transcribe → 2. Classify intent (10 categories) │ │
│ │ 3. Route: builtin│device│server│proactive│mode│screen│ │ │
│ │ memory│adhd│briefing│brain → 4. Respond + TTS │ │
│ │ 5. Log outcome (model=pattern_match, cost=$0 for 60-70%) │ │
│ └───┬──────────┬──────────┬──────────┬─────────┬──────────────┘ │
│ │ │ │ │ │ │
│ ┌───▼───┐ ┌──▼───┐ ┌──▼──────┐ ┌▼──────┐ ┌▼───────────────┐ │
│ │Memory │ │Brain │ │OpenCode │ │Task │ │Device Control │ │
│ │FACTS │ │Router│ │Bridge │ │Manager│ │PC (50+ cmds) │ │
│ │WARM │ │GPT/ │ │build, │ │multi- │ │Server (svc, │ │
│ │runs │ │Claude│ │critic, │ │step │ │docker, deploy, │ │
│ │routing│ │Ollama│ │research │ │plans │ │git, security) │ │
│ └───────┘ └──────┘ └─────────┘ └───────┘ └────────────────┘ │
│ │
│ ┌────────┐ ┌────────────┐ ┌────────┐ ┌──────────────────────┐ │
│ │ Budget │ │ Shadow │ │ ADHD │ │ Self-Improve │ │
│ │Tracker │ │ Validator │ │Tracker │ │ Saturday Review │ │
│ │per-prov│ │ A/B test │ │focus, │ │ Night Shift │ │
│ │caps │ │ promote/ │ │drift, │ │ Morning Briefing │ │
│ │runway │ │ reject │ │nudge │ │ Consolidation │ │
│ └────────┘ └────────────┘ └────────┘ └──────────────────────┘ │
│ │
│ ┌────────────┐ ┌──────────────┐ ┌────────────────────────────┐ │
│ │ Proactive │ │ System │ │ Screen Reader │ │
│ │ Engine │ │ Monitor │ │ Vision model analysis │ │
│ │ timers, │ │ CPU/mem/ │ │ OCR, summarize, explain │ │
│ │ reminders, │ │ disk/svc │ │ error, evaluate design │ │
│ │ pomodoro, │ │ alerts, │ │ │ │
│ │ breaks │ │ auto-restart│ │ │ │
│ └────────────┘ └──────────────┘ └────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Dashboard (React SPA) — dark-mode mission control │ │
│ │ Memory · War Room · Tasks · Routing · Focus · Chat │ │
│ │ Monitor · Timers · Reminders · Screen · Dictation │ │
│ └─────────────────────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────────────┘
The biggest cost optimization: 60-70% of voice commands never touch an LLM. A comprehensive regex-based classifier handles 10 intent categories with extracted parameters:
| Command | Category | Tokens used |
|---|---|---|
| "Open YouTube" | device/open_url | 0 |
| "Set a timer for 25 minutes" | proactive/timer | 0 |
| "Restart nginx" | server/service_restart | 0 |
| "What's on my screen?" | screen/analyze | 0 (classification) |
| "Remember that ACFO launches June 15" | memory/store | 0 |
| "I'm working on the payment module" | adhd/set_focus | 0 |
| "Morning briefing" | briefing/deliver | 0 |
| "Dictate" | mode/dictation_start | 0 |
| "What time is it?" | builtin/time | 0 |
| "Build me a payment module" | brain/think | Context-budgeted |
50+ device actions by voice or dashboard — never touch a terminal:
PC actions (cross-platform: Windows, Linux, macOS):
Server actions (direct shell on remote server):
Say "Friday, dictate" and everything you say is transcribed and typed at your cursor in real time. Zero brain tokens — pure STT passthrough. Say "Friday, stop dictating" to end.
Vision-powered screen analysis via multimodal models:
Timers, reminders, and productivity tools — all by voice:
Always-on server health checks running every 60 seconds:
Delivered automatically on your first interaction of the day (after 5 AM):
Two SQLite databases, zero vector DB dependency for core operations:
memory.db — FACTS (permanent knowledge), WARM (session context with TTL), pending decisions, people, projectsruns.db — every brain call, OpenCode invocation, and device command logged with model/tokens/cost/latency/successNot a single LLM call — a full production pipeline with writer≠reviewer:
@build agent (Claude/GPT via Fireworks)@critic agent reviews (different model family)For requests that need more than one step:
TaskPlan (2–8 atomic steps)TaskManager executes steps sequentially: code_gen, device, research, shell, brain_onlyBuilt for brains that context-switch:
Friday gets better every week without you doing anything:
Dark-mode mission control — not AI slop:
Built with React 18, TypeScript, Vite, Tailwind CSS, Recharts. DM Sans/DM Mono typography.
/api/ endpoints (health exempt)rm -rf, kill -9, chmod 777 require explicit user approvalServer-Timing and X-Response-Time-Ms headers on every responsegit clone https://github.com/user/friday.git
cd friday
python -m venv .venv && source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -e ".[dev]"
# Build the dashboard
cd dashboard && npm install && npm run build && cd ..
cp .env.example .env
# Edit .env — at minimum set:
# BRAIN_PROVIDER=openai
# BRAIN_API_KEY=sk-...
# BRAIN_MODEL_NAME=gpt-4o-mini
# Terminal 1 — Server (serves API + dashboard at http://localhost:8765)
make run-server
# Terminal 2 — Client (requires mic + speakers)
make run-client
# Say "Friday, hello" and start talking
# Or open http://localhost:8765 for the dashboard
make test # 632 tests
make lint # ruff check
friday/
├── client/ # Local PC daemon
│ ├── audio/ # Wake word, mic capture, VAD, TTS playback, dictation mode
│ ├── screen/ # Window tracking, focus stack, project detection
│ ├── connection/ # WebSocket client with auto-reconnect + dictation stream
│ ├── device/ # Platform-agnostic device controller
│ │ ├── platform_base.py # Abstract base: 35+ async methods
│ │ ├── linux.py # Linux: wmctrl, xdotool, amixer, playerctl, nmcli
│ │ ├── windows.py # Windows: pywin32, PowerShell, pynput, psutil
│ │ ├── mac.py # macOS: osascript, AppleScript, open, pmset
│ │ └── controller.py # Unified dispatch with clipboard history
│ └── main.py
├── server/ # Remote server (FastAPI)
│ ├── api/ # WebSocket, dashboard REST API (45+ endpoints), auth, health
│ ├── pipeline/ # Category-based orchestrator, intent classifier (10 categories),
│ │ # STT (Sarvam/Whisper), TTS (Sarvam/Piper)
│ ├── brain/ # Multi-provider LLM router with 429 retry + vision support
│ ├── memory/ # Dual-SQLite store, retrieval, writer, consolidation
│ ├── actions/ # Shell, filesystem, OpenCode bridge, device controller,
│ │ # screen reader (vision analysis)
│ ├── tasks/ # TaskManager for multi-step background execution
│ ├── budget/ # Per-provider budget tracking with hard caps
│ ├── adhd/ # Focus tracker, interventions, weekly calibration
│ ├── proactive/ # Timers, reminders, pomodoro, break nudges, deadline alerts,
│ │ # morning briefing, budget anomaly detection
│ ├── monitoring/ # Always-on system monitor (CPU/mem/disk/services), auto-restart
│ ├── code_factory/ # Legacy pipeline (spec → decompose → validate)
│ ├── frontend/ # Design system, component gen, visual QA
│ ├── improvement/ # Saturday review, night shift, shadow validation, reports
│ ├── war_room/ # Persistent operational state document
│ └── main.py # FastAPI app with timing + auth middleware
├── shared/ # Protocol (WebSocket messages), models, constants
├── dashboard/ # React SPA (Vite + TypeScript + Tailwind + Recharts)
│ ├── src/
│ │ ├── components/ # Sidebar, Header, Toasts, Card primitives
│ │ ├── pages/ # Home, Memory, WarRoom, Tasks, Routing, Focus, Chat, Settings
│ │ ├── hooks/ # useFetch, usePolling, useToast
│ │ └── lib/ # API client for all 45+ dashboard endpoints
│ └── dist/ # Build output served by FastAPI
├── deploy/ # Systemd service files
├── scripts/ # Setup, seeding
├── data/ # Runtime data (gitignored)
│ ├── memory.db # Facts, warm context, decisions, projects, people
│ ├── runs.db # All run logs, routing table, spend views
│ └── deploy_config.json # Deploy/rollback scripts per project
└── tests/ # 632 tests (unit, integration, end-to-end)
All configuration via environment variables (loaded by Pydantic Settings):
| Variable | Default | Description |
|---|---|---|
BRAIN_PROVIDER | openai | LLM backend: openai, anthropic, local (Ollama) |
BRAIN_API_KEY | — | API key for the configured brain provider |
BRAIN_MODEL_NAME | gpt-4o-mini | Model name passed to the provider |
OPENAI_API_KEY | — | OpenAI key (also used for Codex tool routing) |
ANTHROPIC_API_KEY | — | Anthropic key for Claude models |
SARVAM_API_KEY | — | Sarvam AI key for STT/TTS |
PORCUPINE_ACCESS_KEY | — | Picovoice key for wake word detection |
OPENCODE_PATH | opencode | Path to the OpenCode CLI binary |
OPENCODE_WORKING_DIR | . | Default working directory for OpenCode |
FRIDAY_DATA_DIR | ./data | Root directory for SQLite databases and logs |
FRIDAY_TOKEN_BUDGET_DAILY | 500000 | Hard daily token cap |
FRIDAY_IMPROVEMENT_BUDGET_WEEKLY | 100000 | Token budget for Saturday Review |
FRIDAY_NIGHT_SHIFT_ENABLED | true | Enable overnight automation tasks |
FRIDAY_MORNING_BRIEFING_ENABLED | true | Enable morning briefing |
FRIDAY_SATURDAY_REVIEW_DAY | 5 | Day of week for Saturday Review (0=Mon, 5=Sat) |
FRIDAY_SATURDAY_REVIEW_HOUR | 3 | UTC hour to run the Saturday Review |
FRIDAY_LOG_LEVEL | INFO | Log level (DEBUG, INFO, WARNING) |
FRIDAY_WS_SHARED_SECRET | — | WebSocket auth token (simple mode) |
FRIDAY_WS_JWT_SECRET | — | JWT signing key (enables JWT auth mode) |
FRIDAY_VISION_MODEL | accounts/fireworks/models/qwen3-30b-a3b | Vision model for screen analysis |
FRIDAY_MONITOR_INTERVAL | 60 | System monitor check interval (seconds) |
FRIDAY_MONITOR_CPU_THRESHOLD | 90 | CPU usage alert threshold (%) |
FRIDAY_MONITOR_MEMORY_THRESHOLD | 85 | Memory usage alert threshold (%) |
FRIDAY_MONITOR_DISK_THRESHOLD | 90 | Disk usage alert threshold (%) |
FRIDAY_BREAK_INTERVAL_MINUTES | 90 | Minutes between break nudges |
See .env.example for the complete list with all tuning options.
Every interaction flows through the same pipeline, whether from voice or dashboard:
| Category | Handler | Examples |
|---|---|---|
builtin | Instant response | time, date, stop, status, verbosity |
device | PC DeviceController | open apps, volume, screenshot, clipboard |
server | Server DeviceController | restart nginx, deploy, git status, logs |
proactive | ProactiveEngine | timers, reminders, pomodoro |
mode | Client command | dictation start/stop |
screen | ScreenReader + vision model | analyze, OCR, summarize, explain error |
memory | MemoryStore | store, recall, archive, pending decisions |
adhd | FocusTracker | set focus, park task, session duration |
briefing | MorningBriefing | daily brief, EOD summary, weekly review |
brain | Full LLM pipeline | complex reasoning, code generation, planning |
Not every request needs GPT-4. Friday classifies complexity before any model call:
| Complexity | Context Budget | Example |
|---|---|---|
| TRIVIAL | 0 tokens | "open youtube", "volume 50", "what time is it" |
| SIMPLE | 1,000 tokens | "what's this function do?", "explain this error" |
| MEDIUM | 2,000 tokens | "build a login page", "refactor this module" |
| COMPLEX | 3,500 tokens | "redesign the auth system", "build the entire payment module" |
60-70% of daily interactions are pattern-matched at zero cost. The remaining 30-40% use token-budgeted context retrieval.
┌──────────────────┐ ┌──────────────────┐
│ memory.db │ │ runs.db │
│ │ │ │
│ facts │ │ runs_log │
│ warm_context │ │ (auto-populated) │
│ pending_decisions│ │ │
│ people │ │ VIEWS: │
│ projects │ │ routing_table │
│ kv_store │ │ daily_spend │
│ outcome_index │ │ monthly_spend │
│ │ │ provider_runway │
└────────┬──────────┘ └────────┬──────────┘
│ │
┌──────▼─────────────────────────▼──────┐
│ Context Retriever │
│ • Token budgeting per complexity │
│ • Project facts + identity facts │
│ • Recent WARM context │
│ • Pending decisions │
│ • Exchange history │
└────────────────────────────────────────┘
| Command | Action |
|---|---|
| "Open YouTube / GitHub / Slack / ..." | Opens known site in browser |
| "Open terminal / VS Code / ..." | Launches application |
| "Close / quit Chrome" | Closes window |
| "Switch to / focus on Chrome" | Brings window to front |
| "Minimize / maximize Slack" | Window management |
| "Kill Chrome" | Force-kills process |
| "What's open?" | Lists open windows |
| "Search for react hooks tutorial" | Google search |
| "Volume 50" / "Mute" | Audio control |
| "Play" / "Pause" / "Next track" / "Skip" | Media control |
| "Type hello world" | Types text at cursor |
| "Press ctrl+c" / "Copy" / "Paste" / "Undo" | Keyboard shortcuts |
| "Take a screenshot" | Screen capture |
| "Lock screen" / "Sleep" / "Shut down" | System power |
| "Brightness 80" | Display brightness |
| "Do not disturb" | Toggle DND |
| "System info" / "What's my IP" / "CPU" | System information |
| "Wi-Fi status" / "Bluetooth" | Network toggles |
| "Create folder called X" / "Delete file X" | File operations |
| "Zip / unzip X" | Archive management |
| Command | Action |
|---|---|
| "Restart / start / stop nginx" | Service management |
| "Server status" / "How's the server" | Health check |
| "Logs for nginx" | Tail service logs |
| "Deploy acfo" / "Rollback acfo" | Deployment |
| "Git status friday" / "Git pull friday" | Git operations |
| "List containers" / "Docker ps" | Docker management |
| "Who's logged in" | Active sessions |
| Command | Action |
|---|---|
| "Set a timer for 25 minutes" | Timer |
| "Remind me to call the dentist in 30 minutes" | Reminder |
| "Start a pomodoro" | 25-min focus session |
| "Cancel the timer" | Cancel timer |
| "Show my timers / reminders" | List active |
| "I'm working on the payment module" | Set focus |
| "What am I working on?" | Current focus |
| "Park that" | Save current task for later |
| "What's parked?" | List parked tasks |
| "How long have I been working?" | Session duration |
| "Morning briefing" | Daily briefing |
| "End of day" | EOD summary |
| Command | Action |
|---|---|
| "What's on my screen?" | Vision analysis |
| "Read this to me" | OCR text extraction |
| "Summarize this page" | Page summary |
| "What does this error mean?" | Error explanation |
| "Rate this design" | UI evaluation |
| "Dictate" / "Start dictating" | Begin dictation mode |
| "Stop dictating" | End dictation mode |
| Command | Action |
|---|---|
| "Remember that ACFO launches June 15" | Store fact |
| "What do you know about ACFO?" | Recall facts |
| "Forget about the old API key" | Archive fact |
| "What are my pending decisions?" | List decisions |
| Command | Action |
|---|---|
| "What time is it?" | Current time |
| "What's the date?" | Current date |
| "Stop" / "Cancel" / "Never mind" | Cancel current task |
| "Status" | System status |
| "Be brief" / "Be detailed" | Change verbosity |
sudo cp deploy/friday-server.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now friday-server
cp deploy/friday-client.service ~/.config/systemd/user/
systemctl --user enable --now friday-client
See deploy/README.md for full instructions.
Contributions welcome. Please:
make test && make lint before submittingMIT — see LICENSE for details.
Friday — Jarvis was the butler. Friday is the chief of staff.
GitHub checked 87h ago - refresh overdue. Recently viewed repositories target hourly refresh.