> ## Documentation Index
> Fetch the complete documentation index at: https://docs.haitoken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# VPN and proxy connectivity

> Troubleshoot HaiToken connection issues caused by VPNs, system proxies, or TUN mode

If `https://api.haitoken.ai` becomes unreachable after enabling a VPN, try the following steps in order.

## What to do

1. Start by setting your VPN client to use a **system proxy**.
2. If it still does not connect, switch the VPN client to **TUN mode**.
3. If TUN mode still does not work, switch back to a **system proxy** and select **Follow system** in the application's network proxy settings.

## WorkBuddy example

In WorkBuddy, open **Settings** → **General** and find **Network Proxy**.

<img src="https://mintcdn.com/hai-token/KHVWGO3F6k6lA4NE/images/workbuddy/PixPin_2026-09-04_10-58-35.png?fit=max&auto=format&n=KHVWGO3F6k6lA4NE&q=85&s=5df053357e6a51286cf098de229ef720" alt="Find Network Proxy in WorkBuddy settings" width="884" height="718" data-path="images/workbuddy/PixPin_2026-09-04_10-58-35.png" />

If a system proxy still does not work, select **Follow system** in WorkBuddy.

## If the issue persists

Check the following:

* Use the full endpoint, for example `https://api.haitoken.ai/v1/chat/completions`.
* Confirm that VPN rules allow access to `api.haitoken.ai`.
* Confirm that a firewall, enterprise network, or security product is not blocking HTTPS requests.

## Related documentation

* See the [WorkBuddy integration guide](/docs/en/tools/workbuddy)
* See [Quick start](/docs/en/quickstart/integration-guide)
