Installation¶
openrouter-kotlin is published through JitPack.
Requirements¶
- JDK 25+
- Kotlin 2.3.10+
Gradle (Kotlin DSL)¶
Add the JitPack repository to your build.gradle.kts:
Add the dependency:
ReplaceTAG with the latest version (e.g., v1.0.0).
Gradle (Groovy DSL)¶
Add the JitPack repository to your build.gradle:
Add the dependency:
Maven¶
Add the JitPack repository:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency:
<dependency>
<groupId>com.github.toliner</groupId>
<artifactId>openrouter-kotlin</artifactId>
<version>TAG</version>
</dependency>
Dependencies Note¶
openrouter-kotlin includes the Ktor CIO engine as a transitive dependency. You don't need to add another Ktor engine unless you specifically want to use a different one (like OKHttp or Apache).