runtime-api-configs
БесплатноЗапускает вложенные скриптыНе проверенManage warm sandbox pools on OpenHands Enterprise by driving the runtime-api admin endpoints (list, save, delete warm runtime configurations) from a Python…
от OpenHands★ 190 звёзд на GitHubОб этом скилле
Runtime API - Warm Runtime Configurations
This plugin manages the warm sandbox pools used by OpenHands Enterprise. It
replaces the ad-hoc warm-runtime-configs.sh shell script embedded in the
docs and gives administrators a single, testable Python CLI for the same
workflow.
The CLI talks HTTP to the runtime-api service. It never modifies the cluster
directly, and it uses only the Python standard library, so it runs anywhere
python3 is available.
When to use this skill
Reach for this skill whenever the user wants to:
- List the effective warm-runtime configurations on an OHE install.
- Add or update a custom sandbox image (e.g.
openhands-php:8.4-v1) so users can select it from the Settings → Application → Default Sandbox dropdown. - Delete a database-managed configuration, restoring an installer-managed entry with the same name.
- Refresh configurations after upgrading OHE, when API-managed frozen snapshots need to be re-derived from the new installer template.
- Bootstrap credentials (
RUNTIME_API_URL,API_KEY,ADMIN_PASSWORD) from Kubernetes secrets so subsequent runs need no cluster access.
If the user is instead asking how to build a custom sandbox image (Dockerfile, versioning), point them at Building a Custom Image
- image building is out of scope for this skill.
Prerequisites
OpenHands Enterprise 0.64.0 or later.
Python 3.9+ on the machine running the CLI. No third-party packages.
The Runtime API Admin Password:
- VM (Replicated) installs: set via Admin Console → Config → Sandbox Configuration → Runtime API Admin Password.
- Helm installs: the value stored in the
admin-passwordKubernetes secret in the runtime-api namespace. Helm has no Admin Console.
Helm installs only: the runtime-api chart must be running in overlay mode and have warm pools enabled, so
v1_currentshows up inlistand can be used as atemplatesource. Set both in your umbrella values:runtime-api: warmRuntimes: enabled: true env: WARM_RUNTIME_CONFIG_OVERLAY: "1"Overlay mode is on by default on Replicated VM installs. Without it on Helm,
listreturns[]on a fresh install andtemplate v1_currentfails.
Setup
On any machine with HTTPS reachability to the runtime-api, export two env vars:
export RUNTIME_API_URL=https://runtime-api.<your-base-domain>
export ADMIN_PASSWORD=<runtime-api-admin-password> # see Prerequisites above
That is the full setup on any install where the runtime-api ingress is
reachable from the machine running the CLI. No kubectl, no SSH, no
cluster access. If the runtime-api is cluster-internal (Helm default), see
the Helm entry in the Advanced section below to port-forward first.
Under the hood, the CLI uses the admin password directly for save and
delete (via the PBKDF2 handshake), and for list and template it logs
in as admin and fetches the default read-only API key over HTTPS from
/api/admin/api-keys.
If you already know the read-only API key (for example, from an operator runbook), export it too and the CLI will skip the extra admin-login round trip on reads:
export API_KEY=<default api key>
If you have kubectl access to the cluster and prefer to pull all three
env vars from Kubernetes secrets in one step, see
Advanced: bootstrap from Kubernetes
at the bottom of this file.
CLI reference
Run with python3 scripts/warm_runtime_configs.py <subcommand>. Each
subcommand exits non-zero on error and prints the runtime-api's HTTP body
on failure.
| Subcommand | Auth | Purpose |
|---|---|---|
list |
API_KEY if set, else admin login |
Print the effective set of configurations. |
template <source> |
API_KEY if set, else admin login |
Fetch a config, strip identity fields, override image/count, print JSON ready to save. |
save <name> [--file F] |
Admin password | Upsert a configuration. Reads JSON from --file or stdin. |
delete <name> |
Admin password | Delete a database-managed configuration. |
bootstrap |
kubectl | Print export lines for RUNTIME_API_URL, API_KEY, ADMIN_PASSWORD. Optional; see Advanced below. |
Full help: python3 scripts/warm_runtime_configs.py --help and
python3 scripts/warm_runtime_configs.py <subcommand> --help.
Typical workflow
Register a new PHP sandbox image once credentials are in the environment:
# 1. Derive a config JSON from the current default, changing only the image
python3 scripts/warm_runtime_configs.py template v1_current \
--image ghcr.io/your-org/openhands-php:8.4-v1 --count 1 \
--output php-web.json
# 2. Save it
python3 scripts/warm_runtime_configs.py save php-web --file php-web.json
# 3. Confirm
python3 scripts/warm_runtime_c
Установить runtime-api-configs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл runtime-api-configs?
Manage warm sandbox pools on OpenHands Enterprise by driving the runtime-api admin endpoints (list, save, delete warm runtime configurations) from a Python CLI. Use when an OpenHands Enterprise administrator asks to add, update, delete, or inspect custom sandbox images, warm pools, or `warm-runtime-configs`, or when the docs point to `enterprise/custom-sandbox-images/multiple-images-warm-pools`.
Как установить скилл runtime-api-configs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл runtime-api-configs запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic