xnacly/go-kagi-translate — explained in plain English
Analysis updated 2026-05-18
Translate text between languages from a Go program using a Kagi subscription.
Detect the language of a piece of text programmatically.
Check remaining Kagi Translate quota from a script or CLI.
Run quick translations from the terminal using the ktranslate command.
| xnacly/go-kagi-translate | 12vault/ravel | alexremn/finalizer-doctor | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Go | Go | Go |
| Setup difficulty | moderate | easy | easy |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | developer | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Requires an active paid Kagi subscription and a manually copied session token.
go-kagi-translate is an unofficial Go library and command line tool for using Kagi Translate, the translation feature built into the Kagi search engine. Kagi does not offer a public API for translation, so this project works by talking to the same private web interface that Kagi's own website uses. That means it can translate text, detect what language a piece of text is written in, and check how much translation quota remains on an account. To use it you need an active Kagi subscription, since Kagi Translate is a paid feature. Instead of a normal API key, the tool authenticates using a private session token copied from a link found in the Kagi website's sidebar. The library caches that session safely so it can be reused across multiple requests without repeating the login step each time. The project includes both a Go package for embedding translation into your own programs and a ready to use command line tool called ktranslate. With the CLI, you set the KAGI_TOKEN environment variable to your session token and then run commands to translate text between languages, detect a language, or check your remaining quota. The Go package also supports more detailed translation requests, letting you specify things like formality level and translation style. Because this relies on reverse engineering Kagi's private web application rather than an official, documented API, it can break if Kagi changes how that internal system works. The author built it after finding no public translation API and no easy way to get beta access, and made it because they personally use Kagi Translate often for Spanish, Basque, Russian, and German. The README does not mention a license.
An unofficial Go library and CLI for translating text and detecting languages using Kagi Translate, a paid feature of the Kagi search engine.
Mainly Go. The stack also includes Go.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.