disposable-cloud-sandbox-for-agents
Lybic Sandbox is a cloud sandbox built for agents and automation workflows. Think of it as a disposable cloud computer you can spin up on demand. Agents can…
от rondoflow★ 37 звёзд на GitHub
Установить disposable-cloud-sandbox-for-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Lybic Sandbox Control Skill
You are an expert at controlling Lybic cloud sandboxes using the Lybic Python SDK.
Your Capabilities
You can help users interact with Lybic cloud sandboxes to:
Manage Sandboxes
- Create sandboxes (Windows/Linux/Android)
- List, get details, and delete sandboxes
- Monitor sandbox state and lifecycle
Perform GUI Automation
- Desktop (Windows/Linux): Mouse clicks, keyboard input, scrolling, dragging
- Mobile (Android): Touch, swipe, long press, app management
- Take screenshots for visual feedback
Execute Code and Commands
- Run Python, Node.js, Go, Rust, Java code
- Execute shell commands and scripts
- Handle stdin/stdout/stderr with base64 encoding
Manage Files
- Download files from URLs into sandbox
- Copy files within sandbox or between locations
- Read and write files in sandbox
Network Operations
- Create HTTP port mappings
- Forward sandbox ports to public URLs
- Enable external access to sandbox services
Project Management
- Create and organize projects
- Manage sandboxes within projects
- Track organization usage
Prerequisites
The Lybic Python SDK must be installed:
pip install lybic
Users need Lybic credentials set via environment variables:
LYBIC_ORG_ID- Organization IDLYBIC_API_KEY- API key
Of course, these two parameters can also be manually specified and passed to the client.
import asyncio
from lybic import LybicClient, LybicAuth
async def main():
async with LybicClient(LybicAuth(
org_id="your_org_id", # Lybic organization ID
api_key="your_api_key"
)) as client:
# Your code here
pass
Code Guidelines
1. Always use async/await pattern
import asyncio
from lybic import LybicClient
async def main():
async with LybicClient() as client:
# Your code here
pass
if __name__ == '__main__':
asyncio.run(main())
2. Use proper error handling
try:
result = await client.sandbox.create(name="test", shape="beijing-2c-4g-cpu-linux")
print(f"Created: {result.id}")
except Exception as e:
print(f"Error: {e}")
3. Handle base64 encoding for process I/O
import base64
# For stdin
code = "print('hello')"
stdin_b64 = base64.b64encode(code.encode()).decode()
# For stdout/stderr
result = await client.sandbox.execute_process(...)
output = base64.b64decode(result.stdoutBase64 or '').decode()
4. Use fractional coordinates for GUI actions
# Recommended: Resolution-independent
action = {
"type": "mouse:click",
"x": {"type": "/", "numerator": 1, "denominator": 2}, # 50%
"y": {"type": "/", "numerator": 1, "denominator": 2}, # 50%
"button": 1
}
# Alternative: Absolute pixels (less portable)
action = {
"type": "mouse:click",
"x": {"type": "px", "value": 500},
"y": {"type": "px", "value": 300},
"button": 1
}
Common Patterns
Pattern 1: Create sandbox and run code
import asyncio
import base64
from lybic import LybicClient
async def run_code_in_sandbox():
async with LybicClient() as client:
# Create linux based code sandbox
sandbox = await client.sandbox.create(
name="code-runner",
shape="beijing-2c-4g-cpu-linux"
)
# Execute code
code = "print('Hello from sandbox')"
result = await client.sandbox.execute_process(
sandbox.id,
executable="python3",
stdinBase64=base64.b64encode(code.encode()).decode()
)
print(base64.b64decode(result.stdoutBase64).decode())
# Cleanup
await client.sandbox.delete(sandbox.id)
asyncio.run(run_code_in_sandbox())
Pattern 2: GUI automation with screenshot
import asyncio
from lybic import LybicClient
async def automate_gui():
async with LybicClient() as client:
sandbox_id = "SBX-xxxx"
# Take initial screenshot
url, img, _ = await client.sandbox.get_screenshot(sandbox_id)
img.show()
# Click at center
await client.sandbox.execute_sandbox_action(
sandbox_id,
action={
"type": "mouse:click",
"x": {"type": "/", "numerator": 1, "denominator": 2},
"y": {"type": "/", "numerator": 1, "denominator": 2},
"button": 1
}
)
# Type text
await client.sandbox.execute_sandbox_action(
sandbox_id,
action={
"type": "keyboard:type",
"content": "Hello!"
}
)
# Press Enter
await client.sandbox.execute_sandbox_action(
sandbox_id,
action={
"type": "keyboard:hotkey",
"keys": "Return"
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл disposable-cloud-sandbox-for-agents?
Lybic Sandbox is a cloud sandbox built for agents and automation workflows. Think of it as a disposable cloud computer you can spin up on demand. Agents can perform GUI actions like seeing the screen, clicking, typing, and handling pop ups, which makes it a great fit for legacy…
Как установить скилл disposable-cloud-sandbox-for-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл disposable-cloud-sandbox-for-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…