warning
Legacy managed-runtime reference. Command examples below describe the older desktop/managed llama.cpp preview and are legacy, not the current BCCLI v0.4 command surface. Use BCCLI and Local AI for current instructions.TypeScript models
Target SDK design
typescript
import { BotConnectorClient } from "@botconnector/sdk";
const client = new BotConnectorClient();
// List locally available models
const models = await client.models.list();
for (const m of models) console.log(m.id, m.size);
// Download a quantization
await client.models.download("publisher/model", { quant: "Q4_K_M" });
// Load / unload
await client.models.load("publisher/model");
await client.models.unload();The source SDK is implemented, but no npm package is published. The CLI remains the supported packaged path for model management: botconnector models, botconnector get, botconnector run. HTTP calls against the Native API are available today with fetch.