LangTARS

LangTARS

wangcham / LangTARS
Plugin441 downloadsCommand1Tool5productivityutilityai

(Testing) Native Claw-like Plugin - Control your Mac/Windows/Linux through IM messages using autonomous AI planning (inspired by ReAct, OpenClaw-style, like TARS from Interstellar)

LangTARS

LangTARS — Native LangBot Plugin

简体中文  •   繁體中文  •   日本語  •   GitHub

⚠️ Note: Features are still under active development. If you encounter any bugs, please submit an issue.


What is LangTARS?

LangTARS is a native LangBot plugin developed based on the ReAct philosophy of modern Agents, designed to bring the OpenClaw experience to LangBot users. It enables you to control your Mac, Windows PC, or Linux system through IM messages using autonomous AI task planning. Like TARS from Interstellar, it works faithfully for you.

Like OpenClaw, LangTARS allows AI assistants to execute real actions on your computer—but with the simplicity and elegance of a LangBot plugin.

Why LangTARS?

OpenClaw is an impressive project with a great vision. However, running such complex software with access to your digital life requires trust in systems you may not fully understand.

LangTARS takes a different approach:

  • Native LangBot integration — Runs directly within LangBot using the Nanobot kernel
  • Lightweight — Minimal codebase you can understand and audit
  • Autonomous planning — Uses ReAct loop for intelligent task execution
  • Safety-first — Built-in command restrictions, workspace isolation, and dangerous command blocking

Quick Start

⚠️ Note: Currently only the package manager method has been tested.

Manual Deployment

StepAction
1Deploy LangBot using the package manager: uvx langbot@latest
2Configure the bot following the documentation
3Install the LangTARS plugin from the plugin marketplace
4In the LangTARS plugin settings page, select your model and configure other settings

📱 Recommended: Use LangTARS on Telegram or DingTalk platform for the best experience.

First-Time Setup - Permission Configuration

macOS Permissions

Before first use, you need to grant some permissions:

AppleScript Automation Permission

  • Open System Preferences > Privacy & Security > Accessibility
  • Click the 🔒 in the bottom left to unlock
  • Add Terminal or your chat application (e.g., WeChat, Telegram, etc.)

Safari JavaScript Permission (Optional)

  • Open Safari > Settings > Advanced
  • Check Allow JavaScript from Apple Events

Windows Permissions

On Windows, LangTARS uses PowerShell and UI Automation for system control, typically no additional permission configuration is required.

Linux Permissions

On Linux, LangTARS uses standard shell commands for system control, typically no additional permission configuration is required. Ensure xdg-open is available for opening URLs and applications.

Usage

!tars <task> — AI Task Execution

Simply describe what you want to do, and the AI will autonomously plan and execute the task.

Examples:

  • !tars Open Safari, visit langbot.app, scrape elements and tell me

  • !tars Create a new note with title and content "hello"

  • !tars Help me organize the files on my desktop

  • !tars Save the result to a file (continues from previous task if available)

  • !tars Cook me some dishes.

💡 Tip: If you have a previous task history, LangTARS will automatically continue from where you left off. Just describe what you want to do next!

Browser Control

LangTARS supports multiple browser control methods:

macOS:

Command ExampleBrowserDescription
!tars Visit github.comPlaywright (Chromium)Default, no extra permissions needed
!tars Open Safari and visit githubSafari BrowserUses real Safari, requires AppleScript permission
!tars Open Chrome and visit githubChrome BrowserUses real Chrome, requires AppleScript permission

Windows:

Command ExampleBrowserDescription
!tars Visit github.comPlaywright (Chromium)Default, no extra permissions needed
!tars Open Chrome and visit githubChrome BrowserUses real Chrome via PowerShell/UI Automation
!tars Open Edge and visit githubEdge BrowserUses real Edge via PowerShell/UI Automation

Linux:

Command ExampleBrowserDescription
!tars Visit github.comPlaywright (Chromium)Default, no extra permissions needed
!tars Open firefox and visit githubFirefox BrowserUses xdg-open or direct command

The AI will:

  1. Understand your request
  2. Plan the necessary steps
  3. Execute them one by one using shell commands, file operations, app control, etc.
  4. Report back with results

Control Commands

CommandDescription
!tars stopStop the currently running task
!tars whatWhat is the agent doing now
!tars resetClear conversation history and start fresh
!tars yesConfirm dangerous operation (e.g., rm, reboot)
!tars noCancel and stop dangerous operation
!tars helpShow help

Configuration

Configure LangTARS through LangBot's settings:

OptionDescriptionDefault
allowed_usersUser IDs allowed to control this computer[]
command_whitelistAllowed shell commands (empty = all with restrictions)[]
workspace_pathWorking directory for file operations~/.langtars
sandbox_modeRestrict file operations to workspace only. When disabled, allows global file accesstrue
enable_shellEnable shell command executiontrue
enable_processEnable process managementtrue
enable_fileEnable file operationstrue
enable_appEnable app controltrue
enable_applescriptEnable AppleScript execution (macOS)true
enable_powershellEnable PowerShell execution (Windows)true
planner_max_iterationsMax ReAct loop iterations5
planner_model_uuidLLM model for task planning(first available)
planner_rate_limit_secondsRate limit between LLM calls1
planner_auto_load_mcpAuto-load MCP toolstrue

Safety Features

  • Dangerous command blocking — Commands like rm -rf / are blocked by default
  • Workspace isolation — File operations restricted to configured workspace
  • Command whitelist — Optionally restrict to specific commands
  • User access control — Optionally limit to specific users

Architecture

IM Message --> LangBot --> PlannerTool (ReAct Loop) --> Tools --> System Actions (Mac/Windows/Linux)
  • PlannerTool — ReAct loop for autonomous task planning using LLM
  • Tool Registry — Dynamic tool loading from MCP servers and plugins
  • Built-in Tools — Shell, process, file, app control

License

CC BY-NC-ND 4.0

This project is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. You may share it with attribution, but you may not use it commercially or distribute modified versions.

Use LangTARS in Feishu/Lark bots, DingTalk bots, WeCom bots, WeChat bots, QQ bots, Slack bots, Discord bots, Telegram bots, LINE Bots, and Matrix Bots.

Host your bot on LangBot Cloud and connect this extension to the collaboration platforms your team already uses.

Open LangBot Cloud

Comments