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.9-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12Windows x86-64

mgc_blackbox-1.4.9-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.9-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11Windows x86-64

mgc_blackbox-1.4.9-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.9-cp311-cp311-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

mgc_blackbox-1.4.9-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.9-cp310-cp310-macosx_11_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9e2971e4bd6a081177a5a274669e053748cccfac980f0751288de0c9f1ddbbda
MD5 be1c2949492afbe6721ccf3897704247
BLAKE2b-256 c19961d247b431fe6d0680b1f87ac727b3c25393227b95f70e8648159e80cbf4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 e99e75ae1ae2fecc9649d67dfe4e21e9d0d91b12679dfcd4c9071c74a39b53c6
MD5 e42d896fd29d800427bd59b95b1f5a79
BLAKE2b-256 b120c48bf1afc1370ffb7d67b139443ee161b1bbf7286f771e3093921fc5ff51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 75c7e041fcfd5a4e3c4686add4c6da547d8caada6b98cb74ebb563e288b62f2a
MD5 c936404f5909be0c43b160bbe4f985cc
BLAKE2b-256 fc4dd5de983a5cb25b288564e62bc6cfbdd0bbec84a01f428c197f947ed3b36f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 4dac0f83832caae45032d357bd5af68ff21221e766383cc51ce104e27efb7bb1
MD5 a9ff8ab1a86b5c1bdfcaa8d7c1300222
BLAKE2b-256 0997874e5c174d7159b7279782c18191e1fbae949e95b58491e6bf749169e778

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b5ffccdcd0d298be1cfe1aadc6be07dc9f3a12ce924860d841be55817a67ee6
MD5 7e0ab4e60fe999111d884cd54e3625c1
BLAKE2b-256 112439110b35ff37b98e46747627fefb811ebbb674f0c604570b82c4ccc21ad9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8a1fe447d9552dbd26d50c85e11c6b27b57eb0a0bde45d647b95ef4a76648f3b
MD5 05fe3b2a7fb5b168ac8128bd7fe51ddc
BLAKE2b-256 956925807ad6ddb08fe0563b5ca8d3b27b162fc1c1354f90cbfc6f079c445694

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a052160cdc8500c2094afb7d0ab630462e98222bb9b4e7c3e2435965912a8621
MD5 f8a5bdc8cd6ed34912ff17972b3417a4
BLAKE2b-256 ef634bad34bdc61b493cacba15b3da2d355ef24f6e01df7954c73db74c419126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b567443da54334da92650a963c698992ea3ccc2f4b28be49a6da2afc25c3b4d6
MD5 78a1871793c2e6adac1439c63c09b5cd
BLAKE2b-256 88ecccce1122768ba68ac45df7683903f2027daadec96e904772f3be5dc59daf

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