kt can be installed using pip:

$ pip install kt


  • cython - for building the binary protocol C extension.

These libraries are installed automatically if you install kt with pip. To install these dependencies manually, run:

$ pip install cython

Installing with git

To install the latest version with git:

$ git clone
$ cd kt/
$ python install

Installing Kyoto Tycoon or Tokyo Tyrant

If you’re using a debian-based linux distribution, you can install using apt-get:

$ sudo apt-get install kyototycoon tokyotyrant

Alternatively you can use the following Docker images:

$ docker run -it --rm -v kyoto:/var/lib/kyototycoon -p 1978:1978 coleifer/kyototycoon
$ docker run -it --rm -v tokyo:/var/lib/tokyotyrant -p 9871:9871 coleifer/tokyohash

To build from source and read about the various command-line options, see the project documentation: