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

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

Uploaded CPython 3.12Windows x86-64

mgc_blackbox-1.4.8-cp312-cp312-manylinux_2_17_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11Windows x86-64

mgc_blackbox-1.4.8-cp311-cp311-manylinux_2_17_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

mgc_blackbox-1.4.8-cp310-cp310-manylinux_2_17_x86_64.whl (4.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

mgc_blackbox-1.4.8-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.8-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b327a2f89467378685e267cc83e99d42a1926b1707ad6dc56604b61dc8be2376
MD5 f403363d2f621246cc95abe52c3ef4d0
BLAKE2b-256 efc47b31fc56d5844d6a4d94d1786658d35db8709fe622d0553ac39217da48d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 0e0c1010f6c16b7b2b5f7fad619b967e57cd4d2a96a1789217b898350404136c
MD5 c09200a989f61fe38cf53ad11fa78178
BLAKE2b-256 b53398e26d784a14311650154977794d0a746141f71e1f842e828f69473a9b52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9c4001cfdd26715565d8cac70ea4950139a5f47155d18ba0039dc34479d1060
MD5 63c767ad7273ac0b3949e5d741437572
BLAKE2b-256 d6823b98d6af473b33897899fa59cb91fd706aac163af7d91e80c1bb17892dab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 dc764f19b2bf66fa8eb9c748c16b798d9404961c4e24861249af40f98256df5d
MD5 e1e3a5d31bd5f0ffb272c69310d73ece
BLAKE2b-256 9e0116871d94d5f7059641a1115c4004e403f747b099415ae028924370caf9d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1ebebfc392bb310fc2113d8b2e92b02e51599734951f16c11c49a3ff68a160ec
MD5 95cc6e7d6e860b96dd77a01e97b02295
BLAKE2b-256 cca3ec8763110207260bb62a056a4f188f7168e673d9335a744dc35969f3cd2d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59fead5d9d5bbd02fe5a4688b1fd768371b446bc2f4e0535a68619049bb12a1a
MD5 f871d2a96cd85df751b92e18fbefc9ee
BLAKE2b-256 9ca629e1f280b3f66a1eeacc1bf7ec830baec37e3c2c0baa13a7c74bf65f1b16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 38c447e073e774ee5e9fbe11a06a07f00eaadf8c08700612db087d4b4b841f5f
MD5 1547a31a2e4c17b86157adefd5f98f7e
BLAKE2b-256 b9020188591abb623b6082b647938a5f514f3858eb77d0d029a978f062e3feed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba3e5ab8e35d39e1a107025fb16c030c47f1778c4dda1cf4191ed583d5553ffa
MD5 dc4121c34ff9896dd3693d2d96d4079d
BLAKE2b-256 1fd9aa07f8897dd79a0fdd3f11c2fd24b5e0ada7e610fcceb3fc1d5c5c07cede

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