> For the complete documentation index, see [llms.txt](https://docs.twosense.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.twosense.ai/windows-authenticator/guides/proxy-support.md).

# Proxy support

Starting with version **3.8.0**, the Twosense Endpoint Agent supports routing its internet communication through a proxy server.

This feature is configured using Windows Registry values at:

```
HKEY_LOCAL_MACHINE\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator
```

You can configure these registry keys using PowerShell (shown below), manual registry editing, or Group Policy Object (GPO) for enterprise deployments.

## Parameters

| Name          | Type    | Required | Description                                                                                                                                                                                                                                    |
| ------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ProxyUrl**  | REG\_SZ | Yes      | <p>The URL of your proxy server.<br><strong>Must include the scheme</strong> (e.g., <code><http://proxy.example.com></code> or <code><https://proxy.example.com></code>).<br><strong>Must not</strong> end with a trailing <code>/</code>.</p> |
| **ProxyPort** | REG\_SZ | Yes      | The port number for the proxy connection (e.g., `8080`)                                                                                                                                                                                        |

## Configure Proxy

### Prerequisites

* Administrative privileges
* PowerShell access

### Steps

1. Open PowerShell **as Administrator**.
2. Run the following commands, substituting values from the [Parameters](#parameters) table above:

   ```powershell
   New-Item -Path "HKLM:\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator" -ErrorAction SilentlyContinue | Out-Null
   Set-ItemProperty -Path "HKLM:\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator" -Name "ProxyUrl" -Value "http://proxy.example.com"
   Set-ItemProperty -Path "HKLM:\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator" -Name "ProxyPort" -Value "8080"
   ```

## Disable Proxy

### Steps

1. Open PowerShell **as Administrator**.
2. Run the following commands:

   ```powershell
   Remove-ItemProperty -Path "HKLM:\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator" -Name "ProxyUrl" -ErrorAction SilentlyContinue
   Remove-ItemProperty -Path "HKLM:\SOFTWARE\TWOSENSE.AI\TwosenseAuthenticator" -Name "ProxyPort" -ErrorAction SilentlyContinue
   ```
