# Repository Briefing: ankitjha67/JARVIS
> Source: https://repoforai.com/repo/ankitjha67/JARVIS (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ankitjha67/JARVIS
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: B+ (75/100 · Maintenance 35/35 · Adoption 14/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v1.6.1 (2026-12-03) — https://github.com/ankitjha67/JARVIS/releases
- **Review Snapshot**: 2026-12-02 (Note: v1.6.1 on 2026-12-03 shipped after this review; verify latest release notes)
- **Deployment / Stack Signals**: Local AI, Self-Hosted
- **Momentum**: 86 ★ total (+3 24h / +37 7d) · 15 forks
- **Topics**: `ai-assistant`, `air-quality`, `desktop-assistant`, `fastapi`, `india`, `jarvis`, `kotlin`, `llm`, `local-first`, `macos`, `python`, `react`
- **When to Use**: Best for: Windows users who want one desktop interface for local-model chat, voice-driven actions, and a daily briefing, and are willing to test their models and connectors before relying on them. Skip if: You only need chat, require a field-tested Mac deployment or secure remote access out of the box, or need clear redistribution rights before adoption.

## Overview
```text
### Architecture & Core Mechanics
JARVIS is an installed desktop agent, not a hosted chat service. A Python 3.12 FastAPI/Uvicorn backend serves the React 19, TypeScript, and Zustand HUD over a loopback WebSocket on port 47821. The HUD runs in a frameless pywebview window, using WebView2 on Windows. A Kotlin/Jetpack Compose companion implements a reconnecting WebSocket client; the phone browser UI is a separate, optional LAN surface.

Recognized commands take a pattern-matching fast path without an LLM call. Other requests enter an orchestrator that selects a task-relevant tool subset, routes to a model, and dispatches Pydantic-validated actions through a tiered policy engine. SQLite holds memory in WAL mode and checkpoints background tasks. Platform-specific control is visible in the Windows-only pywin32 and uiautomation dependencies, while Playwright handles browser automation. Outcome checks test concrete postconditions, such as whether a launched process is running, rather than whether the action achieved the user’s broader goal.

### Key Capabilities & Differentiators
JARVIS connects to Ollama and LM Studio locally and to NVIDIA NIM, Anthropic, OpenAI, Gemini, OpenRouter, and Groq in the cloud. It discovers models at runtime and accepts custom OpenAI-compatible endpoints. Routing combines provider preferences, health-based fallback, and a four-tier model ladder. The desktop tooling spans app and window control, file operations, text extraction from PDF and Office formats, and Playwright browser interaction. Voice input includes wake-word detection and a faster-whisper transcription fallback.

The Desk is useful independently of chat: its model-free briefing pulls from connected weather, AQI, to-do, calendar, inbox, and news sources. Weather distinguishes station measurements from modeled readings and shows India’s National AQI alongside US EPA and European scales. Missing sources are surfaced as disconnected, and derived health figures are labeled as estimates. Connected services broaden the dashboard, but their presence in the interface is not evidence that they have been tested with live accounts.

### Trade-offs & Limitations
Compared with a standalone local chat client, JARVIS offers a desktop action layer, an approval UI, and a connected daily dashboard, at the cost of more permissions, dependencies, and provider configuration. T0 observation and T1 reversible actions can run automatically; T2 changes require approval and T3 destructive actions require an explicit click each time. Reading untrusted content gates every subsequent action in the run, a useful boundary for document and clipboard workflows but a source of friction for unattended automation. The optional LAN phone UI uses plain HTTP, so keep it disabled on untrusted networks.

Windows is the better-evidenced target. Apple Silicon CI covers installation and desktop checks, but hands-on macOS use has not been validated. Wearables, the phone web UI on a physical device, and several keyed or account-based integrations also lack live validation. Local inference avoids per-call cloud model charges but competes with speech and the HUD for machine resources; cloud routing shifts inference off the device and adds network, billing, and data-handling considerations. No license is specified, so clarify usage and redistribution rights before adoption.

### Hardware & Deployment Guide
For v1.6.0, Windows 10/11 users unzip the release bundle and run `install\Install Jarvis (Windows).bat` without administrator rights. The macOS beta targets Apple Silicon on macOS 13+ with `install/install-macos.command`. The Python package requires 3.12 (`>=3.12,<3.13`). Onboarding sets the privacy mode and connects either a running local model server or a cloud provider via API key. The deployment is desktop-first; no container deployment path is specified.

Local Only blocks cloud routing, but it does not supply the network data used by live weather or connected feeds when the machine is offline. A fully offline setup should use a local model endpoint and exercise the intended voice and desktop workflows without network access before relying on them. Release evidence lists v1.5.0, v1.5.1, and v1.6.0 with bundles for both platforms; the available excerpts establish install support but do not establish which features changed between those releases.
```

## Key Capabilities
```text
- Execution path: Pattern matching handles routine commands without an LLM; the agent exposes a task-relevant subset of tools for other requests.
- Provider routing: Eight built-in providers, runtime model discovery, health-based fallback, and a four-tier escalation ladder.
- Action controls: T0/T1 actions can run automatically, T2/T3 require approval, and reading untrusted content gates all subsequent actions in that run.
- Action verification: Checks such as process existence, file size, and shell exit status confirm specific postconditions; the undo stack retains up to 50 reversible actions.
- Regional dashboard: India’s National AQI appears alongside US EPA and European scales, with pollutant breakdowns and station-versus-model labeling.
- Voice availability: Local faster-whisper transcription and an optional Windows listener that can relaunch the assistant after quit.
```

## Quick Start / Clone
```bash
git clone https://github.com/ankitjha67/JARVIS.git
cd JARVIS
uv sync
npm --prefix ui install
npm --prefix ui run build
uv run jarvis
```
