Privacy frontend for TikTok
  • JavaScript 88.8%
  • Python 10.8%
  • HTML 0.2%
  • CSS 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-12 12:32:42 +00:00
.forgejo/workflows change forgejo to use local actions 2026-09-18 18:00:33 -03:00
.github/workflows add workflow dispatch to github action 2026-09-18 12:43:10 -03:00
src docs(video): refresh playback audit for current security SDK 2026-10-12 09:07:58 -03:00
tests handle /login routes as not supported 2026-10-05 01:20:31 -03:00
.dockerignore first commit 🚀 2026-09-07 19:03:34 -03:00
.gitignore move video extraction to its own folder, add sdk deobfuscation 2026-10-06 18:50:04 -03:00
.python-version first commit 🚀 2026-09-07 19:03:34 -03:00
docker-compose.yaml - Split metadata and video fetch in the scraper 2026-09-18 03:05:25 -03:00
Dockerfile - Split metadata and video fetch in the scraper 2026-09-18 03:05:25 -03:00
instances.json add instances.json 2026-09-14 19:02:16 -03:00
LICENSE first commit 🚀 2026-09-07 19:03:34 -03:00
pyproject.toml add logging and env vars support 2026-09-09 21:11:02 -03:00
README.md add community notice 2026-10-07 11:41:36 -03:00
uv.lock first commit 🚀 2026-09-07 19:03:34 -03:00

Tokai

Privacy-respecting frontend for TikTok. Inspired by Nitter, Proxitok, and OffTikTok.

Public instances

URL CDN Country
tokai.brennoflavio.com.br No BR

The same list is available in instances.json.

Community

Join our Matrix room: #tokai:brennoflavio.com.br

We are looking for feedback and more self hosted instances, so we can have more usage, fix bugs with the reverse engineer projects. Join Matrix if you want to help the project.

Self-hosting

Only Docker installations are supported at the moment. You can build the image yourself or use one of our pre-built images.

Pre-built image

You can run Tokai in Docker directly with the following command:

docker run --detach \
     --name tokai \
     --restart unless-stopped \
     --publish 127.0.0.1:8000:8000 \
     --env TOKAI_HOST=0.0.0.0 \
     --env TOKAI_PORT=8000 \
     --env TOKAI_LOG_LEVEL=info \
     --env TOKAI_APP_URL=https://tokai.example.com \
     ghcr.io/brennoflavio/tokai:v0.0.3

Replace the environment variable values with the ones that better suit your use case.

Build yourself and run with Docker Compose

First, clone the repository.

git clone https://github.com/brennoflavio/tokai

Then run:

docker-compose up

You can change the environment variables in the docker-compose.yaml file.

AI disclaimer and policy

In short:

  • AI for coding: ok
  • AI for writing: bad

This project makes use of AI in the following forms:

  • The reverse-engineering work of TikTok APIs is fully automated by an AI agent, without human supervision. It publishes documentation and examples of how Tiktok front end works. See the video results and SDK results.
  • From there, the rest of the codebase is either fully coded by humans or AI-assisted (with human review).

The thesis of this project is that capable AI agents can keep up-to-date documentation of how TikTok works, so it's more maintainable than previous solutions. A weekly job runs and if any drift is found by AI, the changes are incorporated into the scraper code.

License

Tokai is AGPL software. You're free to host and modify it, provided you publish your modifications. See LICENSE for more information.