SDK & CLI
TypeScript client
The SDK wraps the REST API with typed resource helpers.
typescript
import { TngatcloudClient } from "@tngatcloud/sdk";
const client = new TngatcloudClient({
apiKey: process.env.TNGAT_API_KEY!,
baseUrl: "https://api.tngat.com",
});
const project = await client.projects.create({ name: "shopfront", port: 3000 });
const db = await client.databases.create({
projectId: project.id,
name: "orders",
engine: "postgres",
cpu: "500m",
memoryMb: 1024,
storageGb: 10,
});
const bucket = await client.buckets.create({
projectId: project.id,
name: "assets",
quotaGb: 50,
});Onboarding an AI agent
Dashboard → Onboard Your Agent copies a ready-made prompt describing the SDK contract. Paste it into your assistant and it can provision infrastructure on your behalf using a scoped API key.
Give an agent a key with the narrowest role that works, and bind it to your organization's IP allowlist. Agent-driven changes appear in the audit log under the service account that owns the key.
Approval workflow
The built-in agent asks for explicit approval before it runs a mutating call. Approvals are per-request and are recorded alongside the action they authorised.