# Longtee Desktop Connector v0.3.2

Longtee Desktop Connector is the local bridge for Longtee agents. Codex, Hermes, LongClaw and future Longtee agents can dispatch local automation work to this connector after the user binds the device in the Longtee account center.

## What Is Included

- Local Connector API: `http://127.0.0.1:8765`
- Built-in platform runtime under `platform-runtime`
- Built-in platform connectors for 17 Longtee Hub capabilities, packaged as 11 runtime connector directories
- Browser-session bridges for Xiaohongshu, Douyin, Toutiao, Kuaishou and generic creator platforms
- User browser profiles under `%USERPROFILE%\.longtee-connector\platform-profiles`
- User platform config under `%USERPROFILE%\.longtee-connector\platform-config`

Customers do not need `F:\Agent\Longtee-MCP-Hub` or any developer machine files. That path is only kept as a developer fallback on Tomas' own computer.

The platform runtime currently includes:

- `platform-xhs-mcp`
- `platform-douyin-browser-mcp`
- `platform-toutiao-mcp`
- `platform-kuaishou-mcp`
- `platform-generic-browser-mcp`
- `platform-mail-mcp`
- `html-video-mcp`
- `comfyui-mcp`
- `cowart-mcp`
- `crawler-public-web-mcp`
- `crawler-ecommerce-mcp`

## Install

Extract this package to any disk, for example:

```powershell
F:\Longtee\DesktopConnector
```

Run PowerShell in the extracted directory:

```powershell
powershell -ExecutionPolicy Bypass -File .\install-windows.ps1
```

The installer creates:

- `.venv` Python environment in this folder
- Desktop shortcut
- Startup shortcut
- Connector dependencies

## Start

Double-click `Longtee Desktop Connector` on the desktop.

Local workbench:

```text
http://127.0.0.1:8765/workbench
```

Bind the device in Longtee account center:

```text
http://1.13.255.12/account/
```

## Upgrade

Download the latest package from the Longtee portal, unzip it, and run:

```powershell
powershell -ExecutionPolicy Bypass -File .\install-windows.ps1
```

Existing binding and platform login profiles are preserved under `%USERPROFILE%\.longtee-connector`.

## SmartVision

SmartVision is cloud opt-in. The Desktop Connector does not download or run
local Ollama models. When enabled by the user, the connector compresses the
current browser screenshot and sends it over HTTPS to the Longtee Vision
Service for real-time analysis and platform billing.

SmartVision stays disabled until the user explicitly consents in the local
connector. Users can disable it again at any time in
`%USERPROFILE%\.longtee-connector\connector.json`:

```json
{
  "vision": {
    "enabled": false,
    "consent_given": false,
    "force_script_mode": false
  }
}
```

Screenshots are only sent to the Longtee Vision Service when both
`enabled=true` and `consent_given=true`. They are not stored by the connector,
and the server-side service is designed to process them in memory only.

## Uninstall

```powershell
powershell -ExecutionPolicy Bypass -File .\uninstall-windows.ps1
```

The uninstall script removes shortcuts only. User config and platform login profiles are preserved.
