Skip to main content

Local edge gateway for the Antimatter ecosystem

Project description

⚛️ 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
    

    The gateway now detaches and runs silently in the background. Logs are written to ~/.antimatter_daemon/gateway.log.

  2. Pair your Device:

    antimatter-gateway pair
    

    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 uses Cloudflare Quick Tunnels to expose the local gateway to the mobile app, but it treats the tunnel as an untrusted medium. All payloads are encrypted locally on the Android device using AES-GCM before transmission and are decrypted locally by the PC Gateway using a pre-shared Elliptic Curve Diffie-Hellman (ECDH) key exchange.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antimatter_gateway-2.0.6.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antimatter_gateway-2.0.6-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file antimatter_gateway-2.0.6.tar.gz.

File metadata

  • Download URL: antimatter_gateway-2.0.6.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for antimatter_gateway-2.0.6.tar.gz
Algorithm Hash digest
SHA256 2b6ae3461ea763b435c27d5cf79b1535d198e0957ab08c1196c8236af3f7b0a3
MD5 d87e09e5d407d19f8253c63f5308049b
BLAKE2b-256 c7d2cd2ffaff43429d4929d6233615d661b5fe9a386b65a2c1d81ffb7f02c091

See more details on using hashes here.

File details

Details for the file antimatter_gateway-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: antimatter_gateway-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for antimatter_gateway-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f1f9d16e04dcea3b63796079ad9b0fc2e14172c4ebb02f10883f3a498f4e19
MD5 959af0f060582f7a273a73a7fd30fa29
BLAKE2b-256 2f3407d97cba5797eb161c18d9fd6a3c6f057250fe2802ab28d5a45af9a0cabe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page