JetBrains/koog

★ 4,580⑂ 474

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

About JetBrains/koog

JetBrains/koog is an open-source project on GitHub, mainly written in Kotlin. Koog is a JVM (Java and Kotlin) framework for building predictable, fault-tolerant and enterprise-ready AI agents across all platforms – from backend services It currently holds 4,580 stars and 474 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the Local & On-Device AI board.

GitHub Repository Details

Repository JetBrains/koog · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Koog

Kotlin Stable Maven Central JetBrains incubator project Kotlin CI status GitHub license

Build status:

Checks Heavy Tests Ollama Tests

Useful links:

Overview

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

Key features of Koog include:

Available LLM providers and platforms

The LLM providers and platforms whose LLMs you can use to power your agent capabilities:

Quickstart example

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) }

Using in your projects

Supported targets

Currently, the framework supports the JVM, JS, WasmJS and iOS targets.

Requirements

Gradle (Kotlin DSL)

1. Add dependencies to the build.gradle.kts file:

    dependencies {
        implementation("ai.koog:koog-agents:1.2.0")
        implementation("ai.koog:koog-agents-additions:1.2.0-beta")
    }
    
2. Make sure that you have mavenCentral() in the list of repositories.

Gradle (Groovy)

1. Add dependencies to the build.gradle file:

    dependencies {
        implementation 'ai.koog:koog-agents:1.2.0'
        implementation 'ai.koog:koog-agents-additions:1.2.0-beta'
    }
    
2. Make sure that you have mavenCentral() in the list of repositories.

Maven

1. Add dependencies to the pom.xml file:

    
        ai.koog
        koog-agents-jvm
        1.2.0
    
    
        ai.koog
        koog-agents-additions-jvm
        1.2.0-beta
    
    
2. Make sure that you have mavenCentral in the list of repositories.

Versioning

Koog framework is stable and follows semantic versioning. See VERSIONING.md for details.

Contributing

Read the Contributing Guidelines.

Code of Conduct

This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.

License

Koog is licensed under the Apache 2.0 License.

Support

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.

GitHub Stars & Activity

4,580Stars
474Forks
0Open issues
KotlinLanguage

GitHub Popularity

GitHub stars4,580
Forks474
Open issues0
Primary languageKotlin
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

ollama / ollama

Go★ 181,296⑂ 17,941
2

open-webui / open-webui

Python★ 152,601⑂ 22,332
3

ChatGPTNextWeb / NextChat

TypeScript★ 88,790⑂ 59,030
4

HKUDS / nanobot

Python★ 48,395⑂ 8,551
5

chatboxai / chatbox

TypeScript★ 41,812⑂ 4,252
6

chatchat-space / Langchain-Chatchat

Python★ 38,648⑂ 6,265
7

1Panel-dev / 1Panel

Go★ 36,983⑂ 3,358
8

Zackriya-Solutions / meetily

Rust★ 30,962⑂ 3,361

More AI Rankings