open_sandbox 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ff9458ad74494093739cda38472437e30b4dd0a081b68bf76f91c998b7b032e
4
- data.tar.gz: 829770a3369b58e83fe541745a0a1765f5c98dbdbf680be37a21a06db4b947b8
3
+ metadata.gz: af53de3b813634e21f527311725d8b56fcbdd801a7cdac96c1e6f6517d4cdefa
4
+ data.tar.gz: d15cd430e00cb8f1ec697e9ba9b8d14fd650580b262dd14bf938aee8818e729e
5
5
  SHA512:
6
- metadata.gz: 8f7bd0c0f24041a75a2ab5e6ef66ed7ac99d28a3c11317d6777c4dbeec9422a5465a48a75b9dde1042b3c26646e2c7d0f03e0835ded535a4209725c23f561751
7
- data.tar.gz: 8e6740dd38a16f475b4d6a11a161259e01eebae6419ac06bb4d8905ea9de51213bcdd6c1d7b5570284087e33a8e04c780f27d72f6c7ec0db1c55ca9962024b74
6
+ metadata.gz: 100a358b7acdea8c18d22ef8790f0b602cac9c41fb16b9d9d7b80a7fbdf875b3d05d774e60a0791326af7cf8f719de5b09e04f8b60f8c3c8c5520bf00a701825
7
+ data.tar.gz: 82eef41acf16e3547f0978b2fe35e2b31c82665c92d7fca48c38ba5c46dd233529d9295a4acb444999489ab92e506d8170a940bc75f5688ba78af59e72809243
data/README.md CHANGED
@@ -1,10 +1,43 @@
1
1
  # OpenSandbox
2
2
 
3
+ [中文版](README.zh-CN.md)
4
+
3
5
  Ruby SDK for the [open-sandbox.ai](https://open-sandbox.ai) API — manage isolated container sandboxes for secure code execution.
4
6
 
7
+ > ⚠️ **This is an unofficial Ruby gem**, not affiliated with or maintained by the OpenSandbox team.
8
+ > Official project: [alibaba/OpenSandbox](https://github.com/alibaba/OpenSandbox)
9
+
5
10
  [![Gem Version](https://badge.fury.io/rb/open_sandbox.svg)](https://rubygems.org/gems/open_sandbox)
6
11
  [![CI](https://github.com/graysonchen/open_sandbox-sdk-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/graysonchen/open_sandbox-sdk-ruby/actions)
7
12
 
13
+ ## What is OpenSandbox?
14
+
15
+ [OpenSandbox](https://github.com/alibaba/OpenSandbox) is a **general-purpose sandbox platform for AI applications**, open-sourced by Alibaba and listed in the [CNCF Landscape](https://landscape.cncf.io/?item=orchestration-management--scheduling-orchestration--opensandbox).
16
+
17
+ ### The Problem It Solves
18
+
19
+ Modern AI applications — coding agents, browser automation, RL training, AI code execution — need to **run untrusted or model-generated code safely**. Spinning up ephemeral containers manually, wiring up lifecycle management, handling networking, streaming logs, and tearing everything down reliably is complex and error-prone.
20
+
21
+ OpenSandbox solves this by providing:
22
+
23
+ - **Isolated runtime environments** — each sandbox runs in its own container, fully isolated from the host and other workloads. Supports secure runtimes like gVisor, Kata Containers, and Firecracker microVM.
24
+ - **Unified sandbox lifecycle API** — provision, monitor, pause, resume, renew, and terminate sandboxes via a single consistent API, backed by Docker or Kubernetes.
25
+ - **In-sandbox execution** — run shell commands, execute multi-language code (Python, Node.js, etc.), manage files, expose ports, and stream logs/metrics from inside the sandbox.
26
+ - **Resource Pools** — pre-warm sandbox pools to eliminate cold-start latency for high-throughput workloads.
27
+ - **Network policy** — per-sandbox ingress/egress controls with unified gateway routing.
28
+
29
+ ### Typical Use Cases
30
+
31
+ | Scenario | Description |
32
+ |---|---|
33
+ | **Coding Agents** | Run Claude Code, Gemini CLI, Codex, and other agent tools in isolated sandboxes |
34
+ | **AI Code Execution** | Safely execute model-generated code, stream outputs, iterate with reproducible environments |
35
+ | **Browser Automation** | Run Chrome / Playwright workloads with controlled runtime and networking |
36
+ | **Remote Development** | Host VS Code Web and cloud desktop environments securely |
37
+ | **RL Training** | Launch reinforcement learning tasks with managed sandbox lifecycle and resource controls |
38
+
39
+ This Ruby gem wraps the OpenSandbox HTTP API so you can use all of the above from your Ruby or Rails application.
40
+
8
41
  ## Installation
9
42
 
10
43
  Add to your Gemfile:
@@ -181,6 +214,10 @@ bundle install
181
214
  bundle exec rake test # run all tests
182
215
  ```
183
216
 
217
+ ## Other SDKs
218
+
219
+ OpenSandbox provides official SDKs for multiple languages. See the full list at [alibaba/OpenSandbox — SDKs](https://github.com/alibaba/OpenSandbox/tree/main#sdks).
220
+
184
221
  ## License
185
222
 
186
223
  MIT
@@ -70,7 +70,7 @@ module OpenSandbox
70
70
 
71
71
  def build_headers(extra = {})
72
72
  headers = { "Accept" => "application/json" }
73
- headers["Authorization"] = "Bearer #{api_key}" if api_key && !api_key.empty?
73
+ headers["OPEN-SANDBOX-API-KEY"] = api_key if api_key && !api_key.empty?
74
74
  headers.merge(extra)
75
75
  end
76
76
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenSandbox
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_sandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grayson Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-29 00:00:00.000000000 Z
11
+ date: 2026-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty