# JetBrains/koog

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

Repository: https://github.com/JetBrains/koog
Canonical: https://ross.abutalabs.com/products/koog
Homepage: https://docs.koog.ai
Language: Kotlin
License: Apache-2.0
License Family: permissive
Topics: agentframework, agentic-ai, agents, ai, aiagentframework, anthropic, generative-ai, java, kotlin, ktor, llm, mcp, ollama, openai, spring, android-ai, jvm, ai-agents-framework, genai, multi-agent-systems
Last push: 2026-08-26T16:52:49+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 93, longevity 34
- inputs: {"age_days": 489, "days_push": 7, "days_rel": 44, "gap_med": 14.5, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4536, forks 463 (observed 2026-08-28T04:08:53.064496+00:00)

## What it is
Koog is a JetBrains-built Kotlin/Java framework for creating fault-tolerant, enterprise-ready AI agents on the JVM, with multiplatform deployment to Android, iOS, JS, and WasmJS via Kotlin Multiplatform. It provides a type-safe Kotlin DSL and fluent Java API for agent workflows, tool use, MCP integration, RAG memory, LLM provider switching, and observability.

## Use cases
- build ai agents in kotlin or java
- create llm agents for spring boot backends
- run ai agents on android and ios from one codebase
- add tool calling and mcp support to an llm app
- build multi-agent workflows with graph strategies
- add chat memory and rag to a conversational agent
- switch between openai, anthropic, and ollama models without losing history
- monitor and trace agent execution with opentelemetry

## When to choose
- your team works on the JVM with Kotlin or Java and wants idiomatic, type-safe agent APIs
- you need enterprise features like retries, state persistence, and observability out of the box
- you want one agent codebase deployable to JVM, Android, iOS, and browser via Kotlin Multiplatform
- you need Spring Boot or Ktor integration and multi-provider LLM switching

## When to avoid
- you want a Python-based agent framework like LangChain or a JS/TS stack
- your project is not on the JVM or Kotlin Multiplatform targets
- you need a minimal, lightweight agent loop without framework abstractions
- you depend on beta modules (planner agents, knowledge retrieval) that may change between releases

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, llm-inference, rag, mcp, chatbot, tracing, workflow-automation, sdk
- domain: large-language-models, artificial-intelligence, developer-tools, backend, mobile-development
- platform: jvm, wasm, cross-platform, self-hosted
- tags: kotlin-multiplatform, llm-agents, spring-boot, ktor, multi-llm-providers, agent-persistence, history-compression, streaming-api, opentelemetry, graph-workflows, ai-agents, android, ios, docker

## Member repositories
- JetBrains/koog (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:53.064496+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:11.155764+00:00, confidence not recorded.
  - readme: https://github.com/JetBrains/koog (fetched 2026-08-28T04:08:53.064496+00:00, sha 5d9ee394ef1b)
  - homepage: https://docs.koog.ai (fetched 2026-08-29T09:06:01.385377+00:00, sha e8e5d8b377c4)
  - site_page: https://docs.koog.ai/key-features (fetched 2026-08-29T09:06:01.388999+00:00, sha 1ba020741d10)
  - site_page: https://docs.koog.ai/quickstart (fetched 2026-08-29T09:06:01.390670+00:00, sha 88aff341c4c2)
  - site_page: https://docs.koog.ai/features (fetched 2026-08-29T09:06:01.392649+00:00, sha c234c566eb4a)
  - site_page: https://docs.koog.ai/features/agent-event-handlers (fetched 2026-08-29T09:06:01.394177+00:00, sha 4e8628b455e5)
  - site_page: https://docs.koog.ai/features/tracing (fetched 2026-08-29T09:06:01.396492+00:00, sha b7175406a0ab)
  - site_page: https://docs.koog.ai/features/chat-memory (fetched 2026-08-29T09:06:01.398855+00:00, sha aabd762fffa9)
  - site_page: https://docs.koog.ai/features/chat-memory/chat-agent-with-memory (fetched 2026-08-29T09:06:01.400788+00:00, sha 56442a8429ac)
  - site_page: https://docs.koog.ai/features/chat-memory/chat-backend-with-memory (fetched 2026-08-29T09:06:01.402418+00:00, sha 81aa34ee0bf2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
