- Role
- Design and development
- Platform
- Windows and macOS
- Stack
- Python 3.12 (asyncio), React 19, Tailwind CSS 4, pywebview
- Status
- First version public (MIT), rewrite in a private repo
JARVIS is a voice-first personal assistant that runs on my own computer and speaks Turkish first. It starts listening when I say “Hey Jarvis”, then opens apps, manages windows and files, takes notes, sets reminders, and asks me before a risky step.
What it does
This page describes the newer version of JARVIS. It has two parts: a Python asyncio core under core/ and a React interface under app/. The interface opens in native windows through pywebview (WebView2 on Windows, WKWebView on macOS) and talks to the core over a loopback WebSocket.
The assistant manages apps, windows, files, media and the browser; inside an app it clicks and types through UI Automation on Windows and Accessibility on macOS. The morning brief, meeting mode, notes, routines and autonomous tasks run on the same core.
The first principle in the design notes (docs/PLAN.md) is “zero cost when idle”: while there is no command, nothing goes to the network or to an API. Another is “local and deterministic first”: a language model is the last resort.
How a request travels
Before a sentence reaches a large model it passes a few cheap steps, and most simple requests end there.
- Wake word“Hey Jarvis”, on the local engine
- SpeechA Gemini Live session opens
- Fast commandA request that fits a pattern ends without a model
- IntentEnds here if a ready-made action is enough
- ModelRoute by role, with fallback keys and models
- Tool and replyApproval gate, then a spoken answer
Wake word
While idle, only the local wake-word engine runs: openWakeWord's ONNX models, or a personal wake phrase defined through Vosk. No audio goes to the cloud.
Speech
On wake, a Gemini Live session opens. Local voice activity detection sets the turn boundaries, so silence is never streamed. The fallback line: Whisper, the text agent, then speech synthesis.
Fast commands
Strict patterns in brain/fast.py (“spotify'ı aç”, “sesi 30 yap”) run without any model. Anything that does not match exactly falls through to the text agent.
Intent routing
brain/router.py asks two things in one Jev request: can a ready-made action answer this alone, and if not, which skill area it belongs to. The model sees only that area's tools.
Model routing
Every job has a role, such as VOICE_BRAIN or TEXT_WORKER. Each role has an ordered list of providers and models, each provider a pool of keys. A key out of quota is skipped.
Tools and memory
Tool calls pass through the approval gates of ToolRuntime; the system asks for approval, not the model. Memory is one SQLite file; an update deactivates the old row, never deletes it.
There are seven roles, each with a default route. The Groq and Jev providers ship disabled by default.
| Role | Used for | Default route |
|---|---|---|
VOICE_BRAIN | Live voice conversation | Gemini Live |
FAST_DECIDER | Intent routing | Jev |
TEXT_WORKER | Text agent, memory extraction | Gemini, three models in order |
VISION_GROUND | Finding what to click on screen | Gemini |
EMBEDDING | Memory vectors | Gemini |
STT | Speech to text | Groq Whisper, then Gemini |
TTS | Speech synthesis, backup for edge-tts | Gemini |
The core of model routing is this loop in ProviderRegistry.route, shortened where the dots are.
for provider_id, model in self._routes.get(role, []):
...
for key in self._candidates(provider):
if not self.quota.available(key.key_id, model, limits, est_tokens):
attempts.append(f"{provider_id}/{model}/{key.key_id}: quota")
continue
self.quota.record(key.key_id, model)
try:
resp = await call(provider.adapter, model, key.secret)
except ProviderError as exc:
...
if self._handle_error(exc, provider, key, model):
break
continue
...
return resp
raise NoRouteAvailable(role.value, attempts)_handle_error decides by the kind of error whether the loop moves to the next key or to the next target.
| Case | What happens to the key | Next attempt |
|---|---|---|
| Out of quota | No call is made | Next key |
RateLimited | Cooled down for that model: the reported time, otherwise 30 seconds | Next key |
RateLimited, daily limit | Counted as out of daily quota for that model | Next key |
AuthError | Parked for an hour on every model | Next key |
BadRequest | Left as it is | Next target |
| Other provider and network errors | Cooled down for 10 seconds | Next key |
When no target is left, NoRouteAvailable is raised with the list of attempts.
The orb shows the assistant's current state: its palette changes while listening, thinking and speaking, and a transition takes about 300 milliseconds. After an answer a short window stays open, and during it I can continue without repeating the wake word.
Stack
- Core
- Python 3.12, asyncio, pydantic 2, websockets, httpx
- Voice
- openWakeWord, Vosk, Gemini Live, edge-tts, sounddevice
- Interface
- React 19, TypeScript, Tailwind CSS 4, Vite 8, pywebview
- Computer control
- uiautomation (Windows), pyobjc (macOS), Playwright
Versions and status
JARVIS has two codebases and only one is public. The repository on GitHub is the first version: a HUD written in Python and Tkinter, under the MIT licence. The two versions differ as follows:
| First public version | Rewrite | |
|---|---|---|
| Interface | Tkinter HUD | React 19, pywebview windows |
| Platform | Windows only | Windows and macOS |
| Core | Python 3.11+ | Python 3.12, asyncio |
| Wake word | openWakeWord | openWakeWord, personal phrase through Vosk |
| Providers | Gemini, Groq, OpenRouter, NVIDIA NIM | Gemini, Groq, Jev, plus any OpenAI-compatible provider I add |
| Memory | Vector store on SQLite and numpy | One SQLite file, FTS5, optional vectors |
| Code | Public on GitHub, MIT | Private repository |
The HUD and some action modules of that first public version build on work by Alp Ünlü (@alppunlu), and those files carry his credit line at the top; the rewrite is my own work.
The rewrite described here is in a private repository and not public yet.



