@nanoterm/sdk
v0.4.0
Published
TypeScript SDK for NanoTerm Agent Runtime — create workspaces, execute commands, manage policies
Maintainers
Readme
@nanoterm/sdk
TypeScript SDK for NanoTerm Agent Runtime.
Install
npm install @nanoterm/sdkUsage
import { NanoTermClient } from '@nanoterm/sdk'
const client = new NanoTermClient({
apiKey: 'nt_your_api_key'
})
// Create workspace with Claude Code
const ws = await client.createWorkspace({
image: 'ghcr.io/momenntal/nanoterm-claude-code',
repo: { url: 'https://github.com/org/repo.git' }
})
// Execute command
const result = await client.exec(ws.id, ['npm', 'test'])
console.log(result.exitCode) // 0
// Get diff of agent's changes
const diff = await client.getDiff(ws.id)Documentation
Full docs at docs.nanoterm.dev
License
MIT - Momenntal Inc.
