This is only helpful for secure cross-device access to self-hosted Khoj. You do not need this if you’re using Khoj Cloud.
Overview
Tailscale simplifies creating a private VPN using Wireguard and OAuth. So you can host and access services on your devices from anywhere. The instructions below are one way to simply and securely access your self-hosted Khoj from your phone, laptop, and other devices.Minimal Setup
Setup Khoj
Setup Khoj on your preferred machine following the standard steps.
Install Tailscale
Sign up to Tailscale and install the app on machines you want to access Khoj from. This usually includes:
- Your Khoj server
- Your phone
- Your laptop
HTTPS Certificate Setup
Tailscale uses Wireguard to encrypt and route traffic between your machines. So HTTPS isn’t required with Tailscale for secure access. HTTPS with Tailscale is only useful for browsers to not complain about security and block certain features like clipboard access unless HTTPS is enabled.
Benefits of Using Tailscale
Secure Access
All traffic is encrypted via Wireguard VPN
No Port Forwarding
No need to configure router or open firewall ports
Cross-Platform
Access from any device with Tailscale installed
Easy Setup
Simple configuration with automatic IP assignment
