Stable · v1.3.0 Apache-2.0

A lightweight Kotlin language server in Rust

Built the way rust-analyzer is: one native binary, no JVM of its own and no background compiler. Type inference and data-flow analysis behind hover, inlay hints and diagnostics, for Kotlin/JVM, Multiplatform and Android.

<1 mshover and go-to-definition
2.6 sto load ktor's 2,300 files
~200 MBfor those files, after a session

Downloads the release into ~/.local/bin:

curl -fsSL https://raw.githubusercontent.com/bash-spbu/kotlin-analyzer/main/editors/install-server.sh | sh

The VS Code, Neovim and Zed extensions download the server on first use, so this step is optional there.

Runs on

macOS Linux Windows

Builds with

Gradle Maven

How it fits

Large projects in, every editor out

Gradle or Maven runs once, to export the build's model. After that the server reads sources, library jars and the JDK itself, and answers from an incremental index.

ktorMultiplatform · 2,344 files · 137 modules
Spring backendsKotlin/JVM · up to 8,400 files each
nowinandroidAndroid · Compose · flavours
kotlinconf-appCompose Multiplatform · expect/actual

language server

incremental · no JVM of its own

<1 ms hover2.6 s to load~200 MB for 2,300 files
Zedextension
VS Codeextension
Neovimplugin
Helixconfig
Claude Codeplugin
Your AI agent adapts it to your project in a few hundred lines

Built in

More than completion and go-to-definition

Diagnostics report only what the analysis is sure of, so a project that compiles stays free of false errors.

<T>

Type inference

Generics, lambdas and overload resolution, behind hover, inlay hints and diagnostics.

?.

Data-flow analysis

Smart casts and null safety, so a checked value is known to be non-null.

●

Debugger

Breakpoints in JVM tests and programs, with the values of locals inline, in Zed and VS Code.

{ }

Decompiler

Libraries without sources open as code: declarations as Kotlin or Java, bodies as Java.

≡

ktrs formatter

ktfmt's output, natively in Rust: a file, a range, or a block as its } is typed.

⌁

MCP server

Definitions, references, types, outlines and diagnostics from the editor's own analysis, and a debugger the agent drives.

Editors

Its own extension for each editor

Each editor's settings are in its README under editors/.

Install the extension from the release; it downloads the server on first use.

curl -LO https://github.com/bash-spbu/kotlin-analyzer/releases/download/v1.3.0/kotlin-analyzer-1.3.0.vsix
code --install-extension kotlin-analyzer-1.3.0.vsix

Made to be customised

Your AI agent finishes the job

No language server covers every combination of SDK, Kotlin and Gradle versions, build scripts and project conventions, and no editor extension suits everyone. Instead of trying to, the project is laid out so your own agent can adapt the server or an extension to your project quickly and with few tokens. A missing feature usually takes a couple of hundred lines in the right place.

Compared

Next to the other Kotlin language servers

kotlin-analyzerJetBrains kotlin-lspfwcd kotlin-language-server
Statusstablealphadeprecated by its README in favour of kotlin-lsp
Runs asone native binary, no JVMa JVM application built on IntelliJ IDEAa JVM application built on the Kotlin compiler
Sourceopen, Apache-2.0partly closed source, Apache-2.0open, MIT
Multiplatformyes (expect/actual, per source set)plannedno
Androidyes (variants, SDK, R)experimentalno
Build systemsGradle; Maven; others by directory layoutGradle, MavenGradle, Maven
Own extensionsVS Code, Neovim, Helix, Zed, Claude CodeVS Code; scripts for othersVS Code
Diagnosticsonly what it is sure of: imports, calls, types and returns, nullability, overrides, when, casts, deprecation and opt-in, packagesthe full compiler's, with IntelliJ's quick fixesthe compiler's
Refactoringsrename, moving a file (its package and imports follow), organize imports, formatting (ktrs or ktfmt)rename, formatting, organize importsrename

Choose kotlin-analyzer for large or multiplatform projects, low memory, or an editor other than VS Code, and when you want to change the server yourself or with an agent. Choose JetBrains' server for a JVM project where you want every compiler error and more quick fixes.

Benchmarks

Measured on three large open-source projects

ktornowinandroidkotlinconf-app
KindMultiplatform libraryAndroid appMultiplatform app
Kotlin files / modules2,344 / 137281 / 45260 / 10
Workspace load2.6 s1.9 s0.5 s
Memory after a session203 MB168 MB116 MB
Values with a known type97.1%97.6%96.4%
Edit → fresh diagnostics, p50 / p952.0 / 20 ms1.9 / 6 ms2.1 / 13 ms
Hover, p50 / p950.1 / 3.9 ms0.1 / 38 ms0.1 / 7.0 ms
Go to definition, p50 / p950.1 / 2.3 ms0.1 / 19 ms0.1 / 4.1 ms
Completion, p50 / p955 / 22 ms7 / 23 ms5 / 12 ms

Version 1.1.0 on an Apple M4 Pro with 24 GB RAM, over stdio, the way an editor talks to the server. Gradle's own time is not counted. Method and script: README → Benchmarks.

Tested on

Expected to work out of the box

Kotlin/JVM backends

Eight large private Spring Boot monorepos built with Gradle, 260 to 8,400 files each, kept at zero false errors.

Android

nowinandroid (Compose, Hilt, flavours) with AGP 9.3.

Kotlin Multiplatform

kotlinconf-app and ktor: JVM, JS, Wasm and Native targets, expect/actual.

Toolchain and editors

Gradle 9.x with the Kotlin DSL, Kotlin 2.3–2.5, JDK 21 and 25; VS Code, Neovim, Helix and Zed. Maven: tried on four open-source builds.

Not yet tried in an editor: Linux and Windows builds (released and tested in CI), Kotlin/JS, Wasm and Native libraries, old toolchains. See Not tested.