Skip to main content

Overview

Clone configured instances instantly. No repetitive setup, 75% faster.

Quick Start

import { Instance, In10ntClient } from '@in10nt/sdk';

const client = new In10ntClient();

// 1. Create and configure base instance
const base = await client.instances.create({
  name: 'calculator-base',
  description: 'Python calculator with deps'
});

await base.run('Setup calculator.py with numpy and pandas');

// 2. Snapshot the workspace
await base.snapshot();

// 3. Clone instantly
const clone = await client.instances.createFromSavedTemplate({
  templateName: 'calculator-base',
  newInstanceName: 'calc-clone-1'
});

// 4. Use immediately (inherits all files & deps)
await clone.run('Calculate average from data.csv');

What’s Cloned

  • Inherited: description, env, region, vmSize, all files, installed packages
  • Not inherited: name (you provide new name)

Examples

Web Development

const client = new In10ntClient();

const webBase = await client.instances.create({
  name: 'web-dev-base',
  description: 'Node, Express, React'
});

await webBase.run('Setup fullstack env with common packages');
await webBase.snapshot();

// Clone for each project
const project = await client.instances.createFromSavedTemplate({
  templateName: 'web-dev-base',
  newInstanceName: 'ecommerce-site'
});

await project.run('Build e-commerce API');

Data Science

const client = new In10ntClient();

const mlBase = await client.instances.create({
  name: 'ml-base',
  description: 'Python ML stack'
});

await mlBase.run('Install numpy, pandas, scikit-learn, matplotlib');
await mlBase.snapshot();

const analysis = await client.instances.createFromSavedTemplate({
  templateName: 'ml-base',
  newInstanceName: 'sales-analysis'
});

await analysis.run('Analyze sales trends');

Best Practices

// Clear names with version
'web-dev-v2'  // Node 18, React 18

// Document in description
const base = await client.instances.create({
  name: 'ml-base-v1',
  description: 'Python 3.11, numpy, pandas, scikit-learn'
});

// Test before using
const test = await client.instances.createFromSavedTemplate({
  templateName: 'ml-base-v1',
  newInstanceName: 'test-clone'
});
await test.run('Quick test');

Manage Saved Templates

const client = new In10ntClient();

// List all saved templates
const saved = await client.savedTemplates.list();

// Delete old templates
await client.savedTemplates.delete('old-template');

vs Container Templates

FeatureSaved TemplateContainer Template
MethodcreateFromSavedTemplate()client.templates.create()
SpeedInstant2-5 minutes
ClonesFiles & depsDocker image
Use caseReuse workspaceCustom OS/packages

Save 75% on Setup

const client = new In10ntClient();

// Setup once, clone many
const base = await client.instances.create({
  name: 'base',
  description: 'Base agent'
});
await base.run('Install packages'); // 5 min once
await base.snapshot();

for (let i = 0; i < 10; i++) {
  const clone = await client.instances.createFromSavedTemplate({
    templateName: 'base',
    newInstanceName: `agent-${i}`
  });
  await clone.run('Do work'); // 2 min
}
// Total: 25 minutes (75% faster than setup each time!)