MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat

github.com/OpenAnonymity/oa-chat @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,133 symbols 6,420 edges 133 files ⚖ MIT 415 documented · 19% ● updated 4d agodaemon-v0.4.2 · 2026-09-30★ 48

Browse by type

⨍ Functions 2,047◇ Types & classes 86
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

oa-chat

A ChatGPT-like AI chat app that implements unlinkable inference — AI inference using anonymously issued access credentials. Built by The Open Anonymity Project.

The web app runs entirely in the browser. Each session uses a fresh ephemeral access key obtained via blind signatures, so no party — including the OA system and the inference provider — can link your identity to your inference activity or link sessions to each other.

For Open WebUI and other OpenAI-compatible clients, two local streaming APIs exist:

  • oa-clientd, a Go module in oa-clientd/, is paid with your OA account's inference tickets. A computer is authorized through an OA web app approval that is being introduced on OA staging first; the web app on this branch does not include it yet, and setup against a deployment without it stops with a clear error. See its guide and docs/DAEMON_AUTHORIZATION.md for the rollout.
  • zkapi-clientd in OpenAnonymity/zkapi is funded with private ETH, with a short mainnet quick start.

Highlights

  • Unlinkable inference: Every session uses an ephemeral, blind-signature-backed access key. The inference provider sees anonymous requests with no way to identify the user behind them or link them across sessions.
  • Standalone: Pure ES modules loaded in the browser; no server required.
  • Local-only storage: Sessions, messages, and settings are stored locally in IndexedDB. Network logs are memory-only (per tab). You have the only copy of your activity history.
  • Streaming UX: Incremental token updates with reliable auto-scroll.
  • Markdown + LaTeX: Rendered with Marked and KaTeX (self-hosted vendor assets).
  • Model picker: Fuzzy search, pinned models, and per-session selection.
  • Multimodal: Images, PDFs, Word documents (.docx), and audio attachments.
  • Right panel: Ticket registration, access issuance/expiry, and an activity timeline (logs are memory-only per tab).

Recent updates — November 2026

The public client includes the fixes used by the production app through November 11, 2026: improved retry and resend after model changes, provider-error recovery, browser storage and ticket-sync recovery, zero-data-retention provider routing, and local ticket-usage history. Existing public protocol-version support and oa-clientd remain available in this repository.

This source update excludes staging request-timing collection and staging-only feature rollouts. The commercial subscription and checkout interface remains in the separate commercial host. See the source-sync notes for scope and validation.

Quick start

  1. Clone the repo.
  2. Install dependencies: bash npm install
  3. Serve from the repo root: bash npm run dev # visit http://localhost:8080 npm run dev now initializes the nanomem submodule first, so a clone without --recurse-submodules fails fast instead of serving a browser-side GET /nanomem/browser.js 404.

Production build + preview:

npm run build
npm run preview
# visit http://localhost:8080

Select oa-org at build time without changing source code:

OA_ORG_ORIGIN=https://org.staging.openanonymity.ai npm run build

OA_ORG_ORIGIN must be an exact HTTPS origin (HTTP is accepted only for loopback development). If it is omitted, the build uses production oa-org.

Architecture (1-minute overview)

  • index.html bootstraps Tailwind, Marked, KaTeX, then loads ES modules.
  • app.js coordinates state, components, streaming, and CRUD through chatDB.
  • services/inference/ selects the inference backend; api.js handles OpenRouter calls (fetch models, stream completions).
  • db.js provides an IndexedDB wrapper for sessions/messages/settings (exported as chatDB).
  • components/ contain UI pieces (sidebar, chat area, input, model picker, right panel, templates, message navigation).
  • services/ provide logging, key storage, file utilities, ticket/key flows, provider icons, and theme management.
  • local_inference/, embeddings/, and vector/ are standalone modules for local/auxiliary inference and memory search (in development).
  • chat/vendor/privacypass-ts/privacypass-ts.min.js provides blind signature operations via @cloudflare/privacypass-ts (open-source, Apache-2.0).

For a deeper breakdown, see AGENTS.md.

Privacy & security

Unlinkable inference: No party — including the OA system and the inference provider — can link a user's identity to their inference activity. Blind signatures ensure the station cannot correlate ticket issuance (blind signing) to ticket redemption (ephemeral API key request). The ephemeral API key carries no user identity — the model provider sees anonymous inference from an ephemeral key with no way to identify the user behind it. Each session uses a different ephemeral key, so sessions cannot be linked to each other.

This is much stronger than pseudonymity — there is no stable alias on your data. The adversary observing requests cannot tell if 100 requests came from 100 people with 1 request each, or 1 person with 100 requests, or anything in between.

What OA does NOT claim: OA does not claim that prompts are hidden from the inference provider. Prompts must reach the model for inference to work. The claim is that prompts are unlinkable to your identity and to each other — the provider sees anonymous requests from ephemeral keys with no way to know who sent them or link them across sessions.

Zero trust on OA infrastructure: Users need not trust any OA-operated component (org, stations, verifier operators). The verifier runs in a hardware-attested enclave (AMD SEV-SNP) with open-source auditable code. Station compliance (privacy toggles, key ownership) is enforced using the provider's own APIs as evidence. Even a compromised OA operator cannot deanonymize users because no OA component possesses user identity in the first place.

For the detailed privacy model, see docs/PRIVACY_MODEL.md and the blog post Unlinkable Inference as a User Privacy Architecture.

Development

  • Keep devtools open — console warnings surface integration issues early.
  • Source modules live in chat/ and can be served directly in dev; production builds bundle and minify output into dist/.
  • Debug logging is enabled on localhost and disabled in production builds (see DEBUG flag in chat/config.js).

License

This project is licensed under the MIT License.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 1,349
Function 698
Class 86

Languages

TypeScript100%

Modules by API surface

chat/app.js316 symbols
chat/components/RightPanel.js90 symbols
chat/components/ChatArea.js81 symbols
chat/components/ChatInput.js76 symbols
chat/services/accountService.js73 symbols
chat/components/MemoryEditor.js70 symbols
chat/components/WelcomePanel.js50 symbols
chat/components/ShareModals.js50 symbols
chat/db.js44 symbols
chat/components/VerifierAttestationModal.js41 symbols
chat/services/syncService.js40 symbols
chat/components/AccountModal.js40 symbols

For agents

$ claude mcp add oa-chat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page