Unofficial bindings / ports in other languages

Author: hauntsaninjaCreated Apr 5, 2023Updated Sep 17, 2026

The following projects are not maintained by OpenAI. I cannot vouch that any of them are correct or safe to use. Use at your own risk.

Note that if a tokeniser fails to exactly match tiktoken's behaviour, you may get worse results when sampling from models, with no warning.

Javascript

Rust

Java

Ruby

C#

Go

PHP

Kotlin

Thanks to everyone for building useful things!

I'm happy to link to other projects in this comment.