Skip to main content

Prerequisites

  • A GitHub account
  • A GitHub personal access token (or use the device flow)

1. Get a GitHub token

Use the device flow to authenticate without managing tokens manually:
This returns a user_code and verification_uri. Open the URL in your browser, enter the code, and then poll for the token:

2. Create a sandbox

The response includes your sandbox details:

3. Run a command

4. Chat with Claude

This returns a Server-Sent Events stream with Claude’s response.

Next steps

Sandbox lifecycle

Learn about pausing, resuming, and managing sandboxes.

File management

Read and write files inside your sandbox.

Claude integration

Configure Claude OAuth credentials for full AI access.

API reference

Explore every endpoint in detail.