Documentation Index
Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
@runtools/sdk is the TypeScript client and project-definition package for Runtools. It exports the RunTools client plus helpers such as defineAgent(), defineTool(), defineSandbox(), and defineConfig().
The SDK is not published to npm yet. In early access, use the local repo or a local workspace dependency.
Client
accessToken, apiUrl, authUrl, toolsUrl, and convexUrl. Environment variables with the same purpose are supported:
| Variable | Default |
|---|---|
RUNTOOLS_API_KEY | Required unless apiKey or accessToken is passed |
RUNTOOLS_API_URL | https://api.runtools.ai |
RUNTOOLS_AUTH_URL | https://auth.runtools.ai |
RUNTOOLS_TOOLS_URL | https://tools.runtools.ai |
RUNTOOLS_CONVEX_URL | Platform default |
Managers
| Manager | Description |
|---|---|
rt.sandbox | Create, list, get, destroy, exec, pause, resume, and subscribe to sandbox state |
rt.agent | List, run, thread, visibility, and attachment helpers |
rt.tools | Marketplace search/list, install, credentials, custom tools, and tool execution |
rt.secrets | User-private and org-shared secrets |
rt.workflows | Workflow save/update/run/version/trigger APIs |
rt.threads | Cloud thread history, events, rollouts, archive, rename, compact, and streaming subscriptions |
rt.sshKeys | SSH key management |
rt.devices | RunMesh device and audit APIs |
rt.auth | OAuth connections, API keys, BYOA provider configs |
Example
Error Handling
HTTP failures throwRunToolsApiError:
Definition Helpers
Use helpers inside deployable projects:runtools deploy reads runtools.config.ts, sandboxes/*.ts, tools/*.ts, and agents/*.ts.
Next Steps
Installation
Set up the package locally.
Sandboxes
Use
rt.sandbox.Agents
Use
defineAgent() and rt.agent.Tools
Use
defineTool() and rt.tools.