Destiny
Sign In
RES-22 · MACOS KEYCHAIN PKCE OAUTH VS MULTI-TENANT SAAS PROXY API EXPOSURE

Credential Custody Study: Hardware macOS Keychain Sealing & Direct TLS vs SaaS Wrapper Servers

Evaluating credential threat models when users authorize OpenRouter, Alpaca, Tiingo, or Tradier locally in Apple Keychain rather than pasting raw secret strings into web SaaS portals.

Scope Boundary: Always configure least-privilege API scopes and paper-trading keys first when binding optional third-party accounts.

RES-22 · Credential Custody SecurityApple Silicon Measured

02 · Quantitative Metrology Table

Audited Baselines & Measurement Methodology

Measured DimensionObserved ValueMethodology & Verification Scope
OpenRouter Auth Mechanism1-Click PKCE OAuthZero manual API-key copy-pasting or plaintext .env storage on disk.
Secret Storage EnclaveApple macOS KeychainHardware-backed system keychain; Nandai Jewels servers never see secrets.
Brokerage Key Routing (Trader)Direct User Mac -> TLSOptional Alpaca, Tiingo, or Tradier traffic travels straight from your Mac.
Middleman Token Markup$0 (0% Surcharge)Supports OpenRouter $0 free router + 300+ models directly without wrapper tax.

03 · Empirical Takeaways

Key Buyer & Systems Findings

FINDING 01

Web BYOK chatbots storing raw API keys in cloud databases create high-value breach targets.

FINDING 02

PKCE OAuth + Apple macOS Keychain keeps credentials hardware-isolated and revocable in one click.

FINDING 03

Direct Mac-to-provider TLS removes middleman prompt logging and wrapper token surcharges completely.

Destiny 2.0 Mac: 78.62 tok/s · M1–M6 NativeZero Trackers · Cross-Origin SVG
Embed Apple Silicon Metrology Badge

Cite reproducible Apple M4 Pro Unified Memory benchmark receipts in engineering repositories.

04 · Keychain BYOK vs SaaS Proxy FAQ

Keychain BYOK vs SaaS Proxy — Methodology & Reproduction

02 Questions
Does Nandai Jewels act as a middleman billing proxy for OpenRouter tokens?
No. Your Mac connects directly using your own PKCE OAuth session stored inside Apple macOS Keychain with zero token markup.
Do I have to connect OpenRouter or brokerage keys to run Destiny free?
Never—local Destiny Swift (128K context) runs offline out of the box without any account or external keys.