Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

⚛️ Antimatter Core

The Universal Multi-Agent Microservices Gateway

PyPI Version Python License: MIT


Antimatter is a hyper-secure, locally hosted, multi-agent integration gateway. It acts as an End-to-End Encrypted (E2EE) bridge between your mobile device and a suite of powerful AI Agents running on your desktop.

By decoupling the architecture, Antimatter allows you to seamlessly switch between different AI models (like Claude, Antigravity 2.0, or the Antigravity IDE) from a single Android application without compromising your local file system's security.

🚀 Features

  • Multi-Agent Multiplexing: Connect to multiple AI adapters (Claude Desktop, AG2, etc.) simultaneously.
  • End-to-End Encryption: 100% locally generated X25519/HKDF/AES-GCM encryption ensures your data is never readable by Cloudflare or any middleman.
  • Dynamic Routing: Switch active agents on-the-fly directly from the Antimatter Android app.
  • Headless & Secure Vaults: Built-in dual-layer secret storage using OS-native Keyrings and a headless AES-GCM fallback vault.

📦 Installation

To install the Antimatter Gateway, you can use either standard pip or uv:

Using pip:

pip install antimatter-gateway

Using uv (recommended for cleaner isolation):

uv tool install antimatter-gateway

Note: This package provides the core infrastructure for the Antimatter ecosystem.

💻 CLI Commands

Once installed, you have access to a suite of clean, simple terminal commands:

Command Description
antimatter-gateway start Starts the primary Gateway server silently as a background daemon.
antimatter-gateway stop Safely kills the background Gateway daemon.
antimatter-gateway status Checks if the Gateway daemon is running.
antimatter-gateway pair Generates a secure QR code to pair your Android device.
antimatter-ag2 Starts the Antigravity 2.0 Adapter.
antimatter-claude Starts the Claude Desktop Adapter.

🛠️ Quickstart

  1. Start the Gateway:

    antimatter-gateway start
    

    You will be prompted to choose your connection mode: Local Network (LAN), Cloudflare Tunnel, or Both. The gateway then detaches and runs silently in the background. Logs are written to ~/.antimatter_daemon/gateway.log.

  2. Pair your Device:

    antimatter-gateway pair
    

    Select the connection method you want to pair with, then scan the generated QR code using the Antimatter Android App.

  3. Start an Agent: Open a new terminal and start your preferred AI agent adapter:

    antimatter-ag2
    
  4. Stop the Gateway (when finished):

    antimatter-gateway stop
    

📂 Workspace Whitelisting

By default, the Gateway restricts the mobile app's Workspace Explorer to only access the directory from which your adapter was started. To explicitly allow browsing and switching between specific directories, you can whitelist them in your config file (~/.antimatter_daemon/config.json):

{
    "allowed_workspaces": [
        "/home/user/my-project",
        "/home/user/another-project"
    ]
}

🔒 Security Architecture

Antimatter relies entirely on Application-Layer End-to-End Encryption (E2EE) using AES-256-GCM with a pre-shared Elliptic Curve Diffie-Hellman (ECDH) key exchange. This ensures your data is 100% locally encrypted on the Android device before transmission and is decrypted locally by the PC Gateway.

Because of this robust E2EE architecture, Antimatter is secure over any transport medium:

  • Cloudflare Quick Tunnels: Treats the tunnel as an untrusted medium. Cloudflare cannot read your traffic.
  • Local Network (LAN): Connects directly via WebSocket (ws://). Even though the transport layer is not TLS-encrypted, the E2EE layer ensures that anyone sniffing your local network sees only opaque, tamper-proof ciphertext.

[!WARNING] Dynamic Connection Modes You are prompted to choose your connection mode (LAN or Cloudflare) every time you start the gateway. This preference is never saved, giving you the flexibility to switch seamlessly based on your current network environment without modifying configuration files.

Metadata

Release files for antimatter-gateway 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for antimatter-gateway 2.0.8
File Size Uploaded
antimatter_gateway-2.0.8.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for antimatter-gateway 2.0.8
File Interpreter ABI Platform
antimatter_gateway-2.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 46.5 kB

Release files / antimatter_gateway-2.0.8.tar.gz

Download URL antimatter_gateway-2.0.8.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e661f3ce687237acf95f5ca36c0b06d2ae1257434f7b82f679838fbc81576f
BLAKE2b-256 checksum
How to use checksums
d767153b0087f644d0254d86f654c8712ff0f4d05af047d6a9010aaeab252156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"43","id":"gas_meter","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / antimatter_gateway-2.0.8-py3-none-any.whl

Download URL antimatter_gateway-2.0.8-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0d8f6dbe79ac4b9d6364283b49f8c46523196e0137c09ac3fe296ddc61edd89
BLAKE2b-256 checksum
How to use checksums
a2b8785693d849a9bf68a88f724d8a28d6bd695ca7926ed0cf30a0cb00710665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ultramarine Linux","version":"43","id":"gas_meter","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page