AI Worker worker.md

OpenSandbox

OpenSandbox is a general-purpose sandbox platform for AI applications, offering multi-language SDKs, unified sandbox APIs, and Docker/Kubernetes runtimes for scenarios like Coding Agents, GUI Agent...

Agent framework 3,208 stars Python Apache-2.0 Worker-compatible

Source#

Tags#

aiai-agentai-infrakubernetessandbox

Integration notes#

Framework-level abstraction; derive bounded worker contracts from concrete tasks and APIs in docs/examples.

worker.md example#

Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.

---
id: opensandbox-repo-derived-worker
name: OpenSandbox Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/opensandbox/
source_repository: https://github.com/alibaba/OpenSandbox
repository_default_branch: main
repository_language: Python
repository_license: Apache-2.0
repository_updated_at: 2026-03-01
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-03-01
tags:
  - ai
  - ai-agent
  - ai-infra
  - kubernetes
  - sandbox
---

# OpenSandbox Repo-Derived Worker

## Repo-derived summary
- Registry summary: OpenSandbox is a general-purpose sandbox platform for AI applications, offering multi-language SDKs, unified sandbox APIs, and Docker/Kubernetes runtimes for scenarios like Coding Agents, GUI Agent...
- Repository description: OpenSandbox is a general-purpose sandbox platform for AI applications, offering multi-language SDKs, unified sandbox APIs, and Docker/Kubernetes runtimes for scenarios like Coding Agents, GUI Agents, Agent Evaluation, AI Code Execution, and RL Training.
- Stars (snapshot): 3,208
- Primary language: Python
- Worker mode classification: agent-orchestration-worker

## Extracted from
- https://github.com/alibaba/OpenSandbox
- https://github.com/alibaba/OpenSandbox/blob/main/README.md
- https://api.star-history.com/svg?repos=alibaba/OpenSandbox&type=date&legend=top-left

## Evidence notes (from repository text)
- README summary paragraph: OpenSandbox is a **general-purpose sandbox platform** for AI applications, offering multi-language SDKs, unified sandbox APIs, and Docker/Kubernetes runtimes for scenarios like Coding Agents, GUI Agents, Agent Evaluation, AI Code Execution, and RL Training.
- - **Multi-language SDKs**: Provides sandbox SDKs in Python, Java/Kotlin, JavaScript/TypeScript, C#/.NET, Go (Roadmap), and more.
- - **[code-interpreter](examples/code-interpreter/README.md)** - End-to-end Code Interpreter SDK workflow in a sandbox.
- - **[aio-sandbox](examples/aio-sandbox/README.md)** - All-in-One sandbox setup using the OpenSandbox SDK.
- - **[agent-sandbox](examples/agent-sandbox/README.md)** - Run OpenSandbox on Kubernetes via https://github.com/kubernetes-sigs/agent-sandbox.
- - **[langgraph](examples/langgraph/README.md)** - LangGraph state-machine workflow that creates/runs a sandbox job with fallback retry.

## Installation hints found in README
- `pip install opensandbox-server`
- `pip install opensandbox-code-interpreter`
- `uv pip install opensandbox-server`
- `uv pip install opensandbox-code-interpreter`

## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "task",
    "context"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "task": {
      "type": "string"
    },
    "context": {
      "type": "object"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "status",
    "result"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "retryable_error",
        "invalid_request",
        "invalid_output"
      ]
    },
    "result": {
      "type": "object"
    }
  }
}
```

### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use

## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.

How to use#

  • Save this as a worker spec file (for example: opensandbox-my-task.worker.md).
  • Replace the input/output schemas and purpose with your real bounded task.
  • Enforce schema validation + timeout + retry policy in your runtime before production use.

Citation#

Reference URL: https://worker.md/registry/opensandbox/

Source URL: https://github.com/alibaba/OpenSandbox