API Bases
RunTools exposes a few public API bases. The SDK routes calls for you, so most applications only needRUNTOOLS_API_KEY.
rt.sandbox, rt.agent, rt.tools, rt.secrets, rt.auth, or rt.billing.
Authentication
API keys use theX-API-Key header:
Create an API key
API keys are managed from the Credentials page or through the CLI.
Request Format
JSON endpoints expect:Response Format
Most APIs return a JSON envelope:Errors
Pagination
List endpoints that page results return cursor metadata:rt.sandbox.list() for all pages or rt.sandbox.listPage() when you need the cursor.
Core Resources
Sandboxes
Create sandboxes, execute commands, pause, resume, and destroy them.
Workspaces
Manage persistent workspaces and file operations.
Agents
Create agents and run one-shot or threaded agent tasks.
Threads
Read cloud thread history, subscribe to live frames, and publish local runtime events.
Models
List selectable Platform/BYOK models and use the platform model proxy.
RunMesh
Link local devices and manage private mesh nodes.
Activity
Query customer-visible resource activity.
Billing
Read credits, usage, top-ups, and customer-facing resource billing summaries.
Tools
Search Tool Hub, install tools, store credentials, and execute actions.