Skip to main content

MirginCipher Blackbox (MGC) — Encrypted AI Agent Execution Layer

A secure local execution layer for AI agents — encrypted storage, sealed scripts, zero plaintext leakage.
Protect API keys, credentials, and scripts from AI agents with AES‑256 + RSA hybrid encryption and a Cython‑compiled secure core.

License Platform MCP PyPI

📌 Roadmap: MGC Blackbox — 2026 Development Plan


What is MGC Blackbox?

MirginCipher Blackbox (MGC) is a Local Encrypted Execution Layer designed to protect sensitive human intent and enable secure, deterministic AI execution.
It provides a trusted device‑level encrypted boundary for agents — MGC is not an agent itself.

MGC ensures:

  • Sensitive data never leaves the device
  • AI agents cannot access plaintext
  • Scripts execute inside a sealed, encrypted environment
  • Cross‑node execution is possible without exposing code

Why MGC?

  • 🔐 End‑to‑End Encrypted Storage
    AES‑256 encrypted vault for API keys, credentials, configs — never exposed to AI agents or external systems.

  • 🧱 Local‑First Security Boundary
    All execution and decryption happen on‑device. No cloud dependency, no plaintext leakage, no telemetry.

  • 🧩 Sealed Script Execution (Unique)
    Convert scripts into unreadable execution capsules.
    Only trusted nodes can decrypt & run them — even the sender cannot read sealed scripts.

  • Deterministic Local Execution
    Stable, reproducible behavior across macOS / Linux / Windows with a Cython‑compiled secure core.

  • 🛠️ Native MCP / Skill Integration
    Exposes mgc_save / mgc_get / mgc_list / mgc_seal / mgc_open_webui as standard MCP tools.
    Works out‑of‑the‑box with Copilot, Claude, Trae, IDE Agents.

  • 🔄 Zero Integration Cost
    Any MCP‑compatible agent can immediately use MGC as its secure execution backend — no SDK, no custom code.

  • 🛡️ Designed for AI Agent Security
    Protects human intent, prevents agent overreach, and enforces strict execution boundaries.


Use Cases

1. Protect API Keys & Credentials from AI Agents

Store secrets encrypted. Agents can use them, but never see plaintext.

2. Secure Local Automation

Run Python / Shell / Node scripts locally without exposing sensitive data to AI logs or cloud systems.

3. Sealed Script Distribution

Share scripts with collaborators or devices without exposing source code — they can execute but cannot read.

4. Cross‑Node Execution

Send sealed scripts to trusted remote nodes:

  • Sender cannot read the sealed content
  • Recipient cannot read the sealed content
  • Only the target node can decrypt and execute

5. Local‑First AI Agent Security Boundary

Provides a local security layer for Copilot / Claude / Trae / IDE Agents.

6. Privacy‑Preserving AI Workflows

Enables financial automation, personal data processing, and enterprise internal workflows with privacy protection.


📘 Value Scenarios

MGC Blackbox provides a trusted, encrypted execution boundary for different roles and environments.
Detailed scenario documents:


Architecture


Crypto Layer & Performance

MGC uses a hybrid cryptographic design:

  • AES‑256‑GCM — bulk data encryption
  • RSA‑2048/4096 — key encapsulation & node authorization

The crypto layer is Cython‑compiled to:

  • Improve AES & RSA performance
  • Reduce Python overhead
  • Provide a sealed, tamper‑resistant execution boundary
  • Maintain deterministic behavior across nodes

Features

  • Local encrypted storage
  • Encrypted execution
  • Store‑once authorization
  • Environment migration
  • Cross‑agent availability
  • Cross‑platform support
  • No delete function (manual DB deletion only)
  • Script sealing for cross‑node execution

Quick Start

1. Install

pip install mgc-blackbox

2. Start Service

mgc

3. Open WebUI

http://127.0.0.1:57218

4. Store a Secret

from mgc import save
save("openai_key", "sk-xxxx")

5. Execute Scripts Securely

Scripts run inside MGC's encrypted boundary.


Example: Save & Retrieve Secrets

from mgc import save, get

save("openai_key", "sk-xxxx")
print(get("openai_key"))

MCP Integration

MGC exposes a local MCP tools interface:

  • mgc_save
  • mgc_get
  • mgc_list
  • mgc_seal
  • mgc_open_webui

Compatible with Copilot, Claude, Trae, IDE Agents.


Usage Overview

1. Through AI agents (Skills / MCP)

Agents can store secrets, retrieve encrypted items, execute scripts, and seal scripts.

2. Through system scripts (REST API)

External scripts can fetch encrypted items at runtime.


Security Model

  • All data remains local
  • No cloud upload
  • No plaintext logging
  • Deterministic execution
  • User‑controlled authorization
  • Sandbox mode support (fallback hardware fingerprint for restricted environments)

AI Skill Specification

See: docs/skill_spec.md


Authorization

Integration into any third‑party products or AI agents is free,
but requires official authorization to ensure ecosystem integrity.

Contact: zkeviny@icloud.com


License

See the LICENSE file for full terms.

© 2026 MirginCipher Team. All rights reserved.


---

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

mgc_blackbox-1.4.10-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mgc_blackbox-1.4.10-cp312-cp312-manylinux_2_17_x86_64.whl (4.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mgc_blackbox-1.4.10-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

mgc_blackbox-1.4.10-cp311-cp311-manylinux_2_17_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mgc_blackbox-1.4.10-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mgc_blackbox-1.4.10-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10Windows x86-64

mgc_blackbox-1.4.10-cp310-cp310-manylinux_2_17_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

mgc_blackbox-1.4.10-cp310-cp310-macosx_11_0_arm64.whl (1.8 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file mgc_blackbox-1.4.10-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 10a8adafad0a4392ec6df3ad1c7af62f2ff578692ca7c9e272deed988807a645
MD5 c7860d54c65533c66f2292c2bb5f9a1a
BLAKE2b-256 b9d249002089813d620077da3532dcb6a98b65a1e4cf260be0ded4094c9baa68

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp312-cp312-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ac4829f160c2bd3a70d8ada88570bbd655d5b8749c32454b842172a6b469c754
MD5 d31668d5a87902b676e2ef0076d95404
BLAKE2b-256 d2420e8628f57b626d47de493e52d70346da6f5c8152ff6f622d19d613f74239

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dcd0cd1b36ea5a01554239a5b31c4ed7d220ffb9223452eaad0dc1c75758c024
MD5 12c18809bf57870aa2da7d5f666f11ee
BLAKE2b-256 63f1783be029f75a1aa01d89989234488ea6e8e80559f9439c91ae2b24a3e569

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp311-cp311-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 56df6852a27e1a901993ebae12c19791af2088f51fdc5f0107757b97a102ddba
MD5 1849108ffc672c92930f98f2a9234b10
BLAKE2b-256 c427a803a524809c6ec8d85e9d65261390fa8bd75a0942f08a8b5c2173ea6fd0

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 90d780eafa07f0fa49ef06202678a1de2547623960c1fdaeea3e461af3d75a6a
MD5 a96d72b999e6f74a1cf90926aec6d6f8
BLAKE2b-256 fac8e298fe7903e5c78ab08c892a2a0f70e59d15300680440da167a644dab333

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a897ca55a759d27e99d6df2266ba059fc0b8cb6703db60095a4155e3a1d4dc4
MD5 84423af817bf25bd8a5d3fc4e26b0c40
BLAKE2b-256 c0628538261b7b4a98b522718ca13f389e1233473252b57fa07c11750f67bea9

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp310-cp310-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 2076101b25269713933f15d917402eee87b4c8660759d3b8033d2c6a49fc09a8
MD5 ca46c7440fbe4e5db7940c7b13fb9033
BLAKE2b-256 ab5ca67135a5e5e623abce04ad6b513be46133a881fd277f777da07fade5f18c

See more details on using hashes here.

File details

Details for the file mgc_blackbox-1.4.10-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.10-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d495e69bb528db0dcce395432d7ac4627271cc723d5056379878ecb310ef8f24
MD5 9ce53514c692c4a12f6b8b211672b3d5
BLAKE2b-256 0558ace399ecf494d968a9c9ec6121c9b16dda8223c7820b35580e7877786199

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 Sentry Error logging StatusPage Status page