TypeScript SDK
The official TypeScript SDK provides type-safe access to the Chaser API for session management, workspaces, command execution, file operations, browser CDP, accounts, billing, webhooks, audit, and jobs.
Install
Create a client
The account parameter maps to the X-Chaser-Account header, so one client can target a personal or organization context.
Sessions
Proxy selection
Use the root-level proxy field for the public API contract. The SDK still normalizes the older network.proxy.url shape for backward compatibility, but new code should send proxy directly.
Command execution
Workspaces
Workspace selectors are resolved inside the active account. Prefer the human
name when it is unambiguous; otherwise use the UUID. Ambiguous names return
workspace_name_ambiguous.
Files
Port forwarding
Browser CDP
client.browser.connect() waits for readiness, fetches /json/version, and opens a WebSocket CDP connection.
If you connect manually, the raw WebSocket debugger URL lives in
browser.version(...).webSocketDebuggerUrl and is also exposed via
client.browser.cdpWebSocketUrl(sessionId).
Organizations and service accounts
Error handling
Scope
The SDK covers the core Chaser API surface. It does not include CHASM assistant management or act as an MCP transport wrapper. For MCP usage, call POST /v1/mcp directly.