Privacy frontend for TikTok
  • Python 92.3%
  • HTML 3.6%
  • CSS 3.6%
  • Dockerfile 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-21 14:14:06 +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(agent): keep deliverables in src/agent 2026-09-21 11:12:31 -03:00
tests - Split metadata and video fetch in the scraper 2026-09-18 03:05:25 -03:00
.dockerignore first commit 🚀 2026-09-07 19:03:34 -03:00
.gitignore publish tokain on tags, github publising 2026-09-16 17:42:54 -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 docs: retain audit deliverables in src/agent 2026-09-21 10:48:45 -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.

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.2

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 to extract videos from the TikTok front end. See src/agent/DOCS.md and src/agent/example.py for the current results; the audit instructions are in src/agent/PROMPT.md.
  • 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.