> ## Documentation Index
> Fetch the complete documentation index at: https://acp-docs.cxykevin.top/llms.txt
> Use this file to discover all available pages before exploring further.

# Kotlin

> 代理客户端协议的Kotlin库

[kotlin-sdk](https://github.com/agentclientprotocol/kotlin-sdk) 提供了代理客户端协议双方的实现，可用于构建自己的代理服务器或客户端。

**目前支持JVM，其他目标正在开发中。**

开始使用，将仓库添加到构建文件中：

```kotlin theme={null}
repositories {
    mavenCentral()
}
```

添加依赖：

```kotlin theme={null}
dependencies {
    implementation("com.agentclientprotocol:acp:0.1.0-SNAPSHOT")
}
```

[示例](https://github.com/agentclientprotocol/kotlin-sdk/tree/master/samples/kotlin-acp-client-sample)演示了如何实现协议的双方。
