Skip to content

Installation

Terminal window
npm install -g @katachi/agent

The installer automatically downloads a pinned, SHA256-verified cloudflared binary for your platform. No additional setup is needed.

In CI/CD pipelines or Docker containers where you already have cloudflared installed:

Terminal window
CLOUDFLARED_SKIP=1 npm install -g @katachi/agent

The agent will fall back to using cloudflared from your system PATH.

RequirementMinimum
Node.jsv18.0.0+
OSLinux, macOS, or Windows
Architecturex64, arm64, or arm (Linux only)
NetworkOutbound HTTPS (port 443)
Gitv2.38.0+ (required for advanced merge-tree workflows)
  • katachi CLI — The command-line tool to manage the agent daemon
  • cloudflared — Cloudflare’s tunnel binary (downloaded automatically)
  • Agent runtime — The TypeScript daemon that connects to Katachi

All agent data is stored in ~/.katachi/ (or the directory specified by --home).

Terminal window
npm update -g @katachi/agent

This will download the latest agent and update cloudflared if a new version is pinned.

Terminal window
# First unregister to clean up the tunnel
katachi unregister
# Then remove the package
npm uninstall -g @katachi/agent
# Optionally remove agent data
# Linux/macOS:
rm -rf ~/.katachi
# Windows:
rmdir /s %USERPROFILE%\.katachi