Run a powerful Desktop AI Agent fully locally on macOS
No Cloud • No OpenAI • Full Privacy
This repository documents how to run UI-TARS Desktop (by ByteDance) locally on macOS using Ollama as the LLM backend.
Instead of using the OpenAI API, UI-TARS is connected to a local Ollama model via an OpenAI-compatible endpoint.
⚠️ This project focuses on installation, configuration, and macOS security setup.
UI-TARS itself is developed and maintained by ByteDance.
| Component | Value |
|---|---|
| LLM Runtime | Ollama |
| Model | qwen2.5-coder:7b |
| Mode | Fully Local / Offline |
| OS | macOS |
- ✅ Fully local AI agent
- ✅ No cloud / no API cost
- ✅ Desktop UI automation
- ✅ OpenAI-compatible API via Ollama
- ✅ macOS security-aware setup
- ✅ Privacy-first execution
- macOS
- Ollama (official installer)
- UI-TARS Desktop
Download and install Ollama from the official website:
https://ollama.comPull the model:
ollama pull qwen2.5-coder:7b
Start Ollama:
ollama serve
Ollama API will be available at:
2️⃣ Install UI-TARS Desktop
Clone the official repository:
git clone https://github.com/bytedance/UI-TARS-desktop.git
cd UI-TARS-desktop
Follow the official instructions in their README to complete installation.
3️⃣ Connect UI-TARS to Ollama (Important)
UI-TARS expects an OpenAI-style API by default. Use the command below to redirect it to local Ollama:
agent-tars \
--provider openai \
--baseUrl http://localhost:11434/v1 \
--model qwen2.5-coder:7b \
--apiKey ollama
🔎 Notes:
provider openai → required by UI-TARS
baseUrl → local Ollama endpoint
apiKey → dummy value (required but not used)
macOS blocks GUI automation by default.
To allow UI-TARS to control the desktop, specific permissions must be granted manually.
This repository includes:
config/macos-security.yaml
⚙️ Required Permissions
Open:
System Settings → Privacy & Security
Then enable the following:
🧩 Accessibility
🎥 Screen Recording
🤖 Automation
📂 Full Disk Access (optional, but recommended)
❗ Without these permissions, UI-TARS cannot interact with the desktop UI.
Ollama-ui-agent-macos/
├── config/
│ └── macos-security.yaml
├── images/
│ ├── UI-interface.png
│ └── Terminal.png
└── README.md
🔐 Privacy & Offline Mode
🚫 No OpenAI API calls
☁️ No cloud dependency
🔒 All inference runs locally
🧠 Full control over the model and data
Privacy-first. Offline-ready. Fully local AI. 🚀

