Examples, tutorials, and utilities for building on Tencent Cloud Agent Sandbox / AGS.
- Skills: reference Agent Skill example for AGS; see
skills/README.md - Tutorials: SDK and notebook-based onboarding
- Examples: runnable browser, code, mobile, Go, and OSWorld demos
- Benchmarks: k6 stress scripts
- Utils: debugging helpers such as ttyd
uvfor Python examplespython3for local scriptsgofor Go examplesgit- Docker is useful for some workflows, but not required for every example
- Most Python examples in
examples/require Python >= 3.12 examples/osworld-agscurrently requires Python 3.10uvcan manage both interpreters.
The ags reference Skill example uses the agr CLI:
# One-line install (macOS / Linux)
curl -fsSL https://github.com/TencentCloudAgentRuntime/ags-cli/releases/latest/download/install.sh | sh
# Or via go install
go install github.com/TencentCloudAgentRuntime/ags-cli/cmd/agr@latest
agr version -o jsonexport E2B_API_KEY="your_ags_api_key"
export E2B_DOMAIN="ap-guangzhou.tencentags.com"Some Go examples use Tencent Cloud API credentials:
export TENCENTCLOUD_SECRET_ID="your_secret_id"
export TENCENTCLOUD_SECRET_KEY="your_secret_key"
export TENCENTCLOUD_REGION="ap-guangzhou"make examples-listMost examples provide a local make run target:
make example-setup EXAMPLE=mini-rl
make example-run EXAMPLE=mini-rlYou can also enter an example directory directly and run its local make setup / make run targets.
| Example | Stack | Notes |
|---|---|---|
browser-agent |
Python + browser sandbox + LLM | Browser automation agent |
custom-image-go-sdk |
Go | Custom-image / custom-tool startup |
data-analysis |
Python + code sandbox | Multi-context data workflow |
html-processing |
Python + browser/code sandboxes | Dual-sandbox HTML pipeline |
hybrid-cookbook |
Go | Minimal control-plane + data-plane flow |
mini-rl |
Python + code sandbox | Minimal RL tool-calling example |
mini-swe-agent |
Python + SWE sandbox + LLM | SWE-bench evaluation with AGS SWE sandbox |
mobile-use |
Python + mobile sandbox + Appium | Android automation |
openclaw-cookbook |
Node.js + custom image + COS | Run OpenClaw in AGS with official image |
osworld-ags |
Python 3.10 + OSWorld overlay | Heavy setup; requires an OSWorld-capable tool |
shop-assistant |
Python + browser sandbox | E-commerce search / add-to-cart demo |
See examples/README.md for per-example details and a starter/advanced/heavy picker.
The ags skill is a reference Agent Skill example for AGS. It demonstrates CLI-first AGS workflows with agr.
| Skill | Path | What it covers |
|---|---|---|
ags |
skills/ags/SKILL.md |
CLI-first AGS workflows with agr: tools, instances, code/shell execution, files, browser/mobile, storage mounts, API keys, debug instances, tool fork, and raw API fallback. |
Add from GitHub with the skills CLI:
npx skills add TencentCloudAgentRuntime/ags-cookbook --skill agsSee skills/README.md for the skill index and the progressive disclosure structure.
- Prefer
uv sync+uv run ...for Python examples - Do not assume root README defaults apply to every example; always check each example's README and
.env.example - AGS domains are region-specific; set
E2B_DOMAINexplicitly for the region you want to use - Some examples require pre-provisioned tools/templates in your AGS account
See CONTRIBUTING.md.
Apache 2.0. See LICENSE-Agent Sandbox Cookbook.txt.