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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ce34f6f06844e5d63f58a52229049223794c1d281118e85075cbd3dc237d49a4
MD5 adfbbc99682e7535dcd9ff3706ecc5e8
BLAKE2b-256 dac2da5f19027d14bbdd6e07ca76434fd119cc1c56cbef29cca187ff8bdb78b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp312-cp312-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 c73339ddba401aba6815d2dd0dd2d90f7b790816de9161aac30a8e4e3801d87e
MD5 bfd852fb692985f68ecd74eb7ee86b92
BLAKE2b-256 1fea7748d15e8b66e7abc4a4fa05d53c1009fe96bfa273968b77161a5484e21c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 759a9457c70dd5567478608efd510bcab03f86867a24e37aee0600c4ca1999e3
MD5 8b548fcc37ddc3378cb2168119e2a46d
BLAKE2b-256 79c5bf5d78ed2b705ac4b94115254327761aef94cd777d8c87309c1033da5f03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ead8e611108a312f3ddcf2488e5e0b08b9ce1d587a22d002d3d26c7216545026
MD5 9ad5bbdfbc588dba08d34364c03bac9f
BLAKE2b-256 e468504ed91e15390d25fce2ff9364b61d37e0cfdbb38a6437666d572274efda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 917b3f3cd5c890648b322b15996a2da36e780e7188f93cd4945b482cb81ec5b6
MD5 28519c6befb527555a4c59d7bfb4019b
BLAKE2b-256 be91790c97fa7a16bcbdcab153df30c7560fb965dcb97b43a423aa8c99ea457f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f2d48483dd13d5ec1b14bfb8ac46867cfcdbe6cd6d20c0558078a004f5027cc5
MD5 6777cca37493c08eeb32ac01df689944
BLAKE2b-256 3c9e79b3f78677f388ed0e0b121b5b1f35ddb252545362a7e6dd71384d57a670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp310-cp310-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 22bffe58cb40131c6290a5fe093d8583ae43d40ffa1f658133e53eb49c498e27
MD5 f05bff50e1dfd6dd0daa464a1bc0ac5b
BLAKE2b-256 a2211375c6bdede46ad43b75b7cc2e5dc67b00ed519f4c557d9ebe0dc1315d68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mgc_blackbox-1.4.7-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88f60cf20c849a0e09ee38da16fcaf8a837b2c8704a214a02e38b2ed4d8149bc
MD5 633c2d7aacd2765f4f15558ef5bc0052
BLAKE2b-256 1b19cfb118c58842a0ae0dd0963db0c840964b3ccf8bf5372518f556c20d73c3

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