The container runs the LibraryTS agent harness in harness/harness.py on port
9000. It provides a health check at /healthz and an authenticated trace
endpoint at POST /v1/trace/runs.
Set LLM_API_KEY and AGENT_TRACE_KEY in the harness process environment.
Set LLM_BASE_URL and LLM_MODEL to override the image defaults. Send
X-Agent-Trace-Key with {"message":"…","stream":true} for SSE, or set
stream to false for a single JSON response. sdk/opentrek_trace.py is the
direct HTTP client.
sdk/aliyun_template.pycreates or waits for a generation-2 template and manages a temporary Team API key through Alibaba Cloud OpenAPI.sdk/aliyun_rollout.pycreates one E2B sandbox per message, streams its trace into local JSONL, and terminates the test instances.- Install
sdk/aliyun-requirements.txtusing Python 3.11 or later. See the LibraryTS Agent Sandbox skill for the Hangzhou workflow, credential setup, and end-to-end commands.