cloak

skill
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • rm -rf — Recursive force deletion command in app/art.sh
  • rm -rf — Recursive force deletion command in app/build.sh
  • rm -rf — Recursive force deletion command in app/release.sh
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Regents Cloak — open-source macOS menu bar app for private local AI (Apple Silicon MLX, llama.cpp), Claude Code secret-redaction gateway (CloakDoor), and TEE/Tor/zkAPI cloud inference

README.md

Regents Cloak

Regents Cloak

Latest Release
License: MIT

Regents Cloak is a free, open-source (MIT) macOS menu bar app for private AI — run models offline on Apple Silicon (vmlx-swift MLX, nanoattention, and Metal llama.cpp + libmtmd vision), route Claude Code, Codex, Grok Build, OpenCode, Goose, and any OpenAI/Anthropic coding agent through a localhost secret-redaction gateway (CloakDoor, 127.0.0.1:8742), or step up to hardware-attested TEE, Tor, and zkAPI cloud rails behind an enforceable 3-tier Security Profile.

Website · Pricing · Claude Code Quickstart · Reference Docs · Releases · Changelog

Regents Cloak

Beta & audit status: Signed, notarized .dmg builds (~26 MB base download with SHA-256-pinned on-demand runtime packs) are published on GitHub Releases. Regents Cloak is beta software and its privacy protections have not yet undergone an independent security audit — keep wallet balances small, back up or withdraw funds before wiping your Mac, and read Wallet Security, Recovery & 30-Day zkAPI Limit (web copy).

Install

Homebrew (installs Cloak.app and puts cloak CLI on PATH):

brew install --cask regents-ai/tap/regents-cloak

Or download the DMG directly: grab the latest signed Regents-Cloak-*.dmg (~26 MB) from regents.sh/cloak/download/mac or GitHub Releases, drag Cloak into /Applications, and open it. Heavy optional runtimes — the Apple Silicon MLX engine (vmlx, ~22 MB) and Sealed Linux MicroVM (linux_vm, ~134 MB) — download on demand only when needed and are verified against exact SHA-256 pins embedded in Cloak's Apple-notarized manifest.

Verify any download independently against SHA256SUMS.txt on GitHub Releases, regents.sh/cloak/install#verify, and Settings → General → Status:

shasum -a 256 ~/Downloads/Regents-Cloak-*.dmg
codesign -dvv --strict "/Applications/Cloak.app"
spctl --assess --type execute -vv "/Applications/Cloak.app"

Requires Apple Silicon and macOS 26 or later (macOS 27+ for optional Darkbloom inference serving).

Cost & Payment Methods

Regents Cloak is $0 (MIT open source) for offline Local AI with no account or subscription; optional Private Cloud rails pay providers directly (see regents.sh/pricing):

Rail / Feature Cost Payment method
Regents Cloak app & Local AI $0 (MIT open source) No account, no subscription, no credit card; offline once weights download
NEAR AI Gateway (Hardware TEE) Pay-as-you-go to NEAR AI Cloud Bring your own NEAR AI Cloud API key (0 GB download; 8 GB+ Mac)
Venice AI (Private / TEE tiers) Pay-as-you-go to Venice AI Base USDC via HTTP x402, Venice API key, or card / Stripe Link / Apple Pay top-up
Boundless + Tempo Pay-as-you-go to Boundless Tempo USDC.e payment channels via HTTP 402 MPP (or Relay.link + CCTP V2 bridge)
zkAPI Anon Inference Pay-as-you-go (actual token cost) Reusable Ethereum Mainnet ETH deposit ($5+ recommended; 30-day limit; fresh one-time ZK key per turn)
Darkbloom Earn (macOS 27+) Earn on idle Apple Silicon (0% platform cut) Local Only ($0, no account) or optional Network + Local via console.darkbloom.dev

Allowed Connections (Security Profiles)

Choose your privacy posture in Settings → General → Allowed connections — changes take effect immediately with no restart required across Chat, Connected Apps (CloakDoor), Wallets, Tor/VM controls, CLI, AppleScript, and Darkbloom Earn:

Allowed connections Allowed Hard-blocked
Local Mac only Local AI chat (vmlx-swift / nanoattention / llama.cpp + libmtmd vision / loopback 127.0.0.1 servers), Local Access, Local Voice, Saved Project Profiles, Connected Apps (Local $0), explicit model & offline dataset downloads, Darkbloom Local Only All cloud AI chat modes, cloud Connected Apps rails (HTTP 403 security_profile_blocked), cloud wallets & on-chain RPCs, Tor/VM startup, app-attribution headers, and account-linked Network Inference Serving
zkAPI only Everything in Local Mac only + zkAPI Anon Inference (one-time ZK credentials) with Tor, Cover Traffic, and Local Prompt Rewriting locked ON; Connected Apps on Local ($0) and zkAPI Anon Account-keyed NEAR AI Gateway, single-wallet linkable Venice & Boundless rails, direct non-Tor cloud traffic, skipping prompt rewriting, app-attribution headers (e.g. Boundless User-Agent), and account-linked Network Inference Serving
Cloud allowed (default) All 4 Chat modes, Unified Private Balance across all 4 Private Cloud rails, all 5 Connected Apps rails (Local $0, NEAR TEE, Venice · Base, Boundless · Tempo, zkAPI Anon), all wallets, Darkbloom Network + Local, and verified cloud integrations Enforces per-thread mode locks, Privacy Shield secret blocking & interactive Tripwire HUD, fail-closed Neural PII & SpendLedger quarantine, Spend Guardrails, and fail-closed verification

Terminology map: Local AI is the offline chat mode (⌘1), Local ($0) is the zero-cost CloakDoor rail (127.0.0.1:8742), and Local Mac only is the master Security Profile that blocks all cloud modes, wallets, and network serving.

How it works

Regents Cloak lives in your menu bar and starts paused. Local AI (⌘1), NEAR AI Gateway (⌘2, with Tor off), Venice (with optional Direct HTTPS enabled — bypasses the microVM), Local ($0) CloakDoor, and the Anywhere Floating Quick Bar (⌥Space / ⌘⇧K) work immediately without starting the VM.

When you press Start (or run cloak start), Cloak launches bundled Tor (0.4.9.16), a sandboxed local prompt rewriter (Qwen 3.5 9B), and an ephemeral, NIC-less Linux arm64 microVM (Virtualization.framework). Outbound traffic from the VM (Tor-routed Venice/Boundless via vsock:8020, zkAPI via vsock:8021, and built-in Pi agent via vsock:8030) can only exit through Tor over vsock:9050. Local models load on demand, expose live RAM readout with 1-click Unload in the menu bar, unload automatically under macOS memory pressure, and reuse verified HuggingFace / LM Studio / Ollama weights via zero-copy APFS clonefile(2).

Cloak 5-step verified startup checklist

Modes

Each conversation locks its mode on turn 1. The Active Guarantees rail in the bottom-left of Chat shows your active Security Profile and only the protections actually enforced for that thread.

Mode Where inference runs What leaves your Mac Payment / auth What can still link requests
1. Local AI (⌘1) On your Mac (vmlx-swift MLX, nanoattention Zig+Metal, Metal llama.cpp + libmtmd vision, or loopback 127.0.0.1 servers) Nothing during chat once weights are downloaded Free · no account Nothing leaves your Mac
2. NEAR AI Gateway (⌘2) NEAR AI Cloud (Confidential TEE catalog: Qwen 3.8 27B, GLM 5.3 Flash, DeepSeek V4.1 Flash, Qwen 3.6 35B A3B, NEAR AI Red — Intel TDX + NVIDIA enclaves) Shielded prompt as written, E2EE v3 encrypted to the verified enclave + Ed25519 provider_tee / gateway response signatures (optional Tor & hybrid PQ TLS) Your NEAR AI Cloud API key Your NEAR API key identifies your NEAR account
3. Token Inference (⌘3) Venice AI or Boundless + Tempo Shielded, locally rephrased user text over per-conversation Tor circuits (or optional Direct HTTPS for Venice); Boundless User-Agent: Cloak attribution is off by default Local Base USDC (x402) / Venice key, or Tempo USDC.e (MPP) — fund via crypto or Stripe Link / Apple Pay A reused wallet address, channel, or API key can link chats
4. zkAPI Anon Inference (⌘4) Open Anonymity (zkAPI) over Tor Shielded, locally rephrased user text over per-conversation Tor circuits Fresh one-time ZK key per turn drawn from a reusable ETH deposit — no provider account or linked API key Prompt content, thread history, and timing can still correlate requests
5. Darkbloom Earn On your Mac via Darkbloom (EigenLayer) Local Only stays on your Mac; Network + Local serves idle compute to Darkbloom Earn payouts on idle Apple Silicon (0% platform cut, macOS 27+) Linked console.darkbloom.dev provider account (Network + Local only)

Cloak Ecosystem Stack

Features

  • Fast local Apple Silicon inference, offline Photos Q&A & native tool calling — pure-Swift MLX (vmlx-swift with MLXVLM, RAM-only paged KV prefix caching, and Quick / Standard / Thorough reasoning effort; built-in Inkling 2 Mini, Qwen 3.5 4B (Fast + Vision), Qwen 3.8 27B (Coding + Vision), and Qwen 3.8 Flash Next with native $0 CloakDoor tool calling), Metal llama.cpp b12858 + libmtmd vision (including Ora Computing's compact 2.6bpw / 2.4bpw Inkling 2 Mini GGUFs with 642 MB BF16 mmproj for native Photos Q&A on 16 GB+ Macs + optional 44 MB uncensored LoRA), and strictly loopback-only (127.0.0.1) auto-discovery for Splash, TensorFold, mlx-serve, LM Studio, Ollama, and Darkbloom Local
  • Offline audio/video transcription & structured PDF reading (0 MB) — drop .m4a/.mp3/.wav/.mp4/.mov files into Local AI chat for [MM:SS] local transcription via macOS SpeechAnalyzer, extract structured Markdown tables and page numbers from PDFs/scans via RecognizeDocumentsRequest, and ask questions about photos locally
  • Saved Project Profiles (free in beta) — keep each client or repository cleanly isolated with per-project approved Local folders, Privacy Shield private terms, preferred route, and Connected Apps model override, with 1-click switching in Chat's sidebar
  • Connected Apps (CloakDoor) with Per-App Policies, Privacy Shield & Spend Guardrails — speaks both OpenAI (/v1/chat/completions, /v1/models) and Anthropic (/v1/messages, /v1/messages/count_tokens, ?beta=true, buffered SSE streaming, tool calling, Claude model aliases) across all 5 rails (Local $0, NEAR TEE, Venice · Base, Boundless · Tempo, zkAPI Anon) with 1-Click Connect, per-app Rules… (Smart Failover never jumps off Local ($0)), What Cloak sent receipts, fail-closed Privacy Shield, and deterministic Spend Guardrails with corrupt-ledger quarantine
  • Cloud Request Inspector & Linked Continuation — inspect exact payloads, replacements, included context, and spending in Review cloud request and immutable What Cloak sent receipts, and continue any local answer into a separate reviewed cloud chat via Try a cloud model…
  • Hardware-attested enclaves (E2EE v3 + provider_tee signatures) — native Rust verifier (cloak-near) checks Intel TDX quotes (dcap-qvl), pinned app_compose measurements, Intel Trust Authority NVIDIA GPU verdicts, hybrid post-quantum TLS (X25519MLKEM768 + opt-in strict require_pq), E2EE v3 per-field AEAD AAD encryption, and Ed25519 /v1/signature/{id} response signatures across NEAR's Confidential TEE model catalog
  • Local prompt rephrasing + per-conversation Tor + live Cover Traffic — sandboxed Qwen 3.5 9B paraphrases user prose before cloud turns (preserving code, paths, URLs, and identifiers and failing closed on error), isolated Tor circuits per thread, and host-side Cover Traffic that toggles live with zero restart
  • Zero telemetry — no analytics, no automatic crash reports, no Regents account, Sparkle system profiling disabled, and user-reviewed Redacted Diagnostic Reports in Settings → Feedback
  • Native macOS shell & bundled cloak CLI — ChaCha20-Poly1305 encrypted chats, pure-Swift Markdown + LaTeX math, Liquid Glass menu bar panel, global Quick Prompt hotkey, Control Center & Desktop widgets, and the bundled CLI at /Applications/Cloak.app/Contents/MacOS/cloak (cloak status, cloak start, cloak crypto-status --json, cloak verify-release, etc.)

Connected Apps (CloakDoor) & Claude Code Quickstart

Full step-by-step setup guide (1-Click Connect, key rotation/revocation, ANTHROPIC_API_KEY vs ANTHROPIC_AUTH_TOKEN, Claude model alias mapping across all 5 rails, limits, curl & Secret Tripwire tests, and cloak CLI): regents.sh/docs/cloak/claude-code.

  1. Keep Cloak.app running in your menu bar and open Settings → Connected Apps.
  2. Click Connect next to Claude Code under Detected on This Mac (or click Connect an app… → Create Key for a one-time cloak-<64 hex> key).
  3. Click Rules… next to an app to pick its rail (Local ($0), NEAR TEE, Venice · Base, Boundless · Tempo, or zkAPI Anon), model override, or spend limits. Smart Failover never jumps off Local ($0).

Claude Code (Anthropic Messages API):

# Use ANTHROPIC_AUTH_TOKEN instead of ANTHROPIC_API_KEY if you have an existing claude.ai OAuth login
ANTHROPIC_BASE_URL=http://127.0.0.1:8742 \
ANTHROPIC_API_KEY=<cloak-app-key> \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
claude

OpenAI-compatible clients (Codex, Grok Build, OpenCode, Goose, Hermes, Cline, Aider, SDKs):

curl http://127.0.0.1:8742/v1/chat/completions \
  -H "Authorization: Bearer <cloak-app-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-sonnet-4-6",
    "messages": [{"role": "user", "content": "Review PR #418 for edge cases."}]
  }'

CloakDoor limits & model availability: max request body 8 MiB (HTTP 413), max 4,096 messages, buffered SSE streaming (stream: true), GET /v1/models, POST /v1/messages, POST /v1/messages/count_tokens, and POST /v1/chat/completions (POST /v1/responses returns 404). Anthropic Claude models are served on Boundless · Tempo and zkAPI Anon; on Local ($0), NEAR TEE, and Venice (Private/TEE), Claude aliases map automatically to the rail's active open-weight model.

Privacy boundary: PrivacyShield (Settings → Connected Apps → Privacy Shield) runs pre-send Secret Tripwire + reversible alias masking + opt-in on-device NewmeanPII neural PII (12.1 MB, SHA-256 verified; skipped on Local ($0); fail-closed 503 neural_pii_unavailable by default on cloud rails unless Degraded (regex-only) is selected under On inspection error, which tags the HTTP response header X-Cloak-Privacy-Mode: degraded-regex-only). Local prompt rewriting paraphrases role == "user" prose on Tor cloud rails (Venice, Boundless, zkAPI) and is skipped on Local ($0) and NEAR TEE. Local Access stays strictly in Local AI chat and is never exposed to CloakDoor.

Local Access & Offline Data

Everything in Settings → Local Access is off by default and wired exclusively into Local AI chat (cloud modes, CloakDoor, and the Pi agent have zero code path to it):

  • Per-message file attachments — click Attach or drag & drop PDFs (with structured Vision OCR), screenshots/images (native Photos Q&A on vision models + Apple Vision OCR), .docx/.rtf/.odt documents, audio/video files, Markdown, and code files
  • Hermes-compatible memory & approved folders — owner-only USER.md/MEMORY.md (optional ~/.hermes/memories/ sync) and read-only keyword search over approved folders (scoped to your active Project Profile when one is selected; always skips dotfiles, .env*, and private keys)
  • Opt-in macOS connectors — read-only basic Mac info, Calendar (next 7 days), Reminders, and query-matched Contacts
  • Progressive Offline Data — Settings → Offline Data downloads resumable Minimum → Maximum packs for Kiwix Library (174 MB → 61 GB), DevDocs (15 MB → 240 MB, 1-click linkable into Local AI), CourtListener (540 KB → 58.3 GB), PubMed Central S3 CLI, and Tinfoil Kit

Inference Serving (Darkbloom)

On macOS 27+, Settings → Inference Serving integrates Darkbloom (Eigen Labs) with a unified 3-way Serving Mode (Off / Local Only / Network + Local):

  • Verifies Darkbloom's signed binary (Team SLDQ2GJ6TL) before talking to its loopback-only control API
  • Ranks Apple Silicon models that fit beside Cloak by live payout rate, displays a live RAM budget bar + Earn-to-Spend offset, and enforces Mac Guardrails (auto-pause on battery, high thermal pressure, or Quiet Hours)
  • Respects your Security Profile (Network + Local is disabled under Local Mac only and zkAPI only, while Local Only remains available)

Demos

Build from source

Requires Apple Silicon, macOS 26+, Xcode / Swift 6.2+, Rust, uv, and Docker (for the Linux arm64 guest image):

uv run scripts/fetch_sources.py
llama-worker/install.sh
vmlx-worker/install.sh
guest/build.sh
host/build.sh
app/build.sh
swift test --package-path app

Docs & Feedback

Yorumlar (0)

Sonuc bulunamadi