Source: https://aiagentbar.com/zh-CN/cli/
Language: zh-CN

# AI Agent bar 本地命令行工具（CLI）

了解随 Mac 应用内置的可选本地命令行工具路径、Shell 别名配置以及隐私特性。

AI Agent bar · 更新日期 2026年11月19日

在 Mac 上安装 **AI Agent bar** 后，应用包内会附带一个轻量级本地命令行可执行文件，方便在终端巡检或脚本中查看本机 Hook 状态。

## 可执行文件路径

将 `AIagentbar.app` 安装到 `/Applications` 后，命令行工具位于：

```
/Applications/AIagentbar.app/Contents/MacOS/aiagentbar
```

## 配置 Shell 别名（可选）

如果希望直接在终端输入 `aiagentbar`，可以在 `~/.zshrc` 中添加别名：

```
alias aiagentbar="/Applications/AIagentbar.app/Contents/MacOS/aiagentbar"
```

## 本地执行与隐私边界

与菜单栏主程序一样，CLI 工具完全在你的 Mac 本机执行：仅检查本地 AI 工具的 Hook 状态，绝不读取 AI 对话正文或上传任何文件。如需可视化一键\*\*强制卸载（Force Uninstall）\*\*及系统变动通知提醒，建议直接使用菜单栏弹窗界面。

## 继续阅读

*   [如何在 Mac 上卸载 OpenAI Codex 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-codex/>)
*   [如何在 Mac 上卸载 Claude Code 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-claude/>)
*   [如何在 Mac 上卸载 Cursor 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-cursor/>)
*   [如何在 Mac 上卸载 Gemini CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-gemini-cli/>)
*   [如何在 Mac 上卸载 Windsurf 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-windsurf/>)
*   [如何在 Mac 上卸载 GitHub Copilot CLI 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-copilot/>)
*   [如何在 Mac 上查看并移除 Google Antigravity 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-antigravity/>)
*   [如何在 Mac 上卸载 Devin 中的 Hook](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-devin/>)
*   [如何在 Mac 上卸载 AI 编程工具中的 Hook（总览指南）](<https://aiagentbar.com/zh-CN/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [AI Agent bar 工作原理](<https://aiagentbar.com/zh-CN/how-it-works/>)
*   [在 Mac 上安装与激活 AI Agent bar](<https://aiagentbar.com/zh-CN/install/>)
*   [版本发布与校验和验证](<https://aiagentbar.com/zh-CN/releases/>)
*   [关于 AI Agent bar](<https://aiagentbar.com/zh-CN/about/>)
