Skip to main content

An open-source toolkit for deploying containerized desktops and browsers tailored for AI agents

Project description

MarinaBox Logo

MarinaBox

MarinaBox is a toolkit for creating and managing secure, isolated environments for AI agents. It provides:

Core Features

  1. Secure Sandboxed Environments

    • Run isolated browser and desktop sessions locally or cloud
    • Perfect for AI agent tasks(Computer Use) and browser automation
  2. Comprehensive SDK & CLI

    • Python SDK for programmatic control
    • Command-line interface for session management
    • Real-time monitoring and control capabilities
    • Integration with popular automation tools (Playwright, Selenium)
  3. Interactive UI Dashboard

    • Live session viewing and control
    • Session recording and playback
    • Session management interface

Additional Features

  • Cloud Integration: Deploy sandboxes to major cloud providers(coming soon)
  • Multi-session Management: Run multiple isolated environments simultaneously
  • Session Tagging: Organize and track sessions with custom tags

Documentation

Full documentation is available at https://marinabox.mintlify.app/get-started/introduction

Prerequisites

  • Docker
  • Python 3.12 or higher
  • pip (Python package installer)

Installation

  1. First, ensure you have Docker installed on your system. If not, install Docker for your operating system.

  2. Pull the required Docker images:

docker pull marinabox/marinabox-browser:latest
docker pull marinabox/marinabox-desktop:latest
  1. Install the Marinabox package:
pip install marinabox

Important Note

The provided Docker images are built for Mac ARM64 architecture (Apple Silicon). For other architectures:

  1. Clone the sandbox repository:
git clone https://github.com/marinabox/marinabox-sandbox
  1. Build the images with your target platform:
docker build --platform <your-platform> -f Dockerfile.chromium -t marinabox/marinabox-browser .
docker build --platform <your-platform> -f Dockerfile.desktop -t marinabox/marinabox-desktop .

Usage Example

Here's a basic example of how to use the Marinabox SDK:

from marinabox import MarinaboxSDK

# Initialize the SDK
mb = MarinaboxSDK()

# Set Anthropic API key
mb.set_anthropic_key(ANTHROPIC_API_KEY)

# Create a new session
session = mb.create_session(env_type="browser", tag="my-session")
print(f"Created session: {session.session_id}")

# List active sessions
sessions = mb.list_sessions()
for s in sessions:
    print(f"Active session: {s.session_id} (Tag: {s.tag})")

# Execute a computer use command
mb.computer_use_command("my-session", "Navigate to https://x.ai")

Project details


Download files

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

Source Distribution

marinabox-0.1.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

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

marinabox-0.1.1-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file marinabox-0.1.1.tar.gz.

File metadata

  • Download URL: marinabox-0.1.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for marinabox-0.1.1.tar.gz
Algorithm Hash digest
SHA256 169fdb2f93b8504c17e10aef568a111f2a6d39c4ad286d00632e484a8862eb09
MD5 5b18e9521a9440dac0163126b62572fa
BLAKE2b-256 8b068e794bb2f3c08ab3f3cc5ca21d0675a5fafb657dd9796fb49ef2e7833afc

See more details on using hashes here.

File details

Details for the file marinabox-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: marinabox-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 30.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for marinabox-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a218f11cf516e0894b34c9568a17be02ed60e06a44dcba3ac2ec34dce968c40e
MD5 fe8d2556453f553df47e63cedd7d06f6
BLAKE2b-256 2a2f3cafc0b2057799a682245304f30a13a90312c7c6b2415a2777bcb0ce322a

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