Companion

Functions

Link copied to clipboard
fun process(command: List<String>, name: String = command.first(), cwd: String = "/", files: AcpFileSystem? = null, environment: Map<String, String> = emptyMap()): AcpAgent

An agent started as a subprocess speaking ACP over stdio (the spec's transport), e.g. listOf("npx", "@zed-industries/claude-code-acp") on a desktop JVM or in a sandbox.

Link copied to clipboard
fun webSocket(url: String, name: String = url, cwd: String = "/", files: AcpFileSystem? = null, client: OkHttpClient = DefaultHttpClient): AcpAgent

An agent reached over WebSocket at url (ws:// or wss://), with the ACP Kotlin SDK's WebSocket transport. client carries TLS, proxies and timeouts.