Developer Docs
Get started with KSP in minutes. Build from source, run your first connection, and explore the protocol.
New to KSP?Take our interactive step-by-step developer journey tour →Quick Start
# Clone & build git clone https://github.com/Kush2272/ksp cd ksp cargo build --release # Run the server on port 9876 cargo run --bin ksp-server
# In a separate terminal cargo run --bin ksp-client # The client will: # 1. TCP connect to 127.0.0.1:9876 # 2. Perform KSP handshake (X25519 + HKDF) # 3. Open a stream and send encrypted data
# Load the KSP Lua dissector in Wireshark # Wireshark → Preferences → Protocols → Lua # Load: wireshark/ksp_dissector.lua # Filter KSP traffic tcp.port == 9876
# Run all Criterion benchmarks cargo bench # Run specific benchmark cargo bench -- handshake cargo bench -- serialization cargo bench -- throughput
Protocol Concepts
Implementation Guide
Configuration
CLI Guides & Workflow
CLI Installation Guide
Install, update, uninstall, and PATH configuration
CLI Quick Start
End-to-end tutorial from ksp init to secure transfer
Practical CLI Examples
File transfer, secure chat, benchmark, and proxy workflows
All 50+ CLI Commands Hub
Comprehensive reference directory for all ksp subcommands
Package Managers & Distros
Cargo, Winget, Homebrew, Scoop, and Docker distribution
Releases & Governance
Support & Troubleshooting
Technical Reference
API Docs (docs.rs)
Crate API structure and types
RFC Specification
Access the full RFC-0001 standard
Architecture Explorer
Clickable visual layered diagrams
Threat Model Matrix
Security metrics and mitigated vectors
Wire Format Reference
Detailed 48-byte header offsets
Protocol Conformance
Interoperability check & compliance
Glossary of Terms
A-Z crypto & networking vocabulary
CLI Command Reference
ksp init
Initialize workspace configuration
ksp new
Scaffold new KSP applications
ksp doctor
Diagnose system health & network stack
ksp diag
Perform PMTUD & jitter diagnostics
ksp server
Start KSP protocol server
ksp connect
Open interactive client session
ksp ping
Measure encrypted frame RTT
ksp transfer
Transmit files over multiplexed streams
ksp capture
Record live traffic to pcapng traces
ksp benchmark
High-concurrency stress testing
ksp cert
Generate Ed25519 binary certificates
ksp security
Audit cryptographic policies
ksp gateway
Enterprise ingress bridge
ksp proxy
Local transparent forwarder
ksp dashboard
Live terminal UI monitor
ksp wireshark
Install Lua protocol dissector