Copilot toolkit 2.0 from Microsoft runs many AI helpers safely
Version 2.0 of Microsoft's free Copilot toolkit for building AI helpers now runs many separate sessions on one shared engine, each with its own user identity and tools. Sessions start with no access to files or the command line unless you allow it. It works in six programming languages.
Microsoft released Copilot SDK 2.0, a toolkit for building apps with Copilot-style AI agents inside your own software.
The biggest change is a shared engine, rebuilt in Rust. One process can run many sessions, and each keeps its own state, passwords, tools, files and history. A session can also run as the user who asked for it, with that person's credentials.
Sessions can start with nothing switched on. In this empty mode there's no hidden shell or file access, and you list exactly which tools each session may use. Sessions are also saved, so one can continue on another machine if a process stops.
It works with TypeScript, Python, Go, .NET, Java and Rust. Microsoft warns of breaking changes: packages are renamed, options are grouped, and the engine now runs inside your own process by default.
New to this? The key idea
An agent toolkit lets you build AI helpers into your own software. A shared runtime is one engine serving many users, like one kitchen with separate order tickets, instead of building a new kitchen per customer. Starting from empty means the helper can do nothing until you list what it may touch, which is safer than starting with everything on and turning things off.
Use it at work
Use it for: building AI helpers into your own product or internal tools where many users each need their own sessions, identities and permissions. Platform developers and security reviewers should care.
Try it: setup code shown in the announcement:
import { CopilotClient, RuntimeConnection } from "@microsoft/copilot-sdk";
const client = new CopilotClient({
mode: "empty", // start from nothing: no ambient shell, files, or CLI defaults
runtime: RuntimeConnection.forTcp("copilot-runtime.internal", 4321), // the shared runtime service
});
The post gives no install commands. Start from the getting-started guide: https://github.com/microsoft/copilot-sdk/blob/main/docs/getting-started.md
The post describes six architectures that combine a shared runtime, per-session sandboxes and worker agents.
Before you roll it out: licence and pricing not stated, and no system requirements are listed. It was previously named GitHub Copilot SDK. The runtime now runs in your own process by default, and you can opt back into a child process with `RuntimeConnection.forSpawnedStdio()`. Upgrading from 1.x has breaking changes: packages are renamed, client and session options are grouped and an explicit client mode is required, so read the list of breaking changes before upgrading. Microsoft reports its Rust core cut one warmed workload from 5.25 seconds to 55.3 milliseconds, which is its own figure.
Summaries are written by AI from the linked source. Always check the original.