Open Source
Built in Production,
Released for Everyone
Every tool here runs in production at Protocol Wealth. We open-source the components that can help other advisers, developers, and fintech teams build compliant, AI-native financial infrastructure.
pwos-core
A compliance-first AI operating system for SEC-registered investment advisers. Multi-model LLM chat with streaming, autonomous tool orchestration, practice management, and document analysis — built on React 19, Hono 4, and PostgreSQL.
Key Capabilities
- PII protection — regex, NER, and financial recognizers with 23-pattern prompt injection detection
- Immutable audit logging compliant with SEC Rule 204-2 (5-year retention)
- Autonomous tool orchestration during conversations
- PDF, CSV, and Excel processing with chart and report generation
- Role-based access control via Google OAuth
Why It Exists
Most AI tools ignore the compliance requirements that SEC-registered advisers face daily. PWOS Core was built inside an active RIA practice, so audit trails, PII safeguards, and recordkeeping are foundational — not afterthoughts. Apache 2.0 licensed with a defensive patent pending (USPTO #64/034,229).
nexus-core
A regime-adaptive financial analysis engine with MCP tool orchestration. Detects market regimes using signal ensembles and provides regime-aware investment analysis that any AI client — Claude, GPT, or Gemini — can access through the Model Context Protocol.
Key Capabilities
- Regime detection — yield curves, volatility, currency strength, inflation, and energy signal ensemble
- Multi-dimensional durability scoring combining fundamentals, technicals, and momentum
- 7-layer asset classification by decay characteristics under stress
- MCP tool orchestration — tools auto-adapt analysis based on detected regime
- Immutable audit trails and access controls for regulated advisers
Why It Exists
Financial analysis tools typically ship as black boxes. Nexus Core makes the scoring logic, regime definitions, and signal thresholds fully auditable. Built on FastAPI, PostgreSQL, and Redis, it powers the analysis behind Protocol Wealth's research and advisory practice. Apache 2.0 licensed with a defensive patent pending.
pw-router
A minimal LLM gateway for regulated industries. Routes requests across Anthropic, OpenAI, and vLLM through an OpenAI-compatible API with circuit breakers, automatic failover, and pluggable compliance middleware — in roughly 1,000 lines of auditable code.
Key Capabilities
- OpenAI-compatible API — use any existing SDK, just change the base URL
- Tag-based routing and request filtering across multiple LLM providers
- Per-model health checks with automatic circuit breaker failover
- Middleware hooks for PII scanning and audit logging
- Stateless design — no data stored, just 4 dependencies
Why It Exists
Enterprise LLM gateways are opaque and over-featured. Regulated teams need a router that compliance officers and auditors can actually read. pw-router prioritizes auditability over feature breadth — the entire core is small enough for a single security review session. YAML-configured with environment variable expansion.
pw-redact
A PII redaction engine purpose-built for financial services AI pipelines. Strips personally identifiable information from documents before they reach any AI model, ensuring sensitive data stays in-house while preserving the financial context needed for analysis.
Key Capabilities
- Four-layer detection — regex, NLP (Presidio/spaCy), custom financial recognizers, and allowlist preservation
- Consistent placeholder replacement enabling post-AI rehydration
- 30+ PII types and 60+ financial acronym preservation rules
- Built-in prompt injection detection, input sanitization, and output validation
- Deterministic and stateless — no database, no side effects
Why It Exists
Sending client data to AI models creates regulatory exposure. pw-redact sits between your documents and the LLM, stripping SSNs, account numbers, and names while keeping dollar amounts, percentages, and financial terms intact. Supports multiple document contexts including meeting transcripts, tax returns, and mortgage documents.
Why We Open Source
Regulated financial services need infrastructure that regulators, auditors, and compliance officers can actually inspect. Proprietary black boxes create risk. Open source creates trust. Every tool listed here is production-tested at Protocol Wealth and released under permissive licenses so other teams can build on the same foundation.
4
Open Source Projects
Apache-2.0 + MIT
Permissive Licenses
OIN
Open Invention Network Member
Defensive Patent & IP Protection
Protocol Wealth holds a provisional patent (USPTO #64/034,229) covering the regime-adaptive scoring framework and compliance-first AI architecture. This patent is defensive — it exists to prevent others from restricting access to these approaches, not to restrict use. Protocol Wealth is a member of the Open Invention Network (OIN), further protecting the open source ecosystem from patent aggression. All repositories are released under Apache 2.0 or MIT licenses with no usage restrictions.