
Koog
Kotlin-native framework for building reliable, fault-tolerant AI agents.
About
Koog is a JetBrains incubator framework for building and running AI agents entirely in idiomatic Kotlin. Its headline features are Kotlin Multiplatform support (deploy agents to JVM, JS, WasmJS, Android, and iOS), reliability engineering for agents (built-in retries and agent persistence that restores execution state at specific points), and intelligent history compression to control token usage in long-running sessions.
It targets Kotlin developers who want type-safe, testable agent code in their existing stack rather than a Python sidecar, and it integrates with the JetBrains ecosystem (docs at docs.koog.ai, Slack channel on the Kotlin workspace). The framework is Apache-2.0 licensed and in alpha maturity per Kotlin stability badges, with over 4.6k GitHub stars.
What it can do
- Idiomatic Kotlin agent DSL
- Kotlin Multiplatform targets (JVM, JS, WasmJS, Android, iOS)
- Fault tolerance: retries and agent state persistence/restore
- Intelligent history compression for long sessions
- Tool integration and multi-step workflows
Setup
- Add ai.koog:koog-agents from Maven Central to your Kotlin project
- Configure your LLM provider credentials
- Follow the quickstart at docs.koog.ai
Prerequisites
A Kotlin 2.1+ project (JVM, Android, or multiplatform); an LLM API key.
Use cases
Works with
Trust score — 8/10
Scored 8/10 (verified tier, metrics-v1). Evidence: Verified via official GitHub repo + docs.koog.ai, batch277; GitHub 4,612 stars; JetBrains incubator, alpha maturity; Kotlin Multiplatform agent framework; Trending score 78/100 from researcher assessment. License: Apache-2.0.
★ 4,612 GitHub stars
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.