{"repo":"dzhng/claude-agent-server","free":true,"listed":false,"github":"https://github.com/dzhng/claude-agent-server","clone":"git clone https://github.com/dzhng/claude-agent-server.git","description":"Run Claude Agent (Claude Code) in a sandbox, control it via websocket","language":"TypeScript","stars":582,"topics":["agent","ai","claude","claude-agent-sdk","claude-agents","claude-code"],"license":null,"category":"ai-agents","readme_excerpt":"Claude Agent SDK WebSocket Server A WebSocket server that wraps the Claude Agent SDK, allowing real-time bidirectional communication with Claude through WebSockets. Deploy it as an E2B sandbox and connect via the TypeScript client library. Launch tweet / discussion Overview Typical Workflow: 1. Build Your E2B Image - Deploy the server as an E2B sandbox template using bun run build:e2b 2. Use the Client Library - Install @dzhng/claude-agent in your project and connect to your E2B sandbox 3. Modify the Server (Optional) - If you need custom behavior, edit the server code in packages/server/ 4. Test Locally - Use bun run start:server and bun run test:local to test your changes before rebuilding Quick Start 1. Setup Environment Create a .env file in the root directory: Add your API keys: Install dependencies: 2. Build Your E2B Image Build and deploy the server as an E2B template: This creates a sandbox template named claude-agent-server on E2B. The build process: - Creates a sandbox based on Bun 1.3 - Installs git and clones this repository - Installs dependencies - Configures the server to start automatically on port 3000 The build may take a few minutes. Once complete, your template is ready to use. 3. Use the Client Library Install the client library in your project: Connect to your E2B sandbox: That's it! The client library handles: - Creating and managing E2B sandboxes - WebSocket connection - Message serialization - Cleanup and resource management Modifying the Server If yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/dzhng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dzhng/claude-agent-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}