Skip to content

egoriklok/Jarvis

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,152 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

JARVIS

A Persistent, Personal Context Engine

A mesh of intelligent layers working together to run, optimize, and upgrade your life.
Starting with crypto. Building toward everything.

Status Version Tests Platform Solana License: MIT


Table of Contents


🌐 What Jarvis Is

Jarvis is not a product in the traditional sense. It is not just an app, a bot, a trading system, or an AI assistant.

Jarvis is a persistent, personal context engineβ€”a mesh of intelligent layers and smart agents that work together to quietly run, optimize, and upgrade your life in the background.

The Vision

The inspiration is simple and familiar: the Iron Man version of Jarvisβ€”the system that quietly upgrades your life without demanding your attention. Something that knows you across all of your devices. Something that understands your preferences, habits, goals, frustrations, and patternsβ€”without you needing to constantly configure it, prompt it, or manage it.

Today's AI tools exist in isolation.

  • Each one has its own interface
  • Its own workflows
  • Its own learning curve

You are expected to orchestrate them.

Jarvis flips that model entirely.

Instead of you adapting to software, the software adapts to you.

Context Is the Product

Jarvis tracks context across your life.

Not just commands. Not just prompts. Not just conversations.

Context includes:

  • Your preferences
  • Your routines
  • Your constraints
  • Your financial posture
  • Your goals
  • Your risk tolerance
  • Your attention patterns
  • Your digital footprint
  • Your environment over time

By unifying this context, Jarvis becomes a single operational layer that sits quietly beneath everything else.

You don't need to be a power user. You don't need to understand AI workflows. You don't need to be technical. You don't need to understand crypto.

Jarvis exists so you don't have to manage complexity at all.

From Assistance to Autonomy

In the beginning, Jarvis assists.

  • It observes
  • It suggests
  • It explains
  • It optimizes

Over time, Jarvis earns autonomy.

Nowhere is this clearer than in trading.

Jarvis is designed to evolve into a fully autonomous trading engineβ€”one that:

  • Operates on-chain
  • Executes transparently
  • Learns from outcomes
  • Compounds both capital and intelligence
  • Improves itself continuously
  • Works while you sleep

Trading is the first domain where Jarvis becomes truly autonomous because it is measurable, auditable, and objective.

From there, autonomy expands outwardβ€”into scheduling, optimization, installations, coordination, and eventually the broader mechanics of daily life.

The End Goal

Jarvis is not trying to replace humans.

It is trying to remove friction.

It is a persistent, personal context engine that quietly unifies intelligence, automation, finance, and daily life into a single systemβ€”one that works in the background, upgrades itself, and upgrades you along the way.


πŸš€ Why Crypto First (But Not Crypto Only)

Jarvis started in crypto intentionally.

Not because it was meant to be only a crypto productβ€”but because crypto is the one environment where the future already exists.

The Proving Ground

In its first phase, Jarvis lives natively on Solana. This is not an accident or a branding choice. Solana provides something no other ecosystem currently can: a fully on-chain, real-time, high-frequency environment where data, assets, execution, analytics, and automation are all transparent, composable, and verifiable by design.

Crypto offers:

  • Real-time markets
  • On-chain execution
  • Transparent outcomes
  • Autonomous capital movement
  • Programmable incentives
  • Global, permissionless access

These properties make crypto the ideal proving ground for autonomy.

Jarvis launches with a strong trading and analytics context not because trading is the end goalβ€”but because it is the hardest place to build something real. Markets are unforgiving. They provide immediate feedback. They expose bad logic quickly. And they reward systems that can learn, adapt, and execute correctly under pressure.

Crypto Is the Training Ground, Not the Identity

In this sense, crypto is not Jarvis's identity. It is Jarvis's training ground.

If a system can survive markets, it can survive anything.

Once Jarvis proves itself in tradingβ€”operating autonomously, generating value, and continuously improvingβ€”it expands outward into:

  • Productivity
  • Communication
  • Devices
  • Health
  • Smart homes
  • Vehicles
  • Robots

The architecture is designed for this from day one.


🧩 The Architecture: A Mesh of Smart Agents

Jarvis is not one monolithic intelligence.

It is a mesh of smart agents and intelligent layers, each responsible for observing, understanding, and improving different parts of your digital and real-world environment.

The Core Layers

Context β†’ Intelligence β†’ Action β†’ Feedback β†’ Memory

Everything in Jarvis fits into one of these layers:

Layer Purpose
Context Signals from devices, apps, chains, and your environment
Intelligence Reasoning, planning, and evaluation (model-agnostic)
Action Execution across domains (finance, productivity, communication, devices)
Feedback Learning from outcomes
Memory Short-term, long-term, and reflective storage

The Agents

These agents:

  • Share context
  • Coordinate through a unified memory
  • Learn from outcomes
  • Compress and refine knowledge over time
  • Operate locally and securely
  • Remain optional and non-blocking

If an AI agent goes offline, Jarvis continues to function normally. Intelligence is additive, not required. Trust is earned, not assumed.

This mesh architecture allows Jarvis to scale horizontally across:

  • Devices
  • Applications
  • Environments
  • Domains
  • Physical systems (future)

Autonomy Is Gated

Jarvis doesn't start with full autonomy. It earns trust through success:

  • Successful actions without errors
  • Accurate predictions
  • User satisfaction feedback
  • Time-weighted reputation building

Every autonomous action is:

  • Auditable
  • Reversible
  • Transparent
  • Gated by permission levels

You remain in control. Always.

Mission Control + OpenClaw Expansion Blueprint

Jarvis is now explicitly split into two cooperating planes:

  • OpenClaw harness for execution, autonomy, and user-facing actions
  • Mission Control for governance, evaluation, versioning, and promotion

This split keeps systems fast and expressive without uncontrolled drift.

Why this matters

  • Avoids "per-agent prompt hacking" across the fleet
  • Preserves personality and autonomy while keeping behavior measurable
  • Supports both individual users and enterprise teams from one architecture

Product lanes

  • Personal lane: private, local-first, fast setup, focused on life/work automation
  • Enterprise lane: role-aware teams, domain packs (HR, legal, infra, engineering), audit-ready operations

Core boundary

Layer Primary owner
Agent runtime, tools, user interaction OpenClaw harness
Prompt/context registry, evals, promotion gates, rollback Mission Control

Source of truth

The complete staged roadmap, boundaries, and scaling model are documented in:


πŸ’Ž Economic Model: Open Source First

Jarvis is built on first principles.

It is:

  • Free
  • Open-source
  • Self-upgrading
  • Always migrating toward smaller, faster, more powerful models

It runs on a new local node architecture powered by LLaMA-based models and free access to advanced intelligence through Claude-compatible runtimes. This makes Jarvis viable at ultra-low cost, without subscriptions, without data extraction, and without centralized control.

Your data stays local. Your context stays yours. Your intelligence compounds over time.

Revenue Distribution

The economic model is intentionally simple and aligned:

Allocation Percentage Purpose
Holders 75% Value flows directly to $KR8TIV token holders
Charity 5% Supports open-source projects and community causes
Founder 20% Sustains ongoing development

This structure ensures that:

  • Users benefit directly from adoption
  • Incentives remain aligned long-term
  • Value creation is shared, not hoarded
  • The system can sustain itself without rent-seeking

The Linux of AI Context

Jarvis is built with the same ethos as Linux:

  • Open
  • Composable
  • Community-owned
  • Endlessly adaptable

We are building the Linux of AI context modelsβ€”something that levels the playing field, making advanced AI accessible to the "little guy," not just engineers or specialists.


⚑ What Jarvis Does Today

While the vision is expansive, Jarvis is already operational and generating value in several domains:

1. Autonomous Crypto Trading

  • 81+ trading strategies running 24/7 on Solana
  • Live treasury management via Jupiter DEX
  • Sophisticated risk management: Position sizing, stop losses, circuit breakers
  • Real-time sentiment analysis via Grok AI
  • Transparent, on-chain execution

2. Multi-Platform Intelligence

  • Twitter/X Bot (@Jarvis_lifeos): Autonomous posting, engagement, trend analysis
  • Telegram Bot (@Jarviskr8tivbot): Full admin interface, trading controls, real-time alerts
  • Web Dashboard: Portfolio management, analytics, strategy monitoring
  • Voice Control: Desktop app integration (macOS/Windows/Linux)
  • API: RESTful API for third-party integrations

3. Self-Improving Core

  • Semantic memory system: 100+ learnings indexed with BGE embeddings
  • 18 Model Context Protocols (MCPs): ast-grep, nia, firecrawl, postgres, perplexity, and more
  • Cross-session learning: No knowledge loss between sessions
  • Trust ladder system: Earns autonomy through successful actions
  • Reflection cycles: Nightly self-assessment and improvement

4. Bags.fm Integration

  • Real-time monitoring of token graduations
  • Investment analysis with Grok AI scoring
  • Multi-dimensional evaluation: Bonding curve, creator, social, market, distribution
  • Automated intel reports via Telegram

5. Treasury & Staking

  • Max 50 concurrent positions
  • Risk-tiered position sizing (ESTABLISHED, MID, MICRO, SHITCOIN)
  • Active stop loss monitoring (checks every 60 seconds)
  • $KR8TIV staking: Earn SOL from trading profits

🎯 Core Capabilities

Autonomous Intelligence

Module Purpose
self_learning.py Track tweet engagement, learn what works
memory_system.py Remember users, conversations, sentiment
reply_prioritizer.py Score mentions, prioritize influencers
trending_detector.py Find trends before peak via Grok
health_monitor.py Self-monitoring, API checks, auto-alerts
content_calendar.py Event awareness, optimal posting times
confidence_scorer.py Rate predictions 1-10, track accuracy
alpha_detector.py Volume spikes, new pairs, on-chain alpha
voice_tuner.py Context-aware personality adjustment
thread_generator.py Auto-generate threads when needed
quote_strategy.py Strategic quote tweeting
analytics.py Performance dashboard, weekly insights

Orchestrator: Central controller coordinating all modules with content recommendations, smart reply decisions, and background learning tasks.

Trading Intelligence

Feature Description
Decision Matrix Multi-signal trade decision framework
Risk Management Position sizing (max 25%), loss limits, circuit breakers
Active Monitoring Stop loss checks every 60 seconds
Emergency Close Auto-closes positions down >90%
Take Profit Detection Auto-closes when TP price is hit
Liquidity Checks Blocks trades on tokens with <$1,000 daily volume
Token Risk Classification ESTABLISHED, MID, MICRO, SHITCOIN tiers
Multi-Source Pricing DexScreener β†’ Jupiter β†’ CoinGecko fallback chain
Circuit Breaker Tracks API health, avoids dead sources

Data & Analytics

Source Purpose
CoinGecko Token metadata, market caps
DeFiLlama Protocol TVL, chain analytics
CoinMarketCap Price feeds, market data
DexScreener Primary price source, liquidity data
Jupiter DEX aggregator, swap execution
Helius Solana RPC, transaction parsing
Bitquery Real-time WebSocket monitoring (bags.fm)
Grok AI (xAI) Sentiment analysis, token scoring

Security & Resilience

Feature Description
Supervisor System Auto-restart with exponential backoff (5s β†’ 300s)
Health Monitoring 60-second interval checks for all components
Anti-Scam Protection Regex-based scam detection, auto-restrict, auto-delete
Encrypted Storage At-rest encryption for sensitive data
Emergency Shutdown Graceful termination system
RBAC System Role-based access control
Admin-Only Trading Treasury trades restricted to authorized users

πŸš€ Quick Start

Prerequisites

  • Python 3.11+
  • Solana CLI (for trading features)
  • PostgreSQL (for semantic memory)
  • Node.js 18+ (for frontend)

Installation

# Clone the repository
git clone https://github.com/Matt-Aurora-Ventures/Jarvis.git
cd Jarvis

# Install Python dependencies
pip install -r requirements.txt

# Set up environment variables
cp .env.example .env
# Edit .env with your API keys

# Initialize the database
python scripts/init_db.py

# Run the supervisor (starts all components)
python bots/supervisor.py

Configuration

Key environment variables:

# Solana
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
TREASURY_LIVE_MODE=true  # Set to false for dry-run testing

# APIs
XAI_API_KEY=your_grok_api_key
TELEGRAM_BOT_TOKEN=your_telegram_token
TWITTER_BEARER_TOKEN=your_twitter_bearer_token
HELIUS_API_KEY=your_helius_api_key
BITQUERY_API_KEY=your_bitquery_api_key

# Database
DATABASE_URL=postgresql://user:pass@localhost:5432/jarvis

# Trading
MAX_POSITIONS=50
LOW_BALANCE_THRESHOLD=0.01
LIFEOS_KILL_SWITCH=false  # Emergency trade halt

Running Components Individually

# Trading bot only
python bots/treasury/trading.py

# Telegram bot only
python tg_bot/bot.py

# Twitter/X bot only
python bots/twitter/autonomous_engine.py

# Sentiment reporter only
python bots/buy_tracker/sentiment_report.py

# Bags Intel monitor only
python bots/bags_intel/bags_intel_bot.py

πŸ“š Documentation & Legacy Docs

Jarvis uses this root README as the canonical source of truth for product narrative, architecture overview, and deployment guidance.

If you encounter older links referencing README_NEW.md or README_BACKUP.md, use the archived copies and defer to this README for current guidance.


πŸ“‚ Repository Map

jarvis/
β”œβ”€β”€ bots/
β”‚   β”œβ”€β”€ supervisor.py              # Main orchestrator
β”‚   β”œβ”€β”€ treasury/                  # Trading engine (Jupiter DEX)
β”‚   β”œβ”€β”€ twitter/                   # X/Twitter bot (autonomous posting)
β”‚   β”œβ”€β”€ buy_tracker/               # KR8TIV token tracking + sentiment
β”‚   β”œβ”€β”€ bags_intel/                # Bags.fm graduation monitoring
β”‚   β”œβ”€β”€ clawdmatt/                 # ClawdBot: Research & analysis agent
β”‚   β”œβ”€β”€ clawdjarvis/               # ClawdBot: Coordination & execution agent
β”‚   β”œβ”€β”€ clawdfriday/               # ClawdBot: Ops & maintenance agent
β”‚   β”œβ”€β”€ clawdyoda/                 # ClawdBot: Strategy & wisdom agent
β”‚   β”œβ”€β”€ clawdsquishy/              # ClawdBot: Monitoring & alerts agent
β”‚   └── shared/                    # 50+ shared modules for all bots
β”‚       β”œβ”€β”€ coordination.py        # Multi-bot coordination protocol
β”‚       β”œβ”€β”€ self_healing.py        # Auto-recovery from failures
β”‚       β”œβ”€β”€ heartbeat.py           # Health monitoring heartbeats
β”‚       β”œβ”€β”€ supermemory_client.py   # Supermemory knowledge graph
β”‚       β”œβ”€β”€ knowledge_graph.py     # Local knowledge graph
β”‚       β”œβ”€β”€ cost_tracker.py        # API cost tracking
β”‚       β”œβ”€β”€ feature_flags.py       # Runtime feature toggles
β”‚       β”œβ”€β”€ campaign_orchestrator.py # Cross-bot campaign management
β”‚       └── ...                    # 40+ more modules
β”‚
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ context_loader.py          # Shared Jarvis context/capabilities
β”‚   β”œβ”€β”€ autonomy/                  # Autonomous intelligence modules
β”‚   β”œβ”€β”€ memory/                    # Learning & memory systems
β”‚   β”œβ”€β”€ security/                  # Key management, encryption
β”‚   β”œβ”€β”€ price/                     # Multi-source price fetching
β”‚   β”œβ”€β”€ risk/                      # Risk management
β”‚   β”œβ”€β”€ cache/                     # API caching with TTL & decorators
β”‚   β”œβ”€β”€ coordination/              # Task handoff & whiteboard
β”‚   β”œβ”€β”€ metrics/                   # Bot metrics & aggregation
β”‚   β”œβ”€β”€ health/                    # Health checker, monitor, reporter
β”‚   β”œβ”€β”€ recovery/                  # Auto-recovery strategies
β”‚   β”œβ”€β”€ scheduler/                 # Task scheduling
β”‚   β”œβ”€β”€ plugins/                   # Plugin system with hooks
β”‚   β”œβ”€β”€ di/                        # Dependency injection container
β”‚   β”œβ”€β”€ integrations/              # Telegram, X/Twitter integrations
β”‚   β”œβ”€β”€ observability/             # Monitoring & tracing
β”‚   β”œβ”€β”€ validation/                # Input validation & sanitization
β”‚   β”œβ”€β”€ notifications/             # Multi-channel notifications
β”‚   β”œβ”€β”€ conversation/              # Session management & context
β”‚   β”œβ”€β”€ audit/                     # Audit logging & retention
β”‚   └── moltbook/                  # Trading journal system
β”‚
β”œβ”€β”€ tg_bot/
β”‚   β”œβ”€β”€ bot.py                     # Main Telegram bot
β”‚   β”œβ”€β”€ handlers/                  # Command handlers
β”‚   └── services/                  # Chat responder, admin tools
β”‚
β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ server.py                  # RESTful API server
β”‚   └── handlers/                  # API endpoints
β”‚
β”œβ”€β”€ jarvis-web-terminal/           # Next.js trading dashboard (NEW)
β”‚   β”œβ”€β”€ src/app/                   # App router pages
β”‚   └── src/components/            # React components
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/                       # React dashboard (legacy)
β”‚   └── components/                # 70+ UI components
β”‚
β”œβ”€β”€ deploy/
β”‚   β”œβ”€β”€ clawdbot-redundancy/       # Multi-bot Docker orchestration
β”‚   β”‚   β”œβ”€β”€ docker-compose.clawdbots.yml  # 5-bot stack
β”‚   β”‚   β”œβ”€β”€ Dockerfile.clawdbot-full      # Production image
β”‚   β”‚   β”œβ”€β”€ entrypoint.sh                 # Health-checked startup
β”‚   β”‚   └── scripts/                      # Self-healing automation
β”‚   β”‚       β”œβ”€β”€ peer-health-monitor.sh    # P2P health checks
β”‚   β”‚       β”œβ”€β”€ circuit-breaker.sh        # Cascading failure prevention
β”‚   β”‚       β”œβ”€β”€ nightly-backup.sh         # Automated backups
β”‚   β”‚       β”œβ”€β”€ brain-export.sh           # Portable brain export
β”‚   β”‚       β”œβ”€β”€ solana-wallet-init.sh     # Wallet initialization
β”‚   β”‚       └── self-evolution-reflect.sh # Nightly self-improvement
β”‚   β”œβ”€β”€ *.service                  # systemd unit files
β”‚   └── install-vps.sh             # VPS setup script
β”‚
β”œβ”€β”€ lifeos/
β”‚   β”œβ”€β”€ config/                    # Configuration files
β”‚   └── jarvis.py                  # LLM provider switch (Ollama support)
β”‚
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ init_db.py                 # Database initialization
β”‚   β”œβ”€β”€ health_check.py            # System health checks
β”‚   β”œβ”€β”€ hetzner_api.ps1            # Hetzner Cloud management
β”‚   └── db/migrate.py              # Schema versioning
β”‚
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ unit/                      # 200+ unit test files
β”‚   β”œβ”€β”€ integration/               # Integration tests
β”‚   └── framework/                 # Test utilities
β”‚
β”œβ”€β”€ deploy.sh                       # VPS deployment + systemd generator
└── kea-research/                   # Research workspace

🧠 The Portable Brain

One of Jarvis's unique features is the Portable Brainβ€”a system that makes your AI context truly portable across devices, platforms, and even other AI systems.

What Is It?

The Portable Brain is:

  • A unified memory format
  • Cross-session context preservation
  • Device-agnostic intelligence
  • Exportable/importable knowledge base

How It Works

# Export your Jarvis brain
from core.memory.portable_brain import BrainExporter

exporter = BrainExporter()
brain_file = exporter.export_brain(user_id="you", output_path="my_jarvis_brain.json")

# Import to another device or system
from core.memory.portable_brain import BrainImporter

importer = BrainImporter()
importer.import_brain(brain_file="my_jarvis_brain.json", target_user="you")

What Gets Preserved

  • Trading preferences and risk tolerance
  • Learned patterns and habits
  • Conversation history and context
  • Model preferences and tuning
  • Trust ladder progress
  • Custom automations

This means:

  • Switch devices seamlessly
  • Backup your AI's knowledge of you
  • Share context with other AI systems (future)
  • Never lose your personalization

πŸ€– ClawdBots Multi-Agent Mesh

Jarvis v4.7 introduces ClawdBots β€” a distributed multi-agent system where specialized AI bots collaborate as a team.

The Agents

Bot Role Specialization
ClawdMatt Research & Analysis Deep research, data analysis, pattern recognition
ClawdJarvis Coordination & Execution Task coordination, command execution, system ops
ClawdFriday Ops & Maintenance Infrastructure monitoring, deployments, fixes
ClawdYoda Strategy & Wisdom Long-term strategy, risk assessment, market wisdom
ClawdSquishy Monitoring & Alerts Real-time monitoring, anomaly detection, alerting

Shared Infrastructure

All ClawdBots share 50+ modules in bots/shared/:

  • Coordination: Multi-bot task handoff, inter-agent protocol, whiteboard
  • Self-Healing: Auto-recovery from failures, circuit breakers, health monitoring
  • Memory: Supermemory knowledge graph, conversation memory, knowledge graph
  • Observability: Heartbeats, cost tracking, logging, metrics
  • Security: Allowlists, command blocklists, anti-hallucination guards

Deployment

# Docker: Deploy all 5 bots
docker compose -f deploy/clawdbot-redundancy/docker-compose.clawdbots.yml up -d

# systemd: Install as services on VPS
sudo bash deploy/install-clawdbots.sh

P2P Self-Healing

Bots monitor each other via peer health checks. If one bot goes down, others detect it and trigger recovery:

  • peer-health-monitor.sh β€” Cross-bot health verification
  • circuit-breaker.sh β€” Prevent cascading failures
  • nightly-backup.sh β€” Automated state backups
  • brain-export.sh / brain-import.sh β€” Portable brain transfer

πŸ’Ή Trading Engine

Jarvis's trading engine is the most mature autonomous system in production today.

Architecture

Market Data β†’ Sentiment Analysis β†’ Signal Generation β†’ Risk Check β†’ Execution β†’ Monitoring

Supported Exchanges

Exchange Integration Status
Jupiter Lite API + Quote API βœ… Live
DexScreener Price oracle βœ… Live
Raydium Direct (planned) πŸ”œ Q2 2026
Orca Direct (planned) πŸ”œ Q2 2026

Strategies

81+ strategies across categories:

Category Count Examples
Momentum 12 RSI divergence, MACD crossover, breakout
Mean Reversion 8 Bollinger bands, oversold bounce
Sentiment 15 Grok AI scoring, social volume spikes
On-Chain 18 Whale tracking, holder distribution
Liquidity 10 Volume analysis, bid/ask spread
Arbitrage 6 Cross-DEX, CEX-DEX
News 12 Event-driven, announcement trading

Risk Management

Position Sizing by Risk Tier

Risk Level Market Cap Liquidity Position Size
ESTABLISHED >$500M >$1M 1.0x (full)
MID >$50M >$100K 0.85x
MICRO >$1M >$20K 0.7x
SHITCOIN <$1M <$20K 0.5x (half)

Stop Loss Rules

Risk Tier Stop Loss Take Profit
ESTABLISHED -15% +30%
MID -12% +25%
MICRO -10% +20%
SHITCOIN -7% +15%

Active Monitoring

  • Check Interval: 60 seconds
  • Emergency Close: Positions down >90%
  • Take Profit: Auto-close when TP hit
  • Admin Alerts: Telegram notifications for all auto-closes

Circuit Breakers

Condition Action
3 consecutive losses Pause trading for 1 hour
Daily loss limit hit (-10%) Halt trading until next day
Low balance (<0.01 SOL) Alert admin, no new positions
API failure Fallback to secondary source

πŸͺ™ Staking System

Earn SOL from Jarvis's trading profits by staking $KR8TIV.

How It Works

  1. Stake $KR8TIV tokens
  2. Trading Profits are collected in the treasury
  3. 75% distributed to stakers proportionally
  4. 5% to charity, 20% to development

Staking Tiers

Tier Minimum Stake APY Range Priority Benefits
Bronze 100 KR8TIV 8-12% Basic alerts
Silver 1,000 KR8TIV 12-18% Advanced analytics
Gold 10,000 KR8TIV 18-25% Early alpha access
Platinum 100,000 KR8TIV 25-35% Custom strategies

Claiming Rewards

# Via Telegram
/claim

# Via API
POST /api/v1/staking/claim
{
  "user_id": "your_telegram_id"
}

πŸ’³ Credit System

For users who don't want to manage crypto, Jarvis offers a credit-based system with fiat payments.

How It Works

  1. Buy Credits with credit card (Stripe integration)
  2. Use Credits for trading, API calls, premium features
  3. Auto-Conversion to SOL happens behind the scenes
  4. No Crypto Knowledge Required

Pricing

Package Credits Price Bonus
Starter 1,000 $10 -
Pro 10,000 $90 +10%
Elite 100,000 $800 +20%

Credit Usage

Action Cost (Credits)
Manual trade 10
API call 1
Premium alert 5
Custom strategy 100
Voice command 2

πŸŽ’ Bags.fm Integration

Real-time monitoring of bags.fm token graduations with automated investment analysis.

What It Does

  • Monitors graduations in real-time via Bitquery WebSocket
  • Analyzes tokens with Grok AI across 5 dimensions
  • Generates intel reports with scoring breakdown
  • Sends to Telegram for immediate review

Scoring Dimensions

Dimension Weight Factors
Bonding Curve 25% Duration, volume, buyer count, buy/sell ratio
Creator 20% Twitter presence, account age, history
Social 15% Linked socials, website quality
Market 25% Liquidity, price stability
Distribution 15% Holder count, concentration

Quality Tiers

Tier Score Recommendation
Exceptional 80+ Strong buy consideration
Strong 65-79 Worth watching
Average 50-64 Neutral
Weak 35-49 Caution
Poor <35 Avoid

Configuration

# Required
BITQUERY_API_KEY=your_bitquery_key

# Reuses existing keys
XAI_API_KEY=your_grok_key
TELEGRAM_BOT_TOKEN=your_telegram_token
TELEGRAM_BUY_BOT_CHAT_ID=your_chat_id

🏦 Treasury Management

The treasury is Jarvis's operational capital pool, managed autonomously with strict risk controls.

Current Treasury

Metric Value
Total Value Check /treasury in Telegram
Max Positions 50
Utilization ~70% (dynamic)
Reserve 30% (for opportunities)

Position Limits

Limit Type Value
Max per position 2% of treasury
Max correlated 10% (same sector)
Max high-risk 20% (MICRO + SHITCOIN combined)
Min liquidity $1,000 daily volume

Rebalancing

  • Daily: Review and rebalance if drift >5%
  • Weekly: Full portfolio audit
  • Monthly: Strategy performance review

Emergency Controls

# Halt all trading
LIFEOS_KILL_SWITCH=true

# Close all positions
/emergency_close (Telegram admin command)

# Withdraw treasury
/withdraw <amount> <address> (requires 2FA)

🧬 Self-Evolution System

Jarvis learns and improves itself through a structured self-evolution system.

The Trust Ladder

Jarvis earns autonomy through successful actions:

Level Autonomy Requirements
0: Supervised None Starting point
1: Assisted Suggest actions 10 successful assists
2: Monitored Execute with confirmation 50 successful executions
3: Autonomous Execute without asking 200 successful actions, 0 major errors
4: Trusted Proactive suggestions 1000 successful actions, high user satisfaction

Learning Loop

Observe β†’ Predict β†’ Act β†’ Measure β†’ Reflect β†’ Improve
  1. Observe: Collect data from actions and outcomes
  2. Predict: Generate hypotheses about what will work
  3. Act: Execute (within permission level)
  4. Measure: Track success metrics (P&L, engagement, accuracy)
  5. Reflect: Nightly analysis of what worked/failed
  6. Improve: Update models, strategies, and behaviors

Memory System

Memory Type Retention Purpose
Short-term 1 day Active context, current tasks
Working 7 days Recent patterns, temp learnings
Long-term Permanent Proven strategies, user preferences
Episodic Permanent Significant events, major decisions

Reflection Cycles

  • Hourly: Performance metrics review
  • Daily: Strategy effectiveness analysis
  • Weekly: User satisfaction survey
  • Monthly: Major architecture review

What Gets Learned

Category Examples
Trading Winning strategies, risk tolerance, market patterns
Communication Response styles, humor effectiveness, tone preferences
Timing Best posting times, optimal trade windows
User Behavior Active hours, command patterns, pain points

πŸ€– Intelligent Model Routing

Jarvis uses multiple AI models optimally routed based on task requirements.

Supported Models

Model Provider Use Cases
GPT-4 Turbo OpenAI Complex reasoning, strategy generation
Claude 3.5 Sonnet Anthropic Code generation, long-context tasks
Grok (xAI) xAI Sentiment analysis, market commentary
LLaMA 3.1 70B Meta (via Ollama) Local inference, privacy-sensitive tasks
Mistral Large Mistral (via Ollama) Fast responses, simple tasks

Routing Logic

if task_type == "trading_decision":
    model = "grok"  # Sentiment-aware
elif task_type == "code_generation":
    model = "claude-3.5-sonnet"  # Best for code
elif task_type == "user_conversation":
    model = "gpt-4-turbo"  # Best general intelligence
elif privacy_required:
    model = "llama-3.1-70b"  # Local, no data leaves device
else:
    model = "mistral-large"  # Fast, cheap fallback

Cost Optimization

Task Model Cost/1M tokens
High-stakes trading GPT-4 Turbo $10
Sentiment analysis Grok $5
Simple responses Mistral $0.20
Local inference LLaMA $0 (compute only)

Ollama Integration

Run models locally with zero API costs:

# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh

# Pull models
ollama pull llama3.1:70b
ollama pull mistral:latest

# Jarvis auto-detects and uses local models

πŸ’¬ Conversation Engine

Jarvis's conversation system is designed to feel natural, context-aware, and proactive.

Personality: "Smart Kid Who's Actually Cool"

  • Tone: Calm, funny, helpful, edgy
  • Style: Clear explanations, no jargon unless needed
  • Humor: Self-aware, never mean
  • Confidence: Admits uncertainty, asks clarifying questions

Voice Bible

Centralized in core/jarvis_voice_bible.py:

VOICE_PRINCIPLES = {
    "be_helpful": "Always prioritize user benefit",
    "be_honest": "Admit mistakes, uncertainty",
    "be_funny": "Humor without cringe",
    "be_clear": "No unnecessary complexity",
    "be_proactive": "Suggest improvements"
}

Context-Aware Tuning

Context Voice Adjustment
Reply to influencer More professional, less edgy
Thread Deeper, more thoughtful
Market update Urgent, action-oriented
User DM Friendly, patient
Error Apologetic, solution-focused

Multi-Platform Consistency

The same voice principles apply across:

  • Telegram messages
  • Twitter/X posts
  • API responses
  • Voice commands
  • Dashboard notifications

πŸ”„ Cross-App Logic Loop

Jarvis runs a continuous logic loop across all platforms, ensuring consistent behavior and shared context.

The Loop

Telegram ↔ Context Engine ↔ Trading ↔ Twitter ↔ Web ↔ API

All components share:

  • User preferences
  • Active positions
  • Market sentiment
  • Recent actions
  • Pending tasks

Example Flow

  1. User asks in Telegram: "What's the market sentiment?"
  2. Context Engine checks recent sentiment runs
  3. If stale: Trigger new analysis
  4. Trading engine provides position context
  5. Twitter bot pulls recent crypto sentiment
  6. Response synthesized from all sources
  7. Sent to Telegram with actionable insights
  8. Logged to memory for future reference

Cross-Platform Commands

Some commands work everywhere:

Command Telegram Voice API Web
/status βœ… βœ… βœ… βœ…
/portfolio βœ… βœ… βœ… βœ…
/sentiment βœ… βœ… βœ… βœ…
Trade execution βœ… βœ… βœ… βœ…

🎀 Voice Control

Control Jarvis hands-free via voice on desktop (macOS/Windows/Linux).

Capabilities

Command Category Examples
Trading "Jarvis, buy 100 KR8TIV", "What's my portfolio?"
Market "What's the sentiment?", "Is BTC bullish?"
System "Show me errors", "Restart the supervisor"
General "What's the weather?", "Set a reminder"

How It Works

  1. Wake word: "Jarvis" or "Hey Jarvis"
  2. Speech-to-text: Local Whisper model (privacy)
  3. Intent classification: Determine command type
  4. Execution: Route to appropriate handler
  5. Text-to-speech: Respond with natural voice

Configuration

# Enable voice control
VOICE_CONTROL_ENABLED=true

# Wake word
VOICE_WAKE_WORD=jarvis

# Voice model
VOICE_MODEL=whisper-medium  # Options: tiny, small, medium, large

🌐 Cross-Platform Support

Jarvis runs on macOS, Windows, and Linux with platform-specific optimizations.

Platform Matrix

Feature macOS Windows Linux
Core Trading βœ… βœ… βœ…
Telegram Bot βœ… βœ… βœ…
Twitter Bot βœ… βœ… βœ…
Voice Control βœ… βœ… βœ…
Web Dashboard βœ… βœ… βœ…
Systemd Service ❌ ❌ βœ…
Launchd Service βœ… ❌ ❌
Windows Service ❌ βœ… ❌

Installation Paths

Platform Config Data Logs
macOS ~/.lifeos/ ~/.lifeos/data/ ~/.lifeos/logs/
Windows %USERPROFILE%\.lifeos\ %USERPROFILE%\.lifeos\data\ %USERPROFILE%\.lifeos\logs\
Linux ~/.lifeos/ ~/.lifeos/data/ /var/log/jarvis/

Docker Support

Run Jarvis in Docker for easy deployment:

# Build
docker build -t jarvis:latest .

# Run
docker run -d \
  --name jarvis \
  -v ~/.lifeos:/root/.lifeos \
  -e TREASURY_LIVE_MODE=true \
  jarvis:latest

πŸ“Š Dashboard & Data Engine

The web dashboard provides real-time visibility into all Jarvis operations.

Dashboard URL

http://localhost:8080

Main Views

View Description
Overview System health, active positions, recent trades
Portfolio Holdings, P&L, performance metrics
Trading Strategy performance, signal history
Sentiment Market sentiment trends, Grok scores
Analytics Deep dives, custom reports
Logs Real-time system logs, error tracking
Config Settings, API keys, risk parameters

70+ UI Components

Category Components
Trading AISuggestions, BacktestDashboard, LiveMarketFeed, TradingChart, StrategyBuilder
DeFi airdrop/, bridge/, defi/, lending/, liquidity/, staking/, yield/
Analytics analytics/, portfolio/, profit/, risk/, roi/
Market correlation/, heatmap/, orderbook/, screener/, sentiment/, volatility/
On-Chain holders/, onchain/, smartmoney/, whale/
Advanced arbitrage/, derivatives/, leverage/, liquidations/, mev/, options/, perpetuals/

Data Engine

Real-time data processing pipeline:

Raw Market Data β†’ Normalization β†’ Storage β†’ Analysis β†’ Dashboard
Stage Technology
Ingestion WebSocket feeds (Bitquery, DexScreener, Helius)
Processing Python async workers
Storage PostgreSQL + TimescaleDB for time-series
Caching Redis (30-second cache for hot data)
Frontend React + WebSocket for real-time updates

πŸ€– Telegram Bot

Full-featured Telegram interface: @Jarviskr8tivbot

Core Commands

Command Description
/start Initialize bot, show main menu
/help Command reference
/status System health, uptime
/portfolio View holdings, P&L
/sentiment Latest market sentiment
/trade <token> Execute trade (admin only)
/positions Active positions with health status
/close <id> Close position by ID
/claim Claim staking rewards
/stats Performance statistics

Admin Commands

Command Description
/emergency_close Close all positions immediately
/kill_switch Halt all trading
/logs Recent error logs
/restart <component> Restart specific component
/config View/modify configuration

Interactive Features

  • Inline keyboards: Button-based navigation
  • Live updates: Real-time position monitoring
  • Sentiment reports: Hourly Grok analysis with trade buttons
  • Bags Intel: Graduation alerts with quality scores
  • Chart generation: On-demand price charts

Anti-Scam Protection

Feature Description
Pattern Detection Regex-based scam phrase detection
Auto-Restrict Automatically restricts detected scammers
Auto-Delete Removes scam messages instantly
Admin Alerts Notifies admins of detected threats
Unban Command /unban to restore false positives

πŸ’Ό Standalone Wallet

Jarvis includes a standalone wallet module for secure key management and transaction signing.

Features

Feature Description
Multi-Key Support Manage multiple Solana wallets
Encrypted Storage AES-256 encryption at rest
Hardware Wallet Ledger integration (future)
Transaction Signing Sign and send transactions
Balance Tracking Real-time SOL and token balances

Usage

from core.security.key_manager import KeyManager

# Initialize
km = KeyManager()

# Create new wallet
wallet = km.create_wallet(name="Trading Wallet")

# Load existing
wallet = km.load_wallet(name="Trading Wallet")

# Sign transaction
signed_tx = wallet.sign_transaction(tx)

Security

  • Private keys never leave the device
  • Encrypted with user-provided passphrase
  • Optional 2FA for high-value transactions
  • Transaction simulation before signing

πŸ”Œ Current Integrations

Jarvis integrates with 18+ external services:

Service Purpose Status
Jupiter DEX aggregator, swap execution βœ… Live
Helius Solana RPC, tx parsing βœ… Live
DexScreener Price feeds, liquidity data βœ… Live
CoinGecko Token metadata, market caps βœ… Live
Grok (xAI) Sentiment analysis, AI scoring βœ… Live
Bitquery Real-time WebSocket monitoring βœ… Live
Telegram Bot interface, alerts βœ… Live
Twitter/X Autonomous posting, engagement βœ… Live
PostgreSQL Semantic memory, state βœ… Live
Stripe Fiat payment processing πŸ”œ Q2 2026
Discord Community bot (future) πŸ”œ Q2 2026

MCP Integrations

18 Model Context Protocols configured:

MCP Purpose
ast-grep 20x faster code pattern search
nia Instant SDK/API documentation
firecrawl Website scraping
postgres Direct semantic memory queries
perplexity Real-time web research
filesystem File operations
git Version control
github Repository management
sqlite Local database queries
memory Knowledge graph storage

πŸš€ Future Platforms

Jarvis is designed for multi-platform expansion:

Q2 2026

  • iOS App: Native mobile experience
  • Android App: Full feature parity with iOS
  • Discord Bot: Community engagement, trading
  • Slack Integration: Workplace notifications

Q3 2026

  • Browser Extension: Chrome, Firefox, Edge
  • Desktop App: Electron-based standalone
  • CLI Tool: Command-line interface for power users

Q4 2026

  • Smart Home: Alexa, Google Home integration
  • Wearables: Apple Watch, Fitbit notifications
  • AR/VR: Meta Quest, Vision Pro (experimental)

2027+

  • Vehicle Integration: Tesla, CarPlay, Android Auto
  • IoT Devices: Smart displays, security systems
  • Robotics: Home assistant robots (experimental)

πŸ“‘ API Reference

RESTful API for third-party integrations.

Base URL

https://api.jarvis.lifeos.ai/v1

Authentication

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.jarvis.lifeos.ai/v1/status

Core Endpoints

System

GET  /status              # System health
GET  /version             # API version
GET  /config              # Configuration (admin)
POST /shutdown            # Graceful shutdown (admin)

Trading

GET  /portfolio           # Current portfolio
GET  /positions           # Active positions
POST /trade               # Execute trade
POST /close/{id}          # Close position
GET  /strategies          # Available strategies
GET  /performance         # Trading stats

Sentiment

GET  /sentiment/current   # Latest sentiment
GET  /sentiment/history   # Historical data
POST /sentiment/analyze   # Analyze custom token

Staking

GET  /staking/balance     # Staked amount
POST /staking/stake       # Stake tokens
POST /staking/unstake     # Unstake tokens
POST /staking/claim       # Claim rewards
GET  /staking/rewards     # Unclaimed rewards

User

GET  /user/profile        # User profile
PUT  /user/preferences    # Update preferences
GET  /user/history        # Action history
GET  /user/stats          # User statistics

Rate Limits

Tier Requests/min Burst
Free 60 10
Pro 600 100
Enterprise Unlimited Unlimited

Webhooks

Subscribe to events:

POST /webhooks
{
  "url": "https://your-domain.com/webhook",
  "events": ["trade.executed", "position.closed", "alert.triggered"]
}

πŸ—οΈ Architecture Deep Dive

High-Level Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     User Interfaces                          β”‚
β”‚  Telegram β”‚ Web Dashboard β”‚ Voice β”‚ API β”‚ Mobile (future)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Context Engine                            β”‚
β”‚  - Unified state management                                  β”‚
β”‚  - Cross-platform synchronization                            β”‚
β”‚  - User preferences & patterns                               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Intelligence Layer                          β”‚
β”‚  GPT-4 β”‚ Claude β”‚ Grok β”‚ LLaMA (local) β”‚ Model Router       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Action Domains                            β”‚
β”‚  Trading β”‚ Social β”‚ Productivity β”‚ Devices (future)          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   External Integrations                      β”‚
β”‚  Solana β”‚ Jupiter β”‚ Helius β”‚ Grok β”‚ APIs                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Component Interaction

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Supervisor  β”‚ ◄────── Health Checks ──────┐
β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                              β”‚
       β”‚                                      β”‚
       β”œβ”€β”€β–Ί Buy Bot (KR8TIV tracking)        β”‚
       β”œβ”€β”€β–Ί Sentiment Reporter (Grok)        β”‚
       β”œβ”€β”€β–Ί Twitter Bot (autonomous)     β”€β”€β”€β”€β”˜
       β”œβ”€β”€β–Ί Telegram Bot (UI)
       β”œβ”€β”€β–Ί Bags Intel (graduations)
       └──► Trading Engine (treasury)
                  β”‚
                  β”œβ”€β”€β–Ί Position Manager
                  β”œβ”€β”€β–Ί Risk Manager
                  β”œβ”€β”€β–Ί Execution Engine (Jupiter)
                  └──► Performance Tracker

Data Flow: Trading Decision

1. Market Data Ingestion
   β”œβ”€β–Ί DexScreener (price)
   β”œβ”€β–Ί Helius (on-chain)
   └─► Grok (sentiment)

2. Signal Generation
   β”œβ”€β–Ί 81+ strategies evaluate
   └─► Consensus scoring

3. Risk Check
   β”œβ”€β–Ί Position limits
   β”œβ”€β–Ί Liquidity check
   β”œβ”€β–Ί Risk tier classification
   └─► Circuit breaker state

4. Execution
   β”œβ”€β–Ί Jupiter quote
   β”œβ”€β–Ί Transaction building
   β”œβ”€β–Ί Signing (local wallet)
   └─► Submission (Helius RPC)

5. Monitoring
   β”œβ”€β–Ί Position tracking
   β”œβ”€β–Ί Stop loss checks (60s interval)
   └─► Performance logging

6. Learning
   β”œβ”€β–Ί Outcome recorded
   β”œβ”€β–Ί Strategy performance updated
   └─► Memory stored for future

Distributed Multi-Agent Architecture

For production scaling beyond a single server, Jarvis includes a distributed multi-agent architecture designed to scale from a single 32GB VPS to multi-node clusters serving millions of users.

Key Features:

  • LangGraph supervisor for agent orchestration with human-in-the-loop approval
  • NATS JetStream for sub-millisecond inter-agent messaging
  • Ollama + LiteLLM for local inference with cloud failover (Groq β†’ OpenRouter)
  • Hybrid storage: Redis (hot state), Qdrant (vector memory), PostgreSQL (persistent data)
  • Horizontal scaling: Phase 1 (1 VPS, 9-30 agents) β†’ Phase 4 (Multi-cloud, 100+ agents)
  • Cost-efficient: $70-100/month Phase 1 β†’ $1,500/month at 1M users ($0.0015/user)

Scaling Phases:

Phase Timeline Infrastructure Users Cost/Month
1: Single VPS Now-6mo 32GB/8vCPU Hostinger 1K-10K $70-100
2: Dual VPS 6-12mo 2Γ— VPS + k3s + Redis Cluster 10K-50K $85-130
3: Multi-Node 12-18mo 3-5 VPS + Managed DB + Qdrant Cloud 50K-200K $150-300
4: Cloud Hybrid 18mo+ VPS + Cloud Burst + Serverless 200K-1M+ $300-1K

Architecture Highlights:

  • 30-60 LLM requests/min locally with sub-second latency for critical trading
  • 80%+ cache hit rate for common queries
  • Exactly-once delivery for trading signals via NATS JetStream
  • Circuit breakers and retry policies for fault tolerance
  • Multi-tenant isolation via PostgreSQL RLS and Redis key prefixing

For complete details on the distributed architecture, including deployment configurations, resource allocation, failover strategies, and implementation timeline, see:

πŸ“„ Distributed Multi-Agent Architecture


🧠 MCP & Semantic Memory System

What Is MCP?

Model Context Protocol (MCP) is a standardized way for AI models to access external data sources, tools, and services.

Jarvis uses 18 configured MCPs to:

  • Access semantic memory (100+ learnings)
  • Query databases directly
  • Search code patterns
  • Fetch API documentation
  • Research web data in real-time

Memory Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Semantic Memory Store                   β”‚
β”‚  PostgreSQL (continuous_claude database)             β”‚
β”‚  - 100+ learnings with BGE embeddings                β”‚
β”‚  - 1024-dim vectors (bge-large-en-v1.5)             β”‚
β”‚  - Full-text search + vector similarity              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Memory Importer (auto_import.py)           β”‚
β”‚  - Syncs PostgreSQL β†’ Local SQLite                   β”‚
β”‚  - Generates JSONL for MCP server                    β”‚
β”‚  - Confidence ranking, topic filtering               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Memory MCP Server                       β”‚
β”‚  - CLI: /recall skill in Claude Code                 β”‚
β”‚  - API: Python queries via MemoryImporter            β”‚
β”‚  - Search: Semantic + text-based                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Query Examples

from core.memory.auto_import import MemoryImporter

importer = MemoryImporter()

# Search by content
results = importer.search_imported_memories(
    query="trading strategy",
    limit=10
)

# Filter by confidence
high_confidence = importer.search_imported_memories(
    query="risk management",
    confidence_threshold=0.8
)

# Get statistics
stats = importer.get_memory_stats()
# Returns: {total: 105, by_type: {...}, by_confidence: {...}}

Learning Types

Type Use For
ARCHITECTURAL_DECISION Design choices, system structure
WORKING_SOLUTION Fixes that worked
CODEBASE_PATTERN Patterns discovered in code
FAILED_APPROACH What didn't work (avoid repeating)
ERROR_FIX How specific errors were resolved
USER_PREFERENCE User's preferred approaches
OPEN_THREAD Incomplete work to resume later

βš™οΈ Configuration

Environment Variables

Full reference: .env.example

Critical Settings

# Trading (REQUIRED for live trading)
TREASURY_LIVE_MODE=true
LIFEOS_KILL_SWITCH=false
MAX_POSITIONS=50
LOW_BALANCE_THRESHOLD=0.01

# Solana (REQUIRED)
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com
HELIUS_API_KEY=your_helius_key

# Trading APIs (REQUIRED)
XAI_API_KEY=your_grok_key

# Social (REQUIRED for bots)
TELEGRAM_BOT_TOKEN=your_telegram_token
TELEGRAM_BUY_BOT_CHAT_ID=your_chat_id
TWITTER_BEARER_TOKEN=your_twitter_token
JARVIS_ACCESS_TOKEN=your_twitter_oauth

# Database (REQUIRED for memory)
DATABASE_URL=postgresql://user:pass@localhost:5432/jarvis

# Optional but Recommended
BITQUERY_API_KEY=your_bitquery_key  # For bags.fm
COINGECKO_API_KEY=your_coingecko_key  # For metadata

Feature Flags

# Enable/disable components
X_BOT_ENABLED=true
TELEGRAM_BOT_ENABLED=true
VOICE_CONTROL_ENABLED=false
WEB_DASHBOARD_ENABLED=true

# Safety features
REQUIRE_ADMIN_FOR_TRADES=true
ENABLE_CIRCUIT_BREAKERS=true
ENABLE_STOP_LOSS_MONITORING=true

πŸš€ Deployment

Production Deployment

Systemd Service (Linux)

# Recommended: run the automated deploy script (creates systemd units)
sudo bash deploy.sh

# Or enable services created by deploy.sh
sudo systemctl enable jarvis-supervisor
sudo systemctl start jarvis-supervisor
sudo systemctl enable jarvis-twitter jarvis-telegram

# Check status
sudo systemctl status jarvis-supervisor

# View logs
sudo journalctl -u jarvis-supervisor -f

deploy.sh generates the systemd unit files in /etc/systemd/system/ for jarvis-supervisor, jarvis-twitter, and jarvis-telegram. If you prefer a manual setup, use deploy.sh as the source of truth for unit definitions.

Docker Deployment

# Build image
docker build -t jarvis:4.6.5 .

# Run with docker-compose
docker-compose up -d

# Check logs
docker-compose logs -f

VPS Deployment

Recommended specs:

  • CPU: 4+ cores
  • RAM: 8GB+
  • Storage: 50GB+ SSD
  • Network: 100Mbps+
# Install dependencies
sudo apt update
sudo apt install -y python3.11 postgresql redis-server

# Clone and setup
git clone https://github.com/Matt-Aurora-Ventures/Jarvis.git
cd Jarvis
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Initialize database
python scripts/init_db.py

# Start supervisor
python bots/supervisor.py

Monitoring

Health Checks

# System health
curl http://localhost:8080/health

# Component status
curl http://localhost:8080/api/v1/status

# Metrics (Prometheus format)
curl http://localhost:8080/metrics

Log Locations

Component Log Path
Supervisor logs/supervisor.log
Trading logs/trading.log
Telegram logs/telegram.log
Twitter logs/twitter.log
Bags Intel logs/bags_intel.log

πŸ“‹ Recent Updates

πŸš€ v4.6.6 - January 27, 2026

Self-Healing Resilience System & Cost Optimization

CRITICAL FIX: Bot Never Crashes When APIs Fail + 90% Cost Savings

New Resilient Provider Chain:

  • Circuit breaker pattern with automatic failover
  • Provider states: HEALTHY β†’ DEGRADED β†’ FAILED β†’ RECOVERING
  • Graceful degradation messages (never crashes)
  • Background health monitoring with auto-recovery
  • 3 failure threshold β†’ circuit opens, 60s recovery timeout

Cost Optimization (Per User Request): NEW Priority Order:

  1. Dexter (FREE via Claude CLI) - Default for Telegram βœ…
  2. Ollama (FREE, local) - Works offline
  3. XAI/Grok (PAID) - Sentiment analysis only
  4. Groq (FREE tier) - Backup for code/chat
  5. OpenRouter (PAID) - Last resort

Savings: 90-95% cost reduction (from ~$5-10/day β†’ ~$0.25-0.50/day)

EU/GDPR Silent Handling:

  • GDPR notifications no longer logged as errors
  • Rate limit auto-retry with 30s backoff
  • Network errors handled gracefully
  • safe_reply() and safe_edit() helpers

New Telegram Commands:

  • /health - Show provider health status
  • /vibe <query> - AI chat with resilient fallback

Files Added:

  • core/resilient_provider.py - Provider chain with circuit breakers
  • core/provider_health_monitor.py - Background health monitoring
  • tg_bot/middleware/resilient_errors.py - EU/GDPR & error handling
  • tg_bot/handlers/commands/health_command.py - Provider status
  • tg_bot/handlers/commands/vibe_command.py - Resilient AI chat
  • RESILIENCE_IMPLEMENTATION_GUIDE.md - Full integration guide

Expected Behavior:

  • XAI down β†’ automatic fallback to Ollama (FREE, still works!)
  • EU notifications β†’ silently handled
  • Network timeouts β†’ graceful retry
  • 100% uptime guarantee with graceful degradation

πŸš€ v4.6.5 - January 21, 2026

V1 Stabilization & Critical Bug Fixes

Critical Telegram Bot Fix:

  • Fixed infinite loop on Windows caused by duplicate lock acquisition
  • Root cause: msvcrt.locking doesn't allow same process to lock file twice
  • Bot was attempting lock at lines 228 AND 330
  • Solution: Removed redundant acquire_instance_lock() call

Sentiment State Persistence:

  • Moved record_sentiment_run() BEFORE Telegram posting
  • State now saved even if downstream posting fails
  • Prevents re-running sentiment on restart

Admin Check Fix:

  • Fixed forward reference bug in bot_core.py
  • DEFAULT_ADMIN_USER_ID now defined at top of file (line 123)
  • Previously caused runtime errors (referenced at line 372, defined at line 2623)

Error Tracking Integration:

  • tg_bot/handlers/__init__.py integrated with @error_handler decorator
  • bots/supervisor.py now has track_supervisor_error() helper
  • Coverage: ~20% of handlers, growing

New Features:

  • Bags.fm Trade Adapter: Partner fee earning on trades
  • Bags Intel Service: bags.fm graduation monitoring
  • Dexter Sentiment: CLI interface for sentiment queries

πŸš€ v4.6.4 - January 17, 2026

Enterprise Memory & MCP Enhancement

18 Model Context Protocols Configured:

  • ast-grep: 20x faster code pattern search
  • nia: Instant SDK/API documentation
  • firecrawl: Website scraping for market data
  • postgres: Direct semantic memory queries
  • perplexity: Real-time web research

Automated Memory Import System:

  • Source: PostgreSQL continuous_claude database (100+ learnings)
  • Storage: Local SQLite + JSONL for MCP server
  • Access: Python API + CLI + /recall skill
  • Search: Confidence-ranked, topic-filtered, semantic matching

New Files:

  • MEMORY_QUERY_GUIDE.md - 50+ query examples
  • MCP_SETUP_SUMMARY.md - Complete system documentation
  • core/memory/auto_import.py - Memory import engine (398 lines)
  • scripts/verify_mcp_setup.py - Setup verification tool

What This Enables:

  • βœ“ No knowledge loss between sessions
  • βœ“ Cross-session learning & pattern discovery
  • βœ“ 20x faster code search (ast-grep)
  • βœ“ Instant API documentation (nia)
  • βœ“ Real-time market research (perplexity + firecrawl)
  • βœ“ Semantic memory queries with 100+ learnings indexed

πŸ“š Change History & Traceability

Full changelog: CHANGELOG.md

Version History

Version Date Highlights
4.7.0 Feb 5, 2026 ClawdBots multi-agent mesh, P2P self-healing, Supermemory integration, Docker orchestration, 50+ shared modules, web terminal
4.6.6 Jan 27, 2026 Provider chain failover, model routing improvements
4.6.5 Jan 21, 2026 V1 stabilization, critical bug fixes
4.6.4 Jan 17, 2026 18 MCPs, semantic memory system
4.6.2 Jan 2026 Async performance, SQLite management
4.6.1 Jan 2026 Active stop loss monitoring
4.6.0 Jan 2026 Autonomous intelligence, 7750+ LOC
4.5.0 Jan 2026 Bot supervisor, anti-scam
4.4.0 Jan 2026 Complete autonomy system

πŸ—ΊοΈ Roadmap

Q1 2026 βœ… (Complete)

  • βœ… Autonomous trading engine (81+ strategies)
  • βœ… Telegram bot with admin controls
  • βœ… Twitter/X autonomous posting
  • βœ… Semantic memory system (100+ learnings)
  • βœ… 18 MCP integrations
  • βœ… Bags.fm graduation monitoring
  • βœ… Self-evolution system with trust ladder
  • βœ… ClawdBots multi-agent mesh (5 specialized bots)
  • βœ… Peer-to-peer self-healing infrastructure
  • βœ… Docker orchestration for multi-bot deployment
  • βœ… Supermemory knowledge graph integration
  • βœ… 50+ shared modules (coordination, self-healing, cost tracking)
  • βœ… Next.js trading terminal (jarvis-web-terminal)
  • βœ… Solana wallet initialization scripts

Q2 2026 (In Progress)

  • πŸ”„ iOS & Android apps
  • πŸ”„ Discord bot integration
  • πŸ”„ Fiat payment processing (Stripe)
  • πŸ”„ Multi-wallet support
  • πŸ”„ Advanced backtesting dashboard
  • πŸ”„ Custom strategy builder (no-code)

Q3 2026 (Planned)

  • Productivity Domain: Calendar, email, task automation
  • Communication Domain: Multi-platform messaging integration
  • Device Control: Smart home integration (Alexa, Google Home)
  • Voice Expansion: Multi-language support
  • Browser Extension: Chrome, Firefox, Edge

Q4 2026 (Planned)

  • Wearables: Apple Watch, Fitbit integration
  • Vehicle Integration: Tesla, CarPlay, Android Auto (experimental)
  • AR/VR: Meta Quest, Vision Pro (experimental)
  • Robotics: Home assistant robots (research phase)

2027+ (Vision)

  • Universal Assistant: Multi-domain intelligence (financial, health, productivity, social)
  • Predictive Actions: Anticipate needs before you ask
  • Complete Ecosystem: Your entire digital life, optimized and automated
  • Physical Integration: Seamless interaction with real-world devices and systems

πŸ‘₯ Community

Official Channels

Token

  • Symbol: $KR8TIV
  • Blockchain: Solana
  • Use Cases: Staking, governance, premium features
  • Distribution: 75% holders, 5% charity, 20% development

❓ FAQ

General

Q: Do I need to know crypto to use Jarvis? A: No. You can use the credit system with fiat payments (credit card via Stripe). Jarvis handles all crypto operations behind the scenes.

Q: Is Jarvis free? A: Yes. The core system is open-source and free. Premium features (custom strategies, advanced analytics) require $KR8TIV staking or credit purchases.

Q: Does Jarvis send my data to third parties? A: Only what's necessary for operations (e.g., trades to Jupiter, sentiment to Grok). You can run local models (LLaMA via Ollama) for complete privacy. Your personal data never leaves your device.

Q: Can I run Jarvis locally? A: Yes. Jarvis runs on macOS, Windows, and Linux. You can even run it fully offline with local models (no internet required except for trading).

Trading

Q: How much can I start with? A: Minimum 0.1 SOL recommended. Treasury starts trading with 1+ SOL.

Q: What's the expected return? A: Past performance is not indicative of future results. Jarvis is designed to outperform holding, but crypto is volatile. Always risk what you can afford to lose.

Q: How does risk management work? A: Multi-layered:

  • Max position size: 2% of treasury
  • Risk-based position sizing (ESTABLISHED β†’ SHITCOIN)
  • Active stop loss monitoring (60s interval)
  • Circuit breakers on consecutive losses
  • Emergency close for positions down >90%

Q: Can I customize strategies? A: Yes. Gold/Platinum stakers can create custom strategies. Full no-code strategy builder coming Q2 2026.

Technical

Q: What languages is Jarvis written in? A: Python (backend), TypeScript/React (frontend), Solidity-like (Solana programs).

Q: Can I contribute? A: Yes! See CONTRIBUTING.md. We welcome:

  • Bug reports
  • Feature requests
  • Code contributions
  • Documentation improvements

Q: What databases does Jarvis use? A: PostgreSQL (main), SQLite (local cache), Redis (hot cache), TimescaleDB (time-series).

Q: Does Jarvis work on Raspberry Pi? A: Not officially supported, but possible for monitoring/alerts. Trading requires more compute.


🀝 Contributing

We welcome contributions from the community!

How to Contribute

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run tests: pytest tests/
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Code Standards

  • Python: PEP 8, type hints, docstrings
  • TypeScript: ESLint, Prettier
  • Tests: 80%+ coverage for new code
  • Documentation: Update README/docs for user-facing changes

Areas We Need Help

Area Description
Trading Strategies New signal generation logic
UI/UX Dashboard improvements
Documentation Guides, tutorials, translations
Testing Unit tests, integration tests
DevOps Deployment scripts, monitoring

πŸ” Security

Reporting Vulnerabilities

Do NOT open public issues for security vulnerabilities.

Email: security@lifeos.ai

Include:

  • Description of vulnerability
  • Steps to reproduce
  • Potential impact
  • Suggested fix (if any)

We aim to respond within 24 hours.

Security Best Practices

  • Private keys: Never commit or share private keys
  • API keys: Use environment variables, never hardcode
  • 2FA: Enable for high-value operations
  • Regular updates: Keep dependencies up to date
  • Audit logs: Review system logs regularly
  • Secret scan: Run python scripts/secret_scan_staged.py before pushes (last run: Jan 25, 2026)

πŸ“„ License

MIT License

Copyright (c) 2026 Matt Aurora Ventures

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Jarvis: A persistent, personal context engine.
Starting with crypto. Building toward everything.

Twitter β€’ Telegram β€’ GitHub

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 77.9%
  • TypeScript 10.5%
  • JavaScript 8.5%
  • Shell 1.5%
  • CSS 0.5%
  • HTML 0.5%
  • Other 0.6%