# Use the Zeish session client

Collection: sdk
Human docs: https://zei.sh/docs/sdk

Use one agent-friendly object for control and data-plane work.

createZeishSandboxClient returns sessions with waitForAccess, credential refresh, commands, files, desktop actions, lifecycle, logs, events, previews, ports, terminal URLs, and sandbox-scoped snapshots.
The session client uses workingDirectory, timeoutMs, and environment. It is the easiest path for a long-running agent workflow.

Example:

```
import { createZeishSandboxClient } from "@zeish/computesdk-provider";

const client = createZeishSandboxClient({
  apiKey: process.env.ZEISH_API_KEY!,
  baseUrl: "https://api.zei.sh/api/v1",
  defaultTemplateId: process.env.ZEISH_TEMPLATE_ID!,
});

const sandbox = await client.create({ name: "agent-run" });
await sandbox.waitForAccess();
```
