Skip to main content
List and filter your sandboxes to find existing environments, monitor their status, and manage multiple sandboxes efficiently.

Prerequisites

Before you begin, make sure you have:
  • HopX API key - Get one from console.hopx.dev or see [API key Management](/API key)
  • SDK installed - Python SDK (pip install hopx-ai) or JavaScript SDK (npm install @hopx-ai/sdk)
  • At least one sandbox - You should have created at least one sandbox (see Creating Sandboxes)

Basic Listing

List all your sandboxes:
Expected Output:

Filtering by Status

Filter sandboxes by their current status:
Expected Output:

Combining Filters

Combine multiple filters:

Lazy Iteration (Python)

For better memory usage with many sandboxes, use the iterator:
The iter() method is more memory-efficient for large numbers of sandboxes because it fetches pages on-demand rather than loading all sandboxes into memory at once.

Getting Detailed Information

Get detailed information for each sandbox:

Common Use Cases

Find a Specific Sandbox

Count Sandboxes by Status

Clean Up Old Sandboxes

API Direct Access

You can also list sandboxes using direct API calls:

Implementation

Next Steps