# Using the GitHub Copilot SDK for Java

DevFeed: [Using the GitHub Copilot SDK for Java](<https://devfeed.tech/articles/using-the-github-copilot-sdk-for-java-19854.md>)

Original publisher: [Read original article](<https://github.blog/engineering/using-the-github-copilot-sdk-for-java/>)

Author: Edward Burns

Published: 2026-08-10T19:30:00Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [GitHub Copilot SDK](<https://devfeed.tech/topics/github-copilot-sdk.md>), [SDK](<https://devfeed.tech/topics/sdk.md>), [Jakarta EE](<https://devfeed.tech/topics/jakarta-ee.md>), [Spring Framework](<https://devfeed.tech/topics/spring-framework.md>), [langchain4j](<https://devfeed.tech/topics/langchain4j.md>), [GitHub Copilot CLI](<https://devfeed.tech/topics/github-copilot-cli.md>)

Tags: [agent-harness](<https://devfeed.tech/tags/agent-harness.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [application](<https://devfeed.tech/tags/application.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [github-copilot-sdk](<https://devfeed.tech/tags/github-copilot-sdk.md>), [house](<https://devfeed.tech/tags/house.md>), [jakarta-ee](<https://devfeed.tech/tags/jakarta-ee.md>), [java](<https://devfeed.tech/tags/java.md>), [lead-management](<https://devfeed.tech/tags/lead-management.md>), [london](<https://devfeed.tech/tags/london.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [threads](<https://devfeed.tech/tags/threads.md>), [virtual](<https://devfeed.tech/tags/virtual.md>), [virtual-threads](<https://devfeed.tech/tags/virtual-threads.md>)

## AI overview

The GitHub Copilot SDK for Java lets server-side Java code create Copilot agent sessions, register tools, send prompts, and receive structured responses programmatically. The post presents it as framework agnostic, usable with Jakarta EE or Spring, and AI vendor neutral through BYOK; it contrasts this with dependencies on Langchain4j or Spring AI. The SDK uses familiar Java features including annotations, lambdas, and virtual threads. The sample is a Jakarta EE 11 real-estate lead-management pipeline that starts an isolated Copilot agent on a virtual thread to process customer enquiries. Requirements listed are JDK 17 or 25 (25 recommended), Maven 3.9+, an active Copilot subscription, and Copilot CLI 1.0.71 or later.

## Source excerpt

Enterprise Java developers have a new superpower--drive GitHub Copilot from idiomatic Java code with annotations, virtual threads, and more. The post Using the GitHub Copilot SDK for Java appeared first on The GitHub Blog.