lybic cloud-computer skill
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 apps and complex flows where APIs are missing or incomplete. It is designed for control and observability. You can monitor execution in real time, stop it when needed, and use logs and replay to debug, reproduce runs, and evaluate reliability. For long running tasks, iterative experimentation, or sensitive environments, sandboxed execution helps reduce risk and operational overhead.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/aenjoy/lybic-sandboxLybic 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
}
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-aenjoy-lybic-sandbox": {
"enabled": true,
"auto_update": true
}
}
}