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:- Python
- JavaScript
Filtering by Status
Filter sandboxes by their current status:- Python
- JavaScript
Combining Filters
Combine multiple filters:- Python
- JavaScript
Lazy Iteration (Python)
For better memory usage with many sandboxes, use the iterator:- Python
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:- Python
- JavaScript
Common Use Cases
Find a Specific Sandbox
- Python
- JavaScript
Count Sandboxes by Status
- Python
- JavaScript
Clean Up Old Sandboxes
- Python
- JavaScript
API Direct Access
You can also list sandboxes using direct API calls:Implementation
- SDK: Sandbox.list() - Python SDK method
- CLI - Command-line interface
- SDK: Sandbox.iter() - Python SDK iterator method
- API: GET /v1/sandboxes - Control Plane API endpoint
Related
- Creating Sandboxes - Create new sandboxes
- Connecting to Sandboxes - Connect to existing sandboxes
- Managing Sandbox State - Control sandbox lifecycle
- API Pagination - Understand pagination in list results
Next Steps
- Learn about Connecting to Existing sandboxes from the list
- Understand Managing State operations
- Explore Timeout Management for listed sandboxes

