Using the GitHub Copilot SDK for Java Microsoft and GitHub released the GitHub Copilot SDK for Java, version 1.0.7-preview.1, a framework-agnostic client library that lets enterprise Java developers drive AI from idiomatic Java code using annotations, virtual threads, and CompletableFuture. The SDK supports any direct model provider, including OpenAI, Azure, Anthropic, or OpenAI-compatible endpoints, via a provider/ProviderConfig with a custom baseUrl and apiKey, and requires no Copilot subscription. A sample Jakarta EE 11 application demonstrates a real-estate lead-management agent pipeline using Open Liberty 26.0.0.5, PrimeFaces 15.0.16, and H2 in-memory database with 10 seed property listings. Edward Burns https://github.blog/author/edburns/ Ed Burns is a Principal Software Engineer working to bring Java idiomatic experiences to Microsoft and GitHub technologies. Ed's been working with Java since 1997 in all aspects from client to server to cloud and AI. Enterprise Java developers have a new superpower—drive GitHub Copilot from idiomatic Java code with annotations, virtual threads, and more. Java developers no longer have to rely on Java framework-specific approaches to drive AI from their enterprise apps. While it is true that Langchain4j empowered developers by disintermediating specific AI vendors, you still had a dependency on Langchain4j. And with Spring AI, well, of course you had a dependency on design choices made by Spring, if not on Spring itself. Now, GitHub Copilot SDK for Java is the first truly framework agnostic way to drive AI from Java. And with its BYOK support, GitHub Copilot SDK for Java is also AI vendor neutral. 💡 Even though it’s called GitHub Copilot SDK, you can use it with any direct model provider, such as OpenAI, Azure, Anthropic, or OpenAI-compatible endpoints, by passing a provider / ProviderConfig with your own baseUrl + apiKey or bearer token . No Copilot subscription required. | The GitHub Copilot SDK for Java is a client library that empowers your server-side Java code to create Copilot agent sessions, register tools, send prompts, and receive structured responses—all programmatically. It works in server environments, including Jakarta EE and Spring. If you’ve been building enterprise Java for any length of time, this SDK will feel like home: CompletableFuture , annotations, lambdas, virtual threads, it’s all here. This post shows you how to use the SDK, walks through a complete Jakarta EE 11 sample application, and leaves you with concrete next steps to try it yourself. I chose Jakarta EE 11 for my demo because I was the lead release coordinator for that release. I believe in open standards as the best way to empower developers. For more on Jakarta EE 11 see this InfoQ article https://www.infoq.com/news/2025/07/jakarta-ee-11-updates/ . This sample app is an agent harness using Jakarta EE 11. But, of course, developers can build their own agent harness using the well-known Java frameworks and libraries of their choice. Clone the sample app and try it yourself https://github.com/microsoft/Build26-BRK206-your-agent-anywhere-multiclient-multidevice-with-github-copilot-sdk The SDK is available as a Maven dependency: