Skip to main content

Installation

Install the SDK using npm or yarn:
npm install @in10nt/sdk
yarn add @in10nt/sdk

Setup

Get your API key from the in10nt dashboard. You can either set it as an environment variable or pass it directly.
export IN10NT_API_KEY=your_api_key
import { Instance } from '@in10nt/sdk';

// Uses IN10NT_API_KEY automatically
const instance = await Instance.create({
  name: 'my-first-agent',
  description: 'My first coding agent'
});

Client path

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

const client = new In10ntClient({
  apiKey: 'your_api_key'  // or set IN10NT_API_KEY env var
});

Create Your First Agent

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

const instance = await Instance.create({
  name: 'my-first-agent',
  description: 'My first coding agent'
});

const result = await instance.run(
  'Create a simple Express.js server with health check'
);

console.log(result.response);
console.log(`Tokens: ${result.tokensUsed}`);

await instance.destroy();
Both name and description are required when creating instances

Reconnect to an Existing Instance

// By ID
const instance = await Instance.connect('inst_abc123');

// List all
const all = await Instance.list();

Next Steps

What You Can Do

  • Create instances: Spin up AI coding agents in seconds
  • Run tasks: Execute complex coding tasks with natural language
  • Maintain context: Continue conversations across multiple prompts
  • Custom environments: Use any Docker image as your base
  • Track usage: Monitor token consumption and costs
  • Namespaced sub-modules: instance.tasks.*, instance.ports.*, instance.files.*