Skip to main content

Safe Colab CLI

Enable AI agents to analyze your sensitive data remotely — without ever copying it.

A command-line tool that launches a sandboxed Python environment on your machine (or in the cloud), registers it as a remote service via Hypha, and lets AI agents execute code through a guardian agent that enforces your sensitivity policy.

Key Features

  • Guardian Agent — LLM-powered security checks validate code before execution and output before return
  • Sensitivity Contract — Define protected columns, minimum aggregation, and allowed operations in a README.md
  • Live Dashboard — Web dashboard with real-time activity log and operation stats
  • Protected Audit Logs — Full audit trail in ~/.safe-colab/logs/, protected from sandboxed code
  • Sandbox Isolation — nono (macOS/Linux) or Docker restricts kernel filesystem access
  • Remote Hosting — Upload dataset once, cloud pods spin up on demand (no laptop needed)
  • Zero Config for Agents — Agents call get_skill_md via curl to learn the API. No SDK, no token needed.

Quick Start

Local Mode (data stays on your machine)

pip install safe-colab
safe-colab login --server-url https://hypha.amun.ai
safe-colab start --data-dir ./my-data --guardian-url https://guard.amun.ai

Remote Mode (upload once, pods on demand)

pip install safe-colab
safe-colab login --server-url https://hypha.amun.ai
safe-colab deploy --data-dir ./my-data --guardian-url https://guard.amun.ai
# → Uploads dataset, registers app. Share the App ID with your AI agent.
# → Pods spin up automatically when an agent calls start().

Use the Amun AI production servers

Safe Colab talks to two services and both must point at the Amun AI deployment (older installs and some docs default to an aicell.io instance):

Service Amun AI URL How to set it
Hypha (registers your kernel; chosen at login) https://hypha.amun.ai safe-colab login --server-url https://hypha.amun.ai
Guardian (validates every code/output) https://guard.amun.ai --guardian-url https://guard.amun.ai on start/deploy

The Hypha server is fixed at login time — if you logged in against a different server, re-run safe-colab login --server-url https://hypha.amun.ai to overwrite the saved credentials in ~/.safe-colab/.env. You can also set both via environment (persist them in your shell profile):

export HYPHA_SERVER_URL=https://hypha.amun.ai
export SAFE_COLAB_GUARDIAN_URL=https://guard.amun.ai

Verify the guardian before a session or demo (accepts the Terms of Use, then runs a built-in safe/blocked suite):

safe-colab test-guardian --url https://guard.amun.ai --accept-terms
# → Health: OK … 4/4 tests passed

Documentation

See the docs site or the GitHub project for full documentation.

License

Copyright 2024-2026 Amun AI AB. All rights reserved.

This software is proprietary and confidential. No part of this software may be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of Amun AI AB. Unauthorized copying, modification, distribution, or use of this software is strictly prohibited.

Metadata

Release files for safe-colab 0.19.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for safe-colab 0.19.2
File Size Uploaded Provenance
safe_colab-0.19.2.tar.gz 194.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for safe-colab 0.19.2
File Interpreter ABI Platform
safe_colab-0.19.2-py3-none-any.whl Python 3 none any Details

Total release size: 308.1 kB

Release files / safe_colab-0.19.2.tar.gz

Download URL safe_colab-0.19.2.tar.gz
Size 194.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d364cd8fa7ead5f17fdfad6211ae808bb373478b9266f182e4c57e3efb165454
BLAKE2b-256 checksum
How to use checksums
d2b71774a07b81ef20705b727dcfcb049b3bc7657ffa72ea84b44559076f11a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / safe_colab-0.19.2-py3-none-any.whl

Download URL safe_colab-0.19.2-py3-none-any.whl
Size 113.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd950f022f5f9c1e4e072735166339a63db06fe65120f4f42d5b2daa6b0480a4
BLAKE2b-256 checksum
How to use checksums
5ed87d43a64b117b8e35826120a0cdd6cee30429bc680caf76363841baafdf6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for safe-colab 0.19.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page