# Installation

## 📦 Installation Guide

This guide shows you how to add KXAPI to your project using Gradle or Maven.

### 📋 Prerequisites

* **Java Development Kit (JDK)**: 24 or higher
* **Kotlin**: 2.2.0 or higher
* **Build Tool**: Gradle or Maven

### 📦 KXAPI Installation

<details>

<summary><strong>Method 1: Gradle (Recommended)</strong></summary>

Add to your `build.gradle.kts`:

```kotlin
repositories {
    maven("https://nexus.botwithus.net/repository/maven-snapshots/")
    maven("https://nexus.botwithus.net/repository/maven-releases/")
}

dependencies {
    implementation("net.botwithus.kxapi:kxapi:0.1-SNAPSHOT")
}

kotlin {
    jvmToolchain(24)
}
```

</details>

<details>

<summary><strong>Method 2: Maven</strong></summary>

Add to your `pom.xml`:

```xml
<repositories>
    <repository>
        <id>botwithus-snapshots</id>
        <url>https://nexus.botwithus.net/repository/maven-snapshots/</url>
    </repository>
    <repository>
        <id>botwithus-releases</id>
        <url>https://nexus.botwithus.net/repository/maven-releases/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>net.botwithus.kxapi</groupId>
        <artifactId>kxapi</artifactId>
        <version>0.1-SNAPSHOT</version>
    </dependency>
</dependencies>
```

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kxapi.gitbook.io/kxapi/getting-started/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
