Kaitu LogoKaitu.io
k2 Protocol
Self-Deploy Guide
Routers
Download
Login
  • Overview

    • k2 Protocol Overview
  • Getting Started

    • 1-Minute Quickstart
    • k2s Server Deployment
    • k2 Client Usage
  • Technical

    • k2cc Adaptive Rate Control
    • k2v5 Protocol Architecture
    • Stealth Camouflage
    • Port Hopping Configuration Guide
  • Comparison

    • k2 vs Hysteria2: Congestion Control Comparison
    • k2cc vs BBR: Congestion Control Under Censorship

1-Minute Quickstart

Start a k2s server and connect with the k2 client in under a minute. The server auto-generates all keys; the client connects with a single command.

1-Minute Quickstart

This guide gets you up and running as quickly as possible. You need a Linux VPS with a public IP and a client machine to connect from.

Step 1: Deploy the Server (30 seconds)

Run this on your server:

curl -fsSL https://kaitu.io/i/k2s | sudo sh

On first run, k2s automatically:

  • Generates TLS self-signed certificates (RSA + EC dual certificates)
  • Generates ECH keys
  • Installs a systemd service
  • Prints a ready-to-use connection URL:
k2v5://abc123:tok456@203.0.113.5:443?ech=AEX0...&pin=sha256:...

To see the connection URL again later, just run sudo k2s run again.

Step 2: Connect the Client (30 seconds)

Run this on your client machine (replace the URL with the one printed in step 1):

curl -fsSL https://kaitu.io/i/k2 | sudo bash
sudo k2 up k2v5://abc123:tok456@203.0.113.5:443?ech=AEX0...&pin=sha256:...

Once connected, all traffic is routed through the encrypted k2 tunnel.

Common Commands

k2 status     # Show connection status
k2 down       # Disconnect
k2 up <url>   # Reconnect

Proxy Mode (No Root Required)

If you prefer not to use root to create a TUN device, use proxy mode:

k2 up --mode proxy k2v5://abc123:tok456@203.0.113.5:443?ech=AEX0...&pin=sha256:...

Proxy mode starts a local SOCKS5 proxy at socks5://127.0.0.1:1080. No system route changes are made.


Next: k2s Server Deployment for advanced configuration and Docker deployment.

FAQ

Does the whole process really take just one minute?

Yes. Server install + start takes ~30 seconds, client install + connect takes ~30 seconds. k2cc begins automatically probing for the optimal rate immediately after connection, with zero configuration needed.

Do I need to configure bandwidth manually?

No. This is a key difference from Hysteria2 — Hysteria2's Brutal mode requires manual up_mbps/down_mbps settings, and incorrect values severely degrade performance. k2cc discovers the optimal rate automatically.

Can I share the connection URL with others?

Yes. The connection URL contains authentication credentials and can be safely shared with other users connecting to the same server.

Kaitu LogoKaitu

Secure and convenient network proxy solution

Product

  • Client Download
  • Smart Router Products
  • Retailer Program
  • Changelog

Support

  • User Guide
  • FAQ
  • Contact Us
  • Homeschool Setup Guide

Legal Terms

  • Privacy Policy
  • Terms of Service

愿上帝为你开路

© 2026 Kaitu LLC. All rights reserved.