Skip to content

Local-First AI Browser · Ổi Browser

Local-first agentic AI browser with Multi-CLI Shell Harness, 9 domain companions, Karpathy-Wiki markdown memory, and zero cloud telemetry.

Ổi Browser is a zero-dependency, self-hosted agentic AI browser powered by local AI CLI harnesses (claude, agy, codex, grok, orca), DOM agent automation, and local SQLite + Markdown memory.

Tests: 8/8 Passing Latest release: v1.0.0 License: PolyForm Shield 1.0.0 Local First Zero Telemetry

Ổi Browser Workspace (/newtab) with unified chat composer and companion switcher

Ổi Browser Workspace (/newtab): unified chat composer, domain companion switcher, and local history.

production build · 127.0.0.1:4104 · verified

What it is

Repository
jangtrinh/oi-browser
Requires
Node.js 22.5+Zero external npm deps
Interface
Web UI + macOS AppSvelteKit 5 & WKWebView
Transport
127.0.0.1:4104REST + IPC Bridge
Telemetry
Zero TrackingLocal SQLite + Markdown
License
PolyForm Shield 1.0.0

Why Ổi Browser, compared with alternatives

What Ổi Browser does that closed-source cloud browsers do not. Our architectural advantages first, followed by the honest trade-offs.

9 Specialized Domain Companions & 31 Skills

Role-specific agents across Consulting (Ổi), Engineering & QA (Măng Cụt), Chief of Staff (Sầu Riêng), Marketing (Thanh Long), Operations (Bưởi), Research (Vú Sữa), Sales (Xoài), Support (Chôm Chôm), and Recruiting (Vải).

Karpathy-Wiki Markdown Memory & Dream Consolidation

Plaintext Markdown knowledge base (PROFILE.md, COMPANION.md, observations/*.md) with one-click Dream Consolidation.

Local-first privacy & zero dependencies

Built on Node.js 22+ native node:sqlite and node:http. Zero external npm packages, zero cloud lock-in, zero telemetry.

Agentic DOM Browser Automation ([data-oi-id])

Deterministic element tagging, live DOM inspection, and structured Visual Artifacts (Spreadsheets, Slide Decks, Interactive Charts).

Where traditional platforms win, and it is not close: Managed enterprise clouds with out-of-the-box multi-tenant SSO, compliance audits, and commercial SLAs. If you need centralized team dashboards without hosting your own infrastructure, choose those platforms instead.

System Architecture (5 Layers · 11 Modules · 1,673 LOC)

Every custom source file in src/ stays strictly under 200 lines, connecting the SvelteKit 5 renderer directly to Node.js 22+ native SQLite and Karpathy-Wiki Markdown storage on 127.0.0.1:4104.

Ổi Browser 1.0.0 — 5-Layer System Architecture Diagram

5-Layer System Architecture: Desktop Shell, Local Runtime Bridge, Localhost Orchestrator, Agent DOM + Karpathy-Wiki, and SQLite Store.

11 modules · 1,673 LOC · zero external npm deps

1. Client IPC Shim

berry-electron-bridge.js + berry-electron-state.js + berry-electron-queries.js emulate window.electronAPI and synthesize 18 real-time state topics over local REST with zero cloud lock-in.

2. 9 Domain Companions

official-companions-catalog.js configures 9 role-specialized companions across Consulting, Engineering, Executive Ops, Marketing, Operations, Research, Sales, Support, and Recruiting.

3. AgentDOM Service

agent-dom-browser-service.js strips script/style noise, extracts H1–H3 hierarchy and HTML table rows, and injects data-oi-id="oi-1..N" into interactive DOM elements.

4. Karpathy-Wiki Memory

karpathy-wiki-memory-engine.js maintains 3-tier Markdown memory (PROFILE.md, COMPANION.md, observations/YYYY-MM-DD.md, entities/companies/*.md) with Dream Consolidation.

5. Chat Orchestrator

companion-chat-orchestrator.js executes a 4-step tool pipeline per turn: DOM inspection, Spreadsheet/Document Visual Artifact creation, observation logging, and entity graph upsert.

6. 31 Official Skills

skills/ ships 31 domain playbooks including the 48-file TypeScript general/visual-artifact brand-probe and layout critique engine.

7. Routines & SQLite

sqlite-workspace-store.js persists 6 relational tables via built-in node:sqlite (DatabaseSync), powering scheduled browser routines and meeting action-item extraction.

8. Multi-CLI Harness

cli-harness-router.js and berry-cli-terminal-dock.js auto-discover local AI CLIs (claude, agy, codex, grok, orca) with Companion-to-CLI affinity routing and an embedded terminal dock.

Install once

Clone the repository and start the local-first server on port 4104.

git clone https://github.com/jangtrinh/oi-browser.git
cd oi-browser
npm test
npm start

First safe use

  1. Run the automated full-stack test suite (SQLite state, CLI harness router, DOM agent, Dream Consolidation).
    npm test
  2. Inspect the local state register (9 domain companions, 31 skills, 5 routines, CLI harnesses, Karpathy-Wiki files).
    curl -s http://127.0.0.1:4104/api/state | jq '.companions[].name'
  3. Build and launch the native macOS WKWebView desktop bundle.
    npm run build:macos

All runtime data is stored locally under .berry-data/ (SQLite + Markdown wiki).

A practical loop

GET /api/state

Returns the 9 domain companions, open tabs, 31 skills, 5 scheduled routines, CLI harness status, and Karpathy-Wiki Markdown files.

POST /api/chat

Runs the AgentDOMBrowserService with [data-oi-id] tagging, creates Visual Artifacts, and appends Karpathy-Wiki observations.

POST /api/memory/dream

Consolidates recent session observations directly into the companion’s persistent COMPANION.md profile.

POST /api/routines/run

Executes scheduled browser routines and persists structured execution logs in SQLite.

Frequently asked questions

What is Ổi Browser?

Ổi Browser is a source-available, local-first agentic AI browser featuring a Multi-CLI Shell Harness (claude, agy, codex, grok, orca), 9 domain companions, DOM agent automation, Karpathy-Wiki Markdown memory consolidation, and a native macOS WKWebView desktop wrapper.

How is Ổi Browser installed?

Clone https://github.com/jangtrinh/oi-browser, run npm test to verify the full-stack suite, and run npm start to launch on http://127.0.0.1:4104 or npm run build:macos to build the native macOS .app bundle.

How does it compare with alternatives?

Ổi Browser runs with zero external npm runtime dependencies on Node.js 22+ built-in node:sqlite and node:http, keeping all companion chats, routines, and Karpathy-Wiki Markdown memories 100% on your local disk.

Does it send telemetry or require cloud services?

No. Ổi Browser operates strictly on your local machine at 127.0.0.1:4104. All Sentry, PostHog, and external analytics beacons are neutralized at the IPC bridge.

What license is Ổi Browser released under?

Ổi Browser is source-available under the PolyForm Shield License 1.0.0: free to use and modify, including for commercial work, but you may not resell it or offer a product that competes with it.

Ecosystem & Related Projects

Explore complementary developer tools and companion repositories designed to work together.

Read next