by JetBrains
Koog is a JVM (Java and Kotlin) framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services to Android and iOS, JVM, and even in-browser environments. Koog is based on our AI products expertise and provides proven solutions for complex LLM and AI problems
# Add to your Claude Code skills
git clone https://github.com/JetBrains/koogkoog is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by JetBrains. Koog is a JVM (Java and Kotlin) framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services to Android and iOS, JVM, and even in-browser environments. Koog is based on our AI products expertise and provides proven solutions for complex LLM and AI problems. It has 4,678 GitHub stars.
koog's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/JetBrains/koog" and add it to your Claude Code skills directory (see the Installation section above).
koog is primarily written in Kotlin. It is open-source under JetBrains on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh koog against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Build status:
Useful links:
Koog is a Kotlin-based framework designed to build and run AI agents entirely in idiomatic Kotlin and Java API. It lets you create agents that can interact with tools, handle complex workflows, and communicate with users.
Key features of Koog include:
The LLM providers and platforms whose LLMs you can use to power your agent capabilities:
To help you get started with AI agents, here is a quick example:
fun main() = runBlocking {
// Before you run the example, assign a corresponding API key as an environment variable.
val apiKey = System.getenv("OPENAI_API_KEY") // or Anthropic, Google, OpenRouter, etc.
val agent = AIAgent(
promptExecutor = MultiLLMPromptExecutor(OpenAILLMClient(apiKey)), // or Anthropic, Google, OpenRouter, etc.
systemPrompt = "You are a helpful assistant. Answer user questions concisely.",
llmModel = OpenAIModels.Chat.GPT4o
)
val result = agent.run("Hello! How can you help me?")
println(result)
}
Currently, the framework supports the JVM, JS, WasmJS and iOS targets.
Add dependencies to the build.gradle.kts file:
dependencies {
implementation("ai.koog:koog-agents:1.4.0")
implementation("ai.koog:koog-agents-additions:1.4.0-beta")
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the build.gradle file:
dependencies {
implementation 'ai.koog:koog-agents:1.4.0'
implementation 'ai.koog:koog-agents-additions:1.4.0-beta'
}
Make sure that you have mavenCentral() in the list of repositories.
Add dependencies to the pom.xml file:
<dependency>
<groupId>ai.koog</groupId>
<artifactId>koog-agents-jvm</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>ai.koog</groupId>
<artifactId>koog-agents-additions-jvm</artifactId>
<version>1.4.0-beta</version>
</dependency>
Make sure that you have mavenCentral in the list of repositories.
Koog framework is stable and follows semantic versioning. See VERSIONING.md for details.
Read the Contributing Guidelines.
This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.
Koog is licensed under the Apache 2.0 License.
Please feel free to ask any questions in our official Slack channel and to use Koog official YouTrack project for filing feature requests and bug reports.