MAYROS β€” Your AI Agent, Everywhere

The world's first semantic agent framework with verifiable intelligence.

MAYROS is a personal AI agent that runs on your devices, answers on your messaging channels, and proves what it knows. Built on AIngle's cryptographic semantic layer, MAYROS doesn't just generate text β€” it stores, reasons over, and cryptographically proves facts. It is the natural evolution of AI assistants: from black-box chatbots to accountable, multi-device, multi-channel intelligent agents.


Why MAYROS Exists

Every AI assistant today has the same fundamental problem: you can't verify what it knows.

ChatGPT tells you something. You trust it β€” or you don't. There's no proof, no audit trail, no way to verify that Fact A was derived from Evidence B using Rule C. When AI agents start making real-world decisions β€” approving transactions, verifying identities, managing infrastructure β€” "trust me" isn't good enough.

MAYROS solves this with Proof-of-Logic: every fact your agent stores is a cryptographically signed RDF triple in a semantic knowledge graph. Every inference is a verifiable derivation chain. Every sensitive value can be committed and proven in zero knowledge. Your agent doesn't just say things β€” it proves them.


The Architecture

                         You
                          |
          +-----------+---+---+-----------+
          |           |       |           |
       WhatsApp   Telegram  Slack     Discord    ... 20+ channels
          |           |       |           |
          +-----+-----+-------+-----+-----+
                |                     |
         MAYROS Gateway (Node.js)    AIngle Cortex (Rust)
         WebSocket + HTTP            REST / GraphQL / SPARQL
         Agent Engine                RDF Triple Store
         Tool Registry               Rule Engine
         Plugin System               ZK Proofs
         Session Manager             Neural Memory (STM/LTM)
                |                     |
    +-----------+-----------+---------+---------+
    |           |           |         |         |
  macOS       iOS        Android    Docker    IoT Nodes
  (native)   (native)   (native)   (server)  (aingle_minimal)

MAYROS is a gateway + node architecture. One machine runs the gateway β€” the brain. Every other device connects as a node, exposing its capabilities (camera, GPS, screen, sensors) to the agent. Messages flow in from any channel, the agent processes them with full tool access, and responses flow back β€” all in real time.


Runs Everywhere

20+ Messaging Channels

Your agent lives where you already communicate. No new app to install for your users:

CategoryChannels
ConsumerWhatsApp, Telegram, iMessage, Signal, LINE, Zalo
EnterpriseSlack, Microsoft Teams, Google Chat, Mattermost
CommunityDiscord, IRC, Twitch, Matrix, Nostr
RegionalFeishu/Lark, Zalo, Nextcloud Talk, Tlon/Urbit
NativeBlueBubbles (Apple Messages proxy)

Every channel is a first-class plugin. Adding a new channel is implementing one interface. Messages from all channels converge in a single agent session β€” start a conversation on Telegram, continue it on Slack, approve an action from your Apple Watch.

Native Apps

PlatformTechnologyHighlights
macOSSwift 6 + AppKit/SwiftUIMenu bar agent, local gateway host, Tailscale wide-area networking, WebChat panel, exec approval dialogs, voice wake
iOSSwift 6 + SwiftUICamera, GPS, contacts, calendar, reminders, screen recording, voice wake, APNs push-wake, Live Activities
Apple WatchWatchKitApproval prompts on the wrist β€” approve agent actions with a tap
AndroidKotlin + Jetpack ComposeCamera, SMS, GPS, canvas, voice wake with on-device speech recognition, foreground service for always-on

Server Deployment

ModeDescription
Dockermayros-gateway + mayros-cli containers. Optional browser sandbox with Chromium + VNC
Bare metalNode.js 22+ on Linux/macOS/Windows (WSL2)
TailscaleOne command to expose your gateway securely across the internet β€” no port forwarding, no DNS config

IoT / Edge

The IoT Bridge extension connects MAYROS agents to AIngle Minimal edge nodes β€” lightweight Rust binaries running on embedded hardware. Agents can:

  • Query sensor data from a fleet of up to 50 IoT nodes
  • Publish structured observations (temperature, humidity, motion, etc.)
  • Manage fleet health with per-node circuit breakers and background polling
  • Content-address all sensor readings in a DAG store

20+ AI Providers

MAYROS supports the widest range of AI providers of any self-hosted agent framework:

CategoryProviders
FrontierAnthropic (Claude Opus/Sonnet), OpenAI (GPT-4), Google (Gemini 3 Pro/Flash)
EnterpriseAmazon Bedrock (multi-region auto-discovery), GitHub Copilot, Cloudflare AI Gateway
Chinese AIMiniMax, Moonshot/Kimi, Qwen, VolcEngine/BytePlus, Xiaomi Mimo, Baidu Qianfan
Open SourceOllama (auto-discovers all local models), vLLM, Together AI, HuggingFace, Venice AI

Auth profile rotation: Configure multiple API keys per provider. MAYROS round-robins across them with cooldown-aware failover β€” if one key hits rate limits, the next one picks up instantly.

Model failover: If Claude is down, fall back to Gemini. If Gemini is down, fall back to a local Ollama model. Configurable fallback chains with automatic recovery.


The Semantic Layer: AIngle

What makes MAYROS fundamentally different from every other AI agent framework is AIngle β€” a purpose-built Rust semantic computation engine that runs as a sidecar to the gateway.

RDF Knowledge Graph (aingle_graph)

Every fact your agent learns is stored as an (Subject, Predicate, Object) triple with rich metadata:

  • Content-addressed: Every triple has a BLAKE3 hash ID. The same fact always has the same ID β€” globally deduplicated by construction
  • Provenance tracking: Who asserted this fact, when, with what confidence, and is it cryptographically signed?
  • Triple indexing: SPO, POS, and OSP indexes enable O(log n) queries on any axis
  • W3C standard: Import/export Turtle and N-Triples. Query with SPARQL 1.1. Interoperate with any semantic web toolchain
  • Storage backends: In-memory, Sled (embedded ACID), RocksDB (high-throughput), SQLite
sparql
SELECT ?agent ?capability ?confidence WHERE {
  ?agent mayros:hasCapability ?capability .
  ?agent mayros:confidence ?confidence .
  FILTER (?confidence > 0.8)
}

Proof-of-Logic Engine (aingle_logic)

Goes beyond signature verification. The rule engine validates the logical consistency of knowledge:

  • Forward chaining: Data-driven inference to fixpoint β€” derive all possible facts from rules
  • Backward chaining: Goal-driven Prolog-style reasoning with proof trees
  • Rule types: Integrity constraints, authority rules, temporal constraints, inference rules
  • Verifiable derivations: Every inferred fact comes with a ProofStep chain showing exactly which rules and base facts produced it
Rule: "If agent has KYC level >= 2 AND is in approved jurisdiction,
       THEN agent is verified for financial operations"

Result: {
  proven: true,
  proof: [
    { rule: "kyc-level-check",  triple: "agent:alice kyc:level 3" },
    { rule: "jurisdiction-check", triple: "agent:alice geo:jurisdiction US" },
    { rule: "financial-verify",  triple: "agent:alice fin:verified true" }
  ]
}

This is Proof-of-Logic β€” not just "this was signed" but "this was derived from these rules applied to these verified facts."

Zero-Knowledge Proofs (aingle_zk)

Privacy-preserving cryptography on Curve25519/Ristretto with 128-bit security:

PrimitiveWhat It ProvesUse Case
Pedersen CommitmentsValue is committed without revealing it; supports homomorphic additionConfidential agent state, budget tracking
Schnorr ProofsKnowledge of a secret without revealing itAgent identity, capability attestation
Equality ProofsTwo commitments hide the same valueCross-agent consistency verification
Merkle MembershipElement is in a set without revealing the setPermission verification, group membership
Sparse Merkle Non-MembershipElement is NOT in a setBlocklist verification
Bulletproof Range ProofsValue is in [0, 2^n) without revealing itAge verification, credit score thresholds

Batch verification: 4x speedup for Schnorr proofs using random linear combination. Verify hundreds of proofs in the time it takes to verify a few dozen individually.

Cognitive Memory (titans_memory)

Inspired by human episodic vs. semantic memory:

  • Short-Term Memory (STM): Fast, bounded, attention-weighted with decay. Important facts float to the top; irrelevant ones fade
  • Long-Term Memory (LTM): Persistent knowledge graph with entities, typed links, and semantic embeddings for meaning-based recall
  • Automatic Consolidation: Importance-scored, similarity-aware transfer from STM to LTM. Your agent doesn't forget β€” it prioritizes
  • Two modes: agent_mode (full capacity for desktop/server) and iot_mode (minimal footprint for edge devices)

AIngle Cortex β€” The API Surface

Everything above is exposed through one sidecar process with three API surfaces:

  • REST API (/api/v1/) β€” triples CRUD, pattern queries, proof validation, memory operations, skill verification, reputation scoring
  • GraphQL (/graphql) β€” full schema with queries, mutations, and live subscriptions for real-time triple changes
  • SPARQL (/sparql) β€” W3C SPARQL 1.1 compliant endpoint for standard semantic web queries
  • WebSocket events β€” real-time notifications: TripleAdded, TripleDeleted, ValidationCompleted

Cortex includes JWT-based RBAC authentication, IP-based rate limiting, namespace-scoped multi-tenancy, and a tamper-evident JSONL audit log.


The Agent Engine

Multi-Agent Mesh

MAYROS agents don't work alone. The Agent Mesh extension enables:

  • Knowledge sharing: Agents push and pull RDF triples across namespaces with ACL enforcement
  • Delegation: Parent agents spawn child agents with semantic context β€” relevant triples and memories are automatically injected
  • Knowledge fusion: Merge namespaces using 5 strategies: additive, replace, conflict-flag, newest-wins, majority-wins (voting across multiple agents)
  • Conflict detection: Identify contradicting facts between agent namespaces before merging
  • Namespace ACL: Read/write/admin access grants stored as content-addressed RDF triples β€” the ACL itself is tamper-evident

Tool System

50+ built-in tools organized into policy groups:

GroupTools
File Systemread, write, edit, apply_patch
Runtimeexec (with approval system), process management
Webweb_search, web_fetch, browser (full Playwright automation)
Sessionssessions_spawn (subagents), sessions_send, sessions_list
Messagingmessage (any channel), discord_actions, slack_actions, telegram_actions, whatsapp_actions
Memorymemory_search, memory_get
UIcanvas (live interactive rendering), tts (text-to-speech)
Infrastructuregateway, cron, nodes

Tool profiles: minimal, coding, messaging, full β€” configure exactly what each agent can do.

Exec approval system: Shell commands require human approval before execution. Safe binaries are allowlisted; everything else pops up a native dialog (macOS) or notification (mobile) for the user to approve or deny.

24 Plugin Lifecycle Hooks

Deep integration points at every stage of the message-to-response pipeline:

message_received β†’ before_model_resolve β†’ before_prompt_build β†’ llm_input β†’
llm_output β†’ before_tool_call β†’ after_tool_call β†’ message_sending β†’ message_sent

Plus: session_start/end, agent_end, subagent_spawning/spawned/ended, before_compaction, gateway_start/stop, and more. Every hook can inspect, modify, or cancel the operation.

Proactive Agent (Heartbeat)

MAYROS agents don't just respond β€” they act proactively:

  • Scheduled tasks: Cron-style heartbeat runner with configurable active hours
  • Monitoring: Agents can watch APIs, check sensors, and alert you before you ask
  • Ghost reminders: Background prompts that trigger agent actions without user initiation

The Skill Revolution

Semantic Skills

MAYROS skills go beyond simple tool wrappers. A semantic skill:

  1. Declares capabilities in a structured YAML frontmatter: what graph operations it needs, what proofs it can request, what memory it accesses
  2. Runs verified: Every install passes a 4-stage verification pipeline
  3. Proves its work: Assertions are stored as RDF triples with optional Proof-of-Logic and ZK proofs
  4. Respects boundaries: Per-skill tool allowlists, query limits, and namespace isolation
yaml
# SKILL.md frontmatter
name: verify-kyc
type: semantic
semantic:
  permissions:
    graph: [read, write]
    proofs: [request, verify]
  assertions:
    - predicate: "kyc:verified"
      requireProof: true
  queries:
    - predicate: "kyc:level"
      scope: agent

5-Stage Verification Pipeline

No skill touches your agent without passing all five gates:

StageWhat It Checks
Static Scan16 rules detect: code execution, crypto mining, data exfiltration, sandbox escape, env harvesting, obfuscation, dynamic import/require
Ed25519 SignatureAuthor's public key, file hash integrity, canonical signature verification
Proof-of-LogicOntological consistency of declared assertions against the AIngle knowledge graph
WASM SandboxSkills execute in QuickJS WASM β€” no fs, net, process, require, import. Only 7 host functions exposed
Sandbox TestLive execution in a TTL-scoped isolated namespace β€” tear down after verification

Verify-then-promote: Skills are extracted to a temp directory, verified there, and only moved to the live directory on success. Failure leaves zero residue.

Apilium Hub Marketplace

Publish, discover, and install skills with full supply chain integrity:

  • Ed25519 challenge-response auth: Cryptographic identity, not passwords
  • Dependency resolution: Semver-aware topological sort with cycle detection
  • Author reputation: Trust tiers computed from on-chain assertion consistency β€” not stars or download counts
  • Lockfile pinning: skills.lock ensures deterministic reinstalls
  • Hot-reload: Change a SKILL.md or skill.ts and it reloads mid-session β€” no restart needed

Forge CLI

Build skills in seconds:

bash
mayros forge init my-skill        # Scaffold with SKILL.md + skill.ts
mayros forge test my-skill/       # Run full verification pipeline locally
mayros forge autocomplete "kyc:"  # Discover predicates from your knowledge graph
mayros forge publish my-skill/    # Sign, package, upload to Apilium Hub

Security by Design

MAYROS was built with the assumption that every component β€” skills, plugins, channels, even the AI model itself β€” is potentially adversarial.

18 Security Layers

LayerMechanismGuarantee
L0: Data IntegrityBLAKE3 content-addressed triple IDsEvery fact is globally unique and tamper-evident
L1: ZK PrimitivesPedersen, Schnorr, Bulletproofs (Curve25519)Privacy-preserving proofs without trusted setup
L2: Merkle TreesStandard + Sparse with non-membership proofsSet membership and exclusion proofs
L3: Agent IdentityEd25519 public keys as content-addressed hashesUnforgeable agent identity
L4: Skill SigningEd25519 over canonical SHA-256 file hashesTamper-evident skill packages
L5: Knowledge GraphACL-guarded RDF triples with provenanceNamespace-isolated, auditable knowledge
L6: Proof-of-LogicForward/backward chaining with proof treesVerifiable inference chains
L7: WASM SandboxQuickJS WASM with 7 host functions onlyComplete Node.js API isolation
L8: Verification PipelineScan + signature + PoL + WASM + sandbox test5-factor install verification
L9: Runtime EnforcementTool allowlists (intersection model) + permission resolverPer-skill least-privilege
L10: Namespace IsolationForced ns prefix on all queries + defense-in-depthNo cross-namespace data access
L11: Rate LimitingSliding window per skill per minuteAnti-brute-force on sandbox calls
L12: Enrichment SanitizerUnicode normalization + 8 injection patterns + depth limitsAnti-prompt-injection on skill output
L13: Query/Write LimitsPer-skill counters + global capsResource exhaustion prevention
L14: Execution TimeoutQuickJS interrupt handler + 2s enrichment timeoutDoS prevention
L15: Atomic Hot-ReloadManifest validation + diff logging + downgrade blockNo security regression on reload
L16: Path TraversalReject .. + isPathInside() double-checkArchive extraction safety
L17: ResilienceCircuit breaker + exponential backoffGraceful degradation without security regression

Static Analysis Scanner

16 rules with zero tolerance for critical findings:

  • Code execution: exec, spawn, eval, new Function, bracket-notation evasion (obj["exec"])
  • Data exfiltration: readFile + fetch combination, process.env + HTTP
  • Sandbox escape: globalThis[...] bracket access, dynamic require(), dynamic import()
  • Crypto mining: stratum+tcp, coinhive, xmrig patterns
  • Obfuscation: hex escape sequences, long base64 + atob/Buffer.from
  • Anti-evasion: comment stripping, line-join preprocessing, nested parens tracking

Exec Approval System

Every shell command passes through human approval:

  • Safe binary allowlist: git, ls, cat, etc. bypass approval
  • Everything else: Native macOS dialog, mobile notification, or Apple Watch prompt
  • Dangerous tool denylist: sessions_spawn, gateway, whatsapp_login blocked from HTTP API by default

Circuit Breaker Resilience

All Cortex communication uses a three-state circuit breaker (closed β†’ open β†’ half-open) with exponential backoff retry. When Cortex is down, the agent gracefully degrades to markdown-based memory β€” never crashes, never hangs.


Token Economy

Track and control AI costs at every level:

  • Per-session, daily, and monthly budgets with configurable limits
  • Three-tier enforcement: OK β†’ Warn (at 80%) β†’ Exceeded (soft-stop or hard-block)
  • LRU prompt cache: SHA-256 memoization of repeated prompts (256 entries, 5-minute TTL)
  • Persistence: Atomic file I/O to ~/.mayros/token-budget.json with automatic day/month rollover
bash
mayros budget status              # Current spend vs. limits
mayros budget set session 2.50    # $2.50 per session cap
mayros budget set monthly 100     # $100/month cap
mayros budget cache               # Cache hit stats and estimated savings

Semantic Observability

Full tracing of agent decisions as RDF events:

  • Tool calls: What was called, with what arguments, what it returned, how long it took
  • LLM calls: Token counts, timing, model used, cost
  • Delegations: Which subagent was spawned, why, what context was injected
  • Causal chain analysis: "Why did this happen?" β€” trace back through the decision graph
  • Prometheus metrics: Export counters and gauges to Grafana for real-time dashboards

Voice Interface

Swabble

A native Swift speech pipeline that runs entirely on-device β€” zero network usage for wake-word detection:

  • macOS 26: SpeechAnalyzer + SpeechTranscriber from the new Speech framework
  • iOS: AVAudioEngine tap β†’ SFSpeechRecognizer pipeline
  • Android: Native SpeechRecognizer with three modes (off, foreground, always-on)
  • Wake word: Configurable trigger word with gap-based command extraction
  • Talk mode: Full bidirectional voice conversation with the agent

Voice Calls

PSTN voice call integration supporting Telnyx, Twilio, and Plivo:

  • Inbound and outbound calls
  • STT via OpenAI Whisper
  • TTS via OpenAI, ElevenLabs, or Edge TTS
  • Optional OpenAI Realtime streaming
  • Configurable inbound policies (disabled, allowlist, pairing, open)

Browser Automation

Full Playwright-powered browser control:

  • Snapshot pages (accessibility tree + screenshots)
  • Click, type, navigate, scroll, evaluate JavaScript
  • Multiple Chrome profiles
  • CDP (Chrome DevTools Protocol) for low-level access
  • Sandboxed browser containers with Chromium + VNC for visual debugging
  • AI-assisted visual page understanding

Why We're Different

vs. LangChain / CrewAI / AutoGen

These frameworks give tools to agents and trust the tool author. MAYROS adds:

  • Verifiable facts: Every assertion is a content-addressed, cryptographically signed triple β€” not a string in a chat message
  • Proof-of-Logic: Derivation chains that any third party can verify
  • Zero-knowledge proofs: Prove facts without revealing underlying data
  • 4-stage skill verification: Static scan + signature + PoL + sandbox before any code runs
  • Multi-channel delivery: 20+ channels vs. API-only

vs. OpenAI Assistants / Claude Projects

Cloud-hosted AI assistants give you a chat interface. MAYROS gives you:

  • Self-hosted: Your data never leaves your infrastructure
  • Multi-device: Native apps on macOS, iOS, Android, Apple Watch, Docker, IoT
  • Multi-provider: Switch between 20+ AI providers with one config change
  • Semantic memory: RDF knowledge graph vs. flat conversation history
  • Proactive agents: Heartbeat, cron, monitoring β€” not just request-response

vs. Home Assistant / Node-RED

IoT platforms give you device control. MAYROS gives you:

  • Natural language interface: Talk to your devices through any messaging channel
  • AI reasoning: Agents make decisions based on semantic context, not just rules
  • Verifiable state: Sensor readings are content-addressed DAG entries, not ephemeral MQTT messages
  • Cross-domain: Same agent controls IoT devices AND browses the web AND writes code AND manages your calendar

The Numbers

MetricValue
Messaging channels20+
AI providers20+
Built-in tools50+
Plugin extensions44
Plugin lifecycle hooks24
CLI commands35+
Security scanner rules14
Verification pipeline stages4
ZK proof types5
WASM host functions4
Supported platforms7 (macOS, iOS, Android, Watch, Linux, Windows, Docker)
Storage backends4 (Memory, Sled, RocksDB, SQLite)
API surfaces3 (REST, GraphQL, SPARQL)

Getting Started

Quick Install

bash
# Install MAYROS
npm install -g @apilium/mayros

# Install AIngle Cortex (semantic layer)
mayros cortex install

# Interactive setup
mayros onboard

# Start the gateway
mayros gateway

Docker

bash
docker compose up -d mayros-gateway

From Source

bash
git clone https://github.com/ApiliumCode/mayros
cd mayros
pnpm install && pnpm build
./mayros.mjs gateway

Configuration

Everything lives in mayros.json:

json5
{
  "$schema": "./mayros.schema.json",
  "channels": {
    "telegram": { "botToken": "${TELEGRAM_BOT_TOKEN}" },
    "slack": { "botToken": "${SLACK_BOT_TOKEN}" }
  },
  "models": {
    "providers": [
      { "type": "anthropic", "apiKey": "${ANTHROPIC_API_KEY}" }
    ]
  },
  "agents": {
    "default": {
      "model": "claude-opus-4-6",
      "tools": "full",
      "skills": ["verify-kyc", "code-review"]
    }
  }
}

Open Source

MAYROS is built in the open:

Published crates on crates.io:

  • aingle_cortex β€” REST/GraphQL/SPARQL API
  • aingle_zome_types β€” WASM boundary types

The Future Is Verifiable

AI is moving from "text generation" to "autonomous action." When your AI agent signs a contract, verifies an identity, manages your infrastructure, or makes a financial decision β€” you need more than a chat log. You need proof.

MAYROS is the only agent framework where every fact is content-addressed, every inference has a verifiable proof chain, and every sensitive value can be committed and proven in zero knowledge. This isn't a feature we bolted on β€” it's the foundation everything else is built on.

Your agent. Your devices. Your proof.


Built by Apilium Technologies β€” la era de la IA con certezas.