autonomous-audit-mcp
v0.1.0MCP server exposing autonomous-audit's tamper-evident decision log (record/verify/report/anchor) as agent-callable tools - integrity & traceability for AI…
🤖 AAAgents — Local Multi-Agent Trading Client & Execution Utility Community Edition · Local-First · Open-Source (Apache 2.0) AAAgents brings a powerful, operational trading and execution environment directly to your PC. The software runs fully locally on your own hardware and connects directly to your broker API. It serves as a tool for retail users and enterprises wishing to manage their own assets at their own discretion. For the Desktop App, you do not need any programming knowledge, Python, or Docker.
Summary extracted from the README.
🤖 AAAgents — Local Multi-Agent Trading Client & Execution Utility
Community Edition · Local-First · Open-Source (Apache 2.0)
A decentralized, open-source software tool for automating and executing trading decisions on one's own account.
Editions Matrix (OSS ↔ Enterprise)
GENERIERT — nicht von Hand editieren. Quelle: die kanonische Matrix in
docs/0_strategy_and_roadmap/EDITIONS.md§0. Neu erzeugen:python scripts/gen_editions.py(Drift bricht die CI,scripts/test_gen_editions.py).
| Fähigkeit | Community (OSS / Desktop) | Enterprise | Status |
|---|---|---|---|
| Runtime | Desktop-App (Win/macOS) · Docker-Compose self-hosted | GCP Cloud Run (managed, auto-scaling) | ✅ |
| Datenbank | SQLite (Desktop, auto-bootstrap) · lokales PostgreSQL (Docker self-hosted) | Cloud SQL | ✅ |
| Cache | lokales Redis (self-hosted) · keiner nötig (Desktop) | Cloud Memorystore Redis | ✅ |
| Auth | LocalMockAuth (IP-gebunden) | Firebase Auth (verify_id_token) |
✅ |
| Secret-Speicher | OS-Keychain (verschlüsselt, core/keychain.py, SEC-5/#1084) |
GCP Secret Manager | ✅ |
| Marktdaten-Feed | Alpaca IEX (kostenlos) | Alpaca SIP + Databento | ✅ |
| VIX | synthetisch (SPY-Vol-Proxy) | echter CBOE-VIX (Polygon) | ✅ |
| Round Table | 14 Agenten (kanonische Liste: docs/2_agentic_operations/AGENT_CATALOG.md) |
14 Agenten + kuratierte Plugins | ✅ |
| LLM | Desktop: lokales Ollama · Dev/Cloud: Gemini | Gemini (voll) / kundeneigenes LLM | ✅ |
| Iron Dome (Risk) | identisch (voll) | identisch + governierte, admin-adjustierbare Limits (ADR-SEC-06) | ✅ |
Trading Intelligence (IntelligentExit, should_trade) |
vorhanden & aktiv (primärer Desktop-Exit-Pfad) | identisch | ✅ |
| Portfolio-Optimierung (cuFOLIO) | nicht verfügbar (scripts/oss_exclude.txt) |
Institutional-only, dormant (CUFOLIO_ENABLED) |
🔨 |
| MiFID II WORM / RTS-Reporting | lokales JSON-Audit (SHA-256 Hash-Kette) | Cloud-SQL WORM + RTS 6; RTS 22-Export teilweise | ⚠️ |
| Multi-Tenancy | Single-Tenant | Multi-Tenant (Schema dormant) | ⚠️ |
| SEC-EDGAR-Fundamentals | gebundelter Public-Domain-Snapshot (Desktop+OSS) + Nightly-Refresh | identisch | ✅ |
| Makro-Regime-Daten (FRED) | Alpaca-ETF-Proxy (HYG/TLT/USO) oder user-eigener FRED-Key — KEIN geteilter Client-Key | server-seitig ein FRED-Key + Cache | 🟡 |
AAAgents brings a powerful, operational trading and execution environment directly to your PC. The software runs fully locally on your own hardware and connects directly to your broker API. It serves as a tool for retail users and enterprises wishing to manage their own assets at their own discretion.
- 100% Decentralized & Private: Your API keys and portfolio data remain in your local operating system keychain and your local SQLite database. No data is transmitted to us.
- Operational Execution: Once configured, the system executes real (or virtual) buy and sell orders fully automatically directly via your broker account.
- No Financial Service: We do not offer asset management, investment advice, or brokerage services. The operation, risk parameterization, and control of the software lie entirely in your responsibility.
🚀 Quick Start (Ready in 3 Steps)
For the Desktop App, you do not need any programming knowledge, Python, or Docker.
- Download the installer for your OS:
- ⬇️ Windows: Download for Windows (autonomous_setup.exe)
- 🍏 macOS (Apple Silicon): Download for Mac (AAAgents-arm64.dmg) — Apple Silicon (M1–M4) only, ad-hoc-signed Beta (first launch: right-click → Open, or System Settings → Privacy & Security → Open Anyway). Intel Macs / from-source: macOS Quickstart
- Install: Run the setup and open the application AAAgents.
- Configure:
- Paper Trading (Virtual Capital): Enter your Alpaca Paper Trading keys to test the system risk-free with virtual orders.
- Live Trading (Real Capital): Enter your Alpaca Live Trading keys. Your keys are securely stored locally, encrypted in the operating system keychain.
- Offline Mode: Without keys, the voting engine runs in recommendation-only mode without sending orders to a broker.
🧠 Local Features of the Community Edition
- Local AI (Ollama Integration): Analyze news and sentiment fully locally on your graphics card (e.g., with Llama3 or Mistral) – completely free of charge and without third-party cloud providers.
- 14-Agent Consensus: A local board composed of technical indicators, sentiment analysis, LSTMs, and Reinforcement Learning determines the signals.
- Iron Dome Risk Control: Integrated, configurable safety rules guarding against wash trades, excessive sector concentration, and uncontrolled trading behavior.
📊 Edition & Deployment Comparison
This table shows the deployment differences across the Desktop Edition, OSS Self-Hosted Edition, and the Enterprise Edition. The canonical, code-verified capability matrix is the generated block at the top of this file; the same generated block is published in Vision & Editions. Where this operational table and the generated matrix differ, the generated matrix wins.
| Feature / Aspect | 🖥️ Desktop Edition (Local-First) | 🛠️ OSS Developer (Self-Hosted) | 🏢 Enterprise Edition (Cloud Native) |
|---|---|---|---|
| Target Audience | Retail Traders / Individual Users | Developers, Quants & Researchers | Asset Managers & Institutions |
| Deployment | Native Desktop App (Electron) | Docker Compose / Python CLI | GCP Cloud Run / Managed Kubernetes |
| Prerequisites | None (Zero-Dependency Installer) | Python 3.12 / Node.js / Docker | GCP / Cloud SQL / Firebase |
| Architecture | Electron + Embedded Python | FastAPI Backend + Vite Frontend | Cloud Run Microservices (Auto-scaling) |
| Database | SQLite (local, file-based) | SQLite (local, file-based) | Cloud SQL (PostgreSQL / AlloyDB) |
| Authentication | LocalMockAuth (127.0.0.1 bound) |
LocalMockAuth (Single-Tenant) |
Firebase Auth + Multi-Tenant Isolation |
| State Management | LocalStateClient (in-memory) |
LocalStateClient (in-memory) |
Redis Memorystore (persistent) |
| Secrets Management | OS Keychain (Credential Manager) | .env.oss / OS Keychain |
GCP Secret Manager (per-User Encryption) |
| Market Data Feed | Alpaca IEX (Free Real-time) | Alpaca IEX / custom FEEDS | Alpaca SIP (Full US Market) + Databento |
| Risk Gate (Iron Dome) | ✅ Local Pre-Trade Rules | ✅ Local Pre-Trade Rules | ✅ Cloud-persistent + Ops Alerting |
| Audit & Compliance | LocalJSONAuditLogger (SHA-256) |
Hash-Chained JSONL + autonomous-audit |
SenateProtocol (WORM Cloud SQL + RTS 22) |
| ML Model Source | GitHub Releases (Boot Manifest) | GitHub Releases (Boot Manifest) | GCS Bucket Sync (Vertex AI) |
| Extensibility | Standard 14-Agent Board | Custom Python Plugins (plugins/) |
Managed Enterprise Agent Pipelines |
⚙️ Operating Modes & Expectations
| Setup | Behavior |
|---|---|
| Without Alpaca Keys | Offline Mode — The engine starts, all 14 agents vote, but no orders are sent. Perfect for getting to know the software. |
| Alpaca Paper Keys | Paper Trading Mode (Default) — Orders are sent risk-free to the Alpaca sandbox environment. |
AAA_SIM_MODE=true |
Quasi-Live Simulator — Runs a full trading day in fast-forward using historical data. Replaces the live broker and data feed with dummy implementations (no API limits or market hour restrictions). |
| Alpaca + POLYGON_API_KEY | Adds real CBOE VIX volatility data. Without a key, the market regime index is estimated from the 60-day history of SPY. |
| Alpaca + GEMINI_API_KEY | Full Sentiment Mode — the LLM research reports become available, which the Equity Research Analyst (SpecialistAlphaAgent) votes on. Without a key that one agent falls back to a neutral 0.5 vote; the other ten are unaffected, and the News Sentiment Analyst (NewsSentimentAgent) scores headlines with a local NLP backend either way. |
🛠️ make Commands (Docker Alternative)
If you prefer starting the software via Docker Compose:
make setup # Generates .env.oss with secure secrets
make start # Runs the setup and starts Docker Compose
make stop # Stops all containers (data is preserved)
make logs # Shows the backend logs
make reset # Deletes all containers and local volumes
🔌 Adding Custom Agents (Plugin System)
The voting board can be extended. To do this, create a Python file in plugins/round_table/my_strategy.py:
from core.round_table.base_agent import VotingAgent, VoteResult
from core.round_table.registry import register_agent
@register_agent("MyStrategyAgent")
class MyStrategyAgent(VotingAgent):
default_weight: float = 15.0
async def vote(self, state: "SymbolEvalState") -> VoteResult:
# Score from 0.0 (Strong Sell) to 1.0 (Strong Buy)
return VoteResult(
agent_name=self.__class__.__name__,
symbol=state["symbol"],
score=0.6,
weight=self.weight,
reasoning="Example: Neutral-bullish signal."
)
Activate plugins in your .env.oss:
ALLOW_UNTRUSTED_PLUGINS=true
ROUND_TABLE_PLUGINS_DIR=./plugins/round_table
🛠️ Local Development (Running from Source)
If you wish to modify the code:
# 1. Create Python environment
python -m venv .venv
source .venv/bin/activate # On Windows: .\.venv\Scripts\activate
# 2. Install PyTorch (CPU version) in advance
pip install torch --index-url https://download.pytorch.org/whl/cpu
# 3. Install dependencies
pip install -r requirements.txt
pip install ./pandas-ta
# 4. Load default ML models
./scripts/setup_oss_models.sh
# 5. Start the app — the one-command wrapper runs the web UI + engine + read-only API together:
npm install
npm run desktop:dev
# …or run the engine and web UI as two separate processes (handy for reading the engine log):
# python -m core.engine & # engine → http://localhost:8001
# npm run dev # web UI → http://localhost:5173 (proxies to the engine)
First-time config (
bash setup.sh) and the keyless "offline" vs. paper-trading run modes are covered step-by-step in the macOS Quickstart — the same from-source flow applies on Linux.
📚 Documentation
| Document | Description |
|---|---|
| Setup Guide | Step-by-step installation, ports, and troubleshooting |
| Vision & Editions | Product roadmap and differences between editions |
| Architecture | Bounded contexts, authentication details, and system boot |
| Plugin Tutorial | Programming custom analysis and trading agents |
| Disclaimer | Legal categorization, BaFin context, and liability exclusion |
⚠️ Important Risk Warning (Disclaimer)
Using automated trading systems carries significant risks. This software is provided by the developers under the Apache 2.0 license for decentralized personal use. The creators and the company Autonomous Asset Management Agents UG (haftungsbeschränkt) assume no liability for financial losses. Operating the software is solely at the user's own account and risk. Please read the full notice in DISCLAIMER.md before commissioning the software.
Maintained by the AAAgents Community · aaagents.de · Releases