mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-15 17:01:02 +00:00
* remove website .astro * fix default origin * docs: comprehensive documentation overhaul - Add quickstart with multi-platform examples (E2B, Daytona, Docker, local) - Add environment variables setup with platform-specific tabs - Add Python SDK page (coming soon) - Add local deployment guide - Update E2B/Daytona/Docker guides with TypeScript examples - Configure OpenAPI auto-generation for API reference - Add CORS configuration guide - Update manage-sessions with Rivet Actors examples - Fix SDK method names and URLs throughout - Add icons to main documentation pages - Remove outdated universal-api and http-api pages * docs: add universal schema and agent compatibility docs - Create universal-schema.mdx with full event/item schema reference - Create agent-compatibility.mdx mirroring README feature matrix - Rename glossary.md to universal-schema.mdx - Update CLAUDE.md with sync requirements for new docs - Add links in README to building-chat-ui, manage-sessions, universal-schema - Fix CLI docs link (rivet.dev -> sandboxagent.dev) * docs: add inspector page and daytona network limits warning
43 lines
930 B
Text
43 lines
930 B
Text
---
|
|
title: "Local"
|
|
description: "Run the daemon locally for development."
|
|
---
|
|
|
|
For local development, you can run the daemon directly on your machine.
|
|
|
|
## With the CLI
|
|
|
|
```bash
|
|
# Install
|
|
curl -fsSL https://releases.rivet.dev/sandbox-agent/latest/install.sh | sh
|
|
|
|
# Run
|
|
sandbox-agent server --no-token --host 127.0.0.1 --port 2468
|
|
```
|
|
|
|
Or with npm:
|
|
|
|
```bash
|
|
npx sandbox-agent server --no-token --host 127.0.0.1 --port 2468
|
|
```
|
|
|
|
## With the TypeScript SDK
|
|
|
|
The SDK can automatically spawn and manage the server as a subprocess:
|
|
|
|
```typescript
|
|
import { SandboxAgent } from "sandbox-agent";
|
|
|
|
// Spawns sandbox-agent server as a subprocess
|
|
const client = await SandboxAgent.start();
|
|
|
|
await client.createSession("my-session", {
|
|
agent: "claude",
|
|
permissionMode: "default",
|
|
});
|
|
|
|
// When done
|
|
await client.dispose();
|
|
```
|
|
|
|
This installs the binary (if needed) and starts the server on a random available port. No manual setup required.
|