شعار Onlyboxes

Onlyboxes

المجتمع
Coooolfan

Code Execution Sandbox Platform Solution for Individuals and Small Teams with MCP

الناشرCoooolfan
المستودعonlyboxes
اللغةGo
التفريعات
15
النجوم
53
الأدوات المتاحة
0
نوع نقل البياناتstdio
الترخيصAGPL-3.0
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Onlyboxes إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 53، والنسخ المتفرعة: 15 في المستودع المرتبط.

Onlyboxes

简体中文

Onlyboxes is a self-hosted code execution sandbox platform for individuals and small teams.

It uses a control-plane (console) and execution-plane (worker) architecture, and exposes both REST APIs and MCP tools.

Key Features

  • Self-hosted all components: control node (console) + worker nodes (worker)
  • Separated control and execution planes:
    • Workers support horizontal scaling
    • Workers support multi-language heterogeneous implementations
    • Workers support multiple runtimes
  • Full account system: resource isolation (stateful containers, sessions) between accounts
  • MCP tools:
    • pythonExec: Python code execution
    • terminalExec: stateful terminal sessions
    • readImage: model-readable images
  • REST API: all MCP tools also available via HTTP + async task API

[!WARNING]

In the current release, console (gRPC + HTTP) does not provide built-in TLS/mTLS.

worker rejects insecure console endpoints by default; plaintext is allowed only when WORKER_CONSOLE_INSECURE=true is explicitly set.

Put both console HTTP (:8089) and gRPC (:50051) endpoints behind your reverse proxy/gateway and enforce TLS for external traffic.

Architecture

Architecture Architecture

One-Click Installer (Linux)

For a single-machine deployment of console + worker-docker, run:

bash
curl -fsSL https://onlybox.es/install.sh | bash

The installer will:

  1. Check the environment (Linux, Docker, Docker Compose v2, systemd)
  2. Download and render the compose template with auto-generated credentials
  3. Start the console via docker compose up -d
  4. Create a normal worker
  5. Download the architecture-matched worker-docker release binary for the default latest version, or your --tag override
  6. Generate and enable a systemd service for the worker
  7. Poll until the worker comes online and print a result summary

Available options:

FlagDefaultDescription
--taglatest published releaseOptional release version override
--workdir$PWD/onlyboxesWorking directory
--yes / -yfalseNon-interactive mode, skip confirmations
--console-http-port8089Console HTTP port (host side)
--console-grpc-port50051Console gRPC port (host side)
--service-nameonlyboxes-worker-dockersystemd service name

Requirements: Linux, systemd, Docker Engine, Docker Compose v2, Python 3.

Quick Start (Manual)

1) Prerequisites

  • Control node:
    • Docker Engine (binaries are also available in releases — no Docker needed if deploying via binary)
  • Worker node:
    • Docker Engine (required by worker-docker)

2) Start the console service

  1. Create a working directory and a docker-compose.yml file in it:

    bash
    mkdir -p onlyboxes-console && cd onlyboxes-console
    yaml
    services:
      console:
        image: coolfan1024/onlyboxes:latest
        container_name: onlyboxes-console
        restart: unless-stopped
        environment:
          CONSOLE_HASH_KEY: "replace-with-long-random-key"
          CONSOLE_ENABLE_REGISTRATION: "true"
          CONSOLE_DASHBOARD_USERNAME: "admin"     # only for first run
          CONSOLE_DASHBOARD_PASSWORD: "change-me" # only for first run
        ports:
          - "8089:8089"
          - "50051:50051"
        volumes:
          - ./db:/app/db
  2. Replace at least:

    • CONSOLE_HASH_KEY
    • CONSOLE_DASHBOARD_PASSWORD
  3. Start console:

    bash
    docker compose up -d

Default endpoints:

  • Console Web UI / HTTP REST API / MCP endpoint: http://127.0.0.1:8089
  • gRPC: 127.0.0.1:50051

3) Sign in and create an access token

  • Open http://127.0.0.1:8089 in your browser.
  • Sign in with the initialized admin account. Console login page
  • Go to the token management page and create an access token. Token created dialog (one-time plaintext token)
  • Save the plaintext token immediately (it is returned only once).

4) Create a worker

  • Go to Workers page and create a worker. Workers page
  • Copy and securely store the startup command from the creation dialog (WORKER_SECRET is one-time visible). Worker created dialog (startup command and one-time secret)
  • (Optional) Click Open in Startup Tool with Id and Secret to open the startup command builder with the worker id and secret pre-filled.
    • On the opened page, you can edit all available options. The generated startup command appears at the bottom of the page — copy and save it. Startup command builder

5) Run worker

[!WARNING] Workers support different runtimes and environments. The current release only provides worker-docker. This section uses the Docker runtime as an example.

  1. Log in to the machine where the worker will be deployed.

    • Ensure Docker Engine is installed.
    • Ensure the worker can reach the console gRPC endpoint.
  2. Download the latest worker-docker binary from GitHub Releases:

    • https://github.com/onlyboxes/onlyboxes/releases/latest
  3. Use the startup command values from the dashboard, and replace the executable path on the last line with your downloaded binary.

    • Workers reject insecure console endpoints by default; set WORKER_CONSOLE_INSECURE=true only to allow plaintext connections.
    bash
    # Example
    WORKER_CONSOLE_INSECURE=true \
    WORKER_CONSOLE_GRPC_TARGET=127.0.0.1:50051 \
    WORKER_ID=<worker_id> \
    WORKER_SECRET=<worker_secret> \
    /path/to/onlyboxes-worker-docker

6) Verify readiness

  • Confirm the worker is online on the dashboard Workers page.
  • For REST API request examples, see docs/API.md.
  • If no tokens are configured, /mcp and execution APIs return 401 by design.
  • Add the MCP endpoint http://127.0.0.1:8089/mcp in any LLM Chat Client, set the token, and verify it works correctly. claude-code-demo

FAQ

  • Q: Worker stays offline after starting? A: Check that WORKER_CONSOLE_GRPC_TARGET points to the correct console gRPC address and verify network connectivity.

  • Q: Can a worker be deployed on the same machine as the console? A: Yes.

  • Q: Can a worker run inside Docker? A: In theory, yes. However, it is not recommended because the worker needs access to the host Docker daemon. You would need to handle Docker-in-Docker yourself.

Production Checklist

  • Replace all default credentials.
  • Use a reverse proxy to enforce TLS for :8089 and :50051.
  • Persist and back up the SQLite data directory (CONSOLE_DB_PATH).
  • Run workers on isolated hosts to avoid sharing the Docker daemon with the console.
  • Read the Configuration Reference below for all available options and adjust as needed.

Configuration Reference

Console (console)

Environment VariableDefaultNotes
CONSOLE_HTTP_ADDR:8089Dashboard + REST API listen address
CONSOLE_GRPC_ADDR:50051Worker registry gRPC listen address
CONSOLE_WORKER_CONNECTION_CONFLICT_POLICYREPLACEDuplicate Worker connection policy: REPLACE disconnects the existing connection; REJECT rejects the new connection
CONSOLE_HASH_KEY(required)HMAC key for hashing worker secrets and access tokens
CONSOLE_DB_PATH./db/onlyboxes-console.dbSQLite database path
CONSOLE_DB_BUSY_TIMEOUT_MS5000SQLite busy timeout
CONSOLE_TASK_RETENTION_DAYS30Retention for completed task records
CONSOLE_ENABLE_REGISTRATIONfalseAllow admin to register non-admin accounts
CONSOLE_DASHBOARD_USERNAME(empty)Used only for first admin initialization
CONSOLE_DASHBOARD_PASSWORD(empty)Used only for first admin initialization

Worker (worker-docker)

Environment VariableDefaultNotes
WORKER_ID(required)Issued by POST /api/v1/workers
WORKER_SECRET(required)Issued once by POST /api/v1/workers
WORKER_CONSOLE_GRPC_TARGET127.0.0.1:50051Console gRPC target
WORKER_CONSOLE_INSECUREfalsefalse enforces TLS endpoint; set true only to allow plaintext console gRPC
WORKER_HEARTBEAT_INTERVAL_SEC5Worker heartbeat interval
WORKER_HEARTBEAT_JITTER_PCT20Heartbeat jitter percent
WORKER_PYTHON_EXEC_DOCKER_IMAGEghcr.io/astral-sh/uv:python3.12-bookworm-slimRuntime image for pythonExec
WORKER_TERMINAL_EXEC_DOCKER_IMAGEcoolfan1024/onlyboxes-runtime:defaultRuntime image for terminalExec
WORKER_TERMINAL_OUTPUT_LIMIT_BYTES1048576Per-stream output limit

API Surfaces

  • Authentication: /api/v1/auth/*
  • Resource management: /api/v1/accounts*, /api/v1/api-keys*, /api/v1/tokens*, /api/v1/sessions*, /api/v1/workers*, /api/v1/proxy-routes*
  • Command execution: /api/v1/commands/*
  • Task execution: /api/v1/tasks*
  • MCP (Streamable HTTP): POST /mcp

Development

Local dev orchestration

scripts/dev.sh runs console / web / website in a tmux session. Every subcommand returns immediately, and logs land in scripts/.dev/<svc>.log.

bash
scripts/dev.sh start              # start all three
scripts/dev.sh start console web  # console + web only
scripts/dev.sh status             # session, port listeners, window state
scripts/dev.sh logs console       # last 200 log lines
scripts/dev.sh creds              # console admin credentials
scripts/dev.sh stop               # stop everything

Web dev URL defaults to http://127.0.0.1:5178 and proxies /api/* and /mcp to http://127.0.0.1:8089.

Workers are not orchestrated — their startup arguments vary per implementation, so start them manually. Full usage: scripts/README.md.

Useful docs

  • Unified API reference: docs/API.md
  • Console internals: console/README.md
  • Worker internals: worker/worker-docker/README.md
  • API/proto guide: api/README/proto.md
  • Web app guide: web/README.md

Release & Images

  • GitHub workflow: .github/workflows/package-release.yml — run it manually from the Actions tab, pick the branch and enter the version (e.g. 0.7.2); the tag is created from that branch. Turn off latest when patching an older line so the newest release keeps the label
  • Website-only deploy: .github/workflows/deploy-website.yml — manual, independent of a release
  • Console Docker image: coolfan1024/onlyboxes:<version> and coolfan1024/onlyboxes:latest
  • Terminal runtime images: coolfan1024/onlyboxes-runtime:<version>-default, <version>-default-cn, and <version>-lobehub; stable aliases are default, default-cn, lobehub, and latest (same as default)
  • Console binary includes embedded web assets

Security and Operational Notes

  • Console does not provide built-in TLS/mTLS in this release; worker-docker requires explicit WORKER_CONSOLE_INSECURE=true to connect over plaintext.
  • Put console HTTP (:8089) and gRPC (:50051) behind a reverse proxy/gateway and enforce TLS on public/external links.
  • WORKER_SECRET and access token plaintext values are returned only at creation time.
  • Dashboard login sessions are in-memory and are invalidated when console restarts.

Links

License

GNU AGPL v3.0

استخدم MCP الخاص بـ Onlyboxes مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Onlyboxes، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Onlyboxes كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Onlyboxes.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "onlyboxes": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Onlyboxes، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Onlyboxes.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Onlyboxes لمساعدتي في هذه المهمة؟
Onlyboxes
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Onlyboxes.

الأسئلة الشائعة

ما استخدامات خادم MCP Onlyboxes؟

Onlyboxes هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Onlyboxes مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Onlyboxes مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Onlyboxes مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Onlyboxes، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Onlyboxes بـ TypingMind؟

يعمل Onlyboxes عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Onlyboxes في TypingMind؟

يتيح Onlyboxes إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Onlyboxes؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Onlyboxes يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇