AIToday
Large Language ModelsAI Coding AssistantsGitHub Blog (AI)Published: Aug 11, 2026, 06:01 JST

GitHub Copilot SDK for Java now available—framework and vendor agnostic

GitHub Copilot SDK for Java now available—framework and vendor agnostic

3 Key Points

  1. What happened

    GitHub released the Copilot SDK for Java (version 1.0.7-preview.1), a client library that lets Java developers build AI agents without depending on a specific framework or AI vendor. The SDK works with any model provider—OpenAI, Azure, Anthropic, or custom endpoints—via BYOK (bring-your-own-key) support and requires no Copilot subscription to use with third-party models.

  2. Why it matters

    Until now, Java developers had to choose between Langchain4j (which tied them to that library) or Spring AI (which tied them to Spring's design choices). The new SDK is the first truly framework-agnostic approach for enterprise Java, supporting both Jakarta EE and Spring, and uses familiar Java patterns (CompletableFuture, annotations, lambdas, virtual threads) so existing Java teams can adopt it without learning a new paradigm.

  3. What to watch

    The SDK is available as a Maven dependency and requires JDK 17 or later (JDK 25 recommended for virtual threads). The annotation-based tool API (@CopilotTool) is marked experimental and requires passing the compiler flag -Acopilot.experimental.allowed=true. A complete sample app (real-estate lead-management agent) is available on GitHub running on Open Liberty 26.0.0.5 with Jakarta EE 11.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The release addresses a real pain point in Java enterprise development: until now, building AI-driven applications required developers to accept a dependency on a middleware library (Langchain4j) or a specific framework ecosystem (Spring AI). The GitHub Copilot SDK for Java breaks that lock-in by providing a framework-agnostic, vendor-neutral foundation. The BYOK (bring-your-own-key) support means teams can swap AI providers without rewriting their application code, and the lack of a mandatory Copilot subscription requirement signals that this is positioned as a general-purpose agent orchestration library, not just a Copilot-consumption tool.

The SDK's design philosophy aligns with the article's stated belief in open standards: it uses familiar Java primitives (annotations, CompletableFuture, CDI beans, virtual threads) rather than forcing developers into a new model or API shape. The sample application—a Jakarta EE 11 real-estate agent using Open Liberty 26.0.0.5—demonstrates production-grade integration patterns, including proper use of managed thread factories to respect container lifecycle and context propagation. The experimental status of the @CopilotTool annotation API suggests the core agent session and tool registration mechanism is considered stable, but the declarative tool definition surface is still subject to change.

FAQ
Can I use the GitHub Copilot SDK for Java with AI providers other than GitHub Copilot?
Yes. Even though it is 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 and apiKey (or bearer token). No Copilot subscription is required.
What are the system requirements to use the SDK?
You need JDK 17 or 25 (25 is recommended to unlock virtual threads and other modern features), Maven 3.9 or later, a GitHub account with an active Copilot subscription, and the Copilot CLI installed locally at version 1.0.71 or later.
What Java frameworks does the SDK support?
The SDK is framework-agnostic and works in server environments including Jakarta EE and Spring. Developers can build their own agent harness using any well-known Java framework or library of their choice.
GitHub Blog (AI)Read Original Article

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAWS embeds security tool into rivals' AI coding platforms