Skip to main content
Templates define the base environment for HopX sandboxes. This hub covers all template operations, from listing pre-built templates to building custom templates with Docker images.

What You’ll Learn

  • How to list and view available templates
  • How to get detailed template information
  • How to build custom templates from Docker images
  • How to configure template resources and settings
  • How to cache and optimize templates

Template Management Overview

OperationSDK MethodAPI Endpoint
ListingSandbox.list_templates()GET /v1/templates
Getting DetailsSandbox.get_template()GET /v1/templates/:name
BuildingTemplateBuilderPOST /v1/templates/build
ConfigurationTemplateBuilder.configure()Template configuration
CachingTemplate cachingCache management

Core Concepts

Listing Templates

Discover available pre-built and custom templates.

Getting Template Details

View detailed information about specific templates.

Building Templates

Create custom templates from Docker images and build steps.

Template Configuration

Configure template resources, environment, and build steps.

Template Caching

Optimize template loading with caching strategies.
  • Template Caching - Cache templates for faster creation
  • SDK: Template caching options | API: Cache management endpoints

SDK Reference

Python SDK

Complete reference for Python template operations.

JavaScript SDK

Complete reference for JavaScript/TypeScript template operations.

API Reference

Control Plane API

REST API endpoints for template operations.

Quick Start

If you’re new to templates, start here:
  1. Listing Templates - Discover available templates
  2. Getting Template Details - View template information
  3. Building Templates - Create your first custom template

Next Steps