Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

refactor(install): simplify scripts by relying on uv's auto Python management

cyhhao7b9542d717c0
diff --git a/README.md b/README.md
index 88ae0099f..a6dbe89bc 100644
--- a/README.md
+++ b/README.md
@@ -1,16 +1,16 @@
<div align="center">
-<img src="assets/logo.png" alt="Vibe Remote" width="80"/>
+<img src="assets/logo.png" alt="Vibe Remote" width="120"/>
# Vibe Remote
-### Code from your couch. Ship from the beach.
+### Your AI coding army, commanded from Slack.
-**Control AI coding agents from Slack — no IDE required.**
+**No laptop. No IDE. Just vibes.**
+[![GitHub Stars](https://img.shields.io/github/stars/cyhhao/vibe-remote?color=ffcb47&labelColor=black&style=flat-square)](https://github.com/cyhhao/vibe-remote/stargazers)
[![Python](https://img.shields.io/badge/python-3.9%2B-3776AB?labelColor=black&style=flat-square)](https://www.python.org/)
[![License](https://img.shields.io/badge/license-MIT-green?labelColor=black&style=flat-square)](LICENSE)
-[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen?labelColor=black&style=flat-square)](CONTRIBUTING.md)
[English](README.md) | [中文](README_ZH.md)
@@ -20,113 +20,149 @@
</div>
-## Why Vibe Remote?
+## The Pitch
-You're on vacation. Your phone buzzes — a production bug.
+You're at the beach. Phone buzzes — production's on fire.
-With Vibe Remote, you don't scramble for your laptop. You open Slack, type what needs fixing, and watch the AI agent stream back the solution in real-time. Review, approve, done. Back to your margarita.
+**Old you:** Panic. Find WiFi. Open laptop. Wait for IDE. Lose your tan.
-**That's vibe coding.**
+**Vibe Remote you:** Open Slack. Type "Fix the auth bug in login.py". Watch Claude Code fix it in real-time. Approve. Sip margarita.
-- 🛋️ **Work from anywhere** — Slack is your IDE now
-- 🤖 **Multi-agent support** — OpenCode, Claude Code, Codex — switch per channel
-- 🧵 **Thread-based sessions** — Each conversation is isolated, resumable
-- ⚡ **Real-time streaming** — Watch your agent think and code live
-- 🔒 **Local-first** — Your code stays on your machine
+```
+That's it. That's the product.
+```
---
-## 30-Second Install
+## Install in 10 Seconds
-**macOS / Linux:**
```bash
-curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash
+curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash && vibe
```
-**Windows:**
+That's it. Browser opens. Paste your Slack tokens. Done.
+
+<details>
+<summary><b>Windows?</b></summary>
+
```powershell
irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
```
+</details>
-Then run:
-```bash
-vibe
-```
+---
+
+## Why This Exists
-A web UI opens. Add your Slack tokens. Enable channels. Start vibing.
+| Problem | Solution |
+|---------|----------|
+| Claude Code is amazing but needs a terminal | Slack IS your terminal now |
+| Context-switching kills flow | Stay in one app |
+| Can't code from phone | Yes you can |
+| Multiple agents, multiple setups | One Slack, any agent |
+
+**Supported Agents:**
+- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) — Deep reasoning, complex refactors
+- [OpenCode](https://opencode.ai) — Fast, extensible, community favorite
+- [Codex](https://github.com/openai/codex) — OpenAI's coding model
---
## How It Works
```
-┌─────────────┐ ┌─────────────┐ ┌─────────────┐
-│ Slack │────▶│ Vibe Remote │────▶│ AI Agent │
-│ (You type) │ │ (Routes) │ │ (Codes) │
-└─────────────┘ └─────────────┘ └─────────────┘
- │
- ▼
- ┌─────────────┐
- │ Your Local │
- │ Codebase │
- └─────────────┘
+┌──────────────┐ ┌──────────────┐ ┌──────────────┐
+│ You │ Slack │ Vibe Remote │ stdio │ AI Agent │
+│ (anywhere) │ ──────▶ │ (your Mac) │ ──────▶ │ (your code) │
+└──────────────┘ └──────────────┘ └──────────────┘
+```
+
+1. **You type** in Slack: *"Add dark mode to the settings page"*
+2. **Vibe Remote** routes to your configured agent
+3. **Agent** reads your codebase, writes code, streams back
+4. **You review** in Slack, iterate in thread
+
+**Your code never leaves your machine.** Vibe Remote runs locally and connects via Slack's Socket Mode.
+
+---
+
+## Quick Start
+
+### 1. Install
+```bash
+curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash
+```
+
+### 2. Run
+```bash
+vibe
```
-1. **You** type in Slack: *"Fix the login bug in auth.py"*
-2. **Vibe Remote** routes to your chosen AI agent (OpenCode/Claude/Codex)
-3. **Agent** analyzes, writes code, streams back results
-4. **You** review in Slack, iterate with follow-ups
+### 3. Setup Slack (5 min)
+The web UI guides you through everything. Or read the [detailed guide](docs/SLACK_SETUP.md).
-All execution happens locally. Your code never leaves your machine.
+### 4. Vibe
+```
+/start → Pick your agent → Start typing
+```
---
-## Quick Commands
+## Commands
-| Command | What it does |
-|---------|--------------|
-| `/start` | Open the main menu |
-| `/stop` | Stop current agent session |
-| `/cwd` | Show working directory |
-| `/settings` | Configure message visibility |
+| In Slack | What it does |
+|----------|--------------|
+| `/start` | Open control panel |
+| `/stop` | Kill current session |
+| Just type | Talk to your agent |
+| Reply in thread | Continue conversation |
-**Pro tip:** Use threads! Each thread maintains its own session and working directory.
+**Pro tip:** Each Slack thread = isolated session. Start multiple threads for parallel tasks.
---
-## Per-Channel Agent Routing
+## Per-Channel Routing
-Different projects need different agents. Route them per channel:
+Different projects, different agents:
-| Channel | Agent | Why |
-|---------|-------|-----|
-| `#frontend` | OpenCode | Fast, great for UI work |
-| `#backend` | Claude Code | Deep reasoning for complex logic |
-| `#experiments` | Codex | Quick prototyping |
+```
+#frontend → OpenCode (fast iteration)
+#backend → Claude Code (complex logic)
+#prototypes → Codex (quick experiments)
+```
-Configure via the web UI at `http://localhost:5173/channels`.
+Configure in web UI → Channels.
+
+---
+
+## CLI
+
+```bash
+vibe # Start everything
+vibe status # Check if running
+vibe stop # Stop everything
+vibe doctor # Diagnose issues
+```
---
## Prerequisites
-You need at least one coding agent CLI installed:
+You need at least one coding agent installed:
<details>
-<summary><b>OpenCode</b> (Recommended)</summary>
+<summary><b>Claude Code</b> (Recommended)</summary>
```bash
-brew install opencode
-# or
-curl -fsSL https://opencode.ai/install | bash
+npm install -g @anthropic-ai/claude-code
```
</details>
<details>
-<summary><b>Claude Code</b></summary>
+<summary><b>OpenCode</b></summary>
```bash
-npm install -g @anthropic-ai/claude-code
+curl -fsSL https://opencode.ai/install | bash
```
</details>
@@ -134,61 +170,42 @@ npm install -g @anthropic-ai/claude-code
<summary><b>Codex</b></summary>
```bash
-brew install codex
+npm install -g @openai/codex
```
</details>
---
-## CLI Reference
+## Security
-```bash
-vibe # Start service + open web UI
-vibe status # Check if service is running
-vibe stop # Stop everything
-vibe doctor # Diagnose issues
-```
+- **Local-first** — Vibe Remote runs on your machine
+- **Socket Mode** — No public URLs, no webhooks
+- **Your tokens** — Stored in `~/.vibe_remote/`, never uploaded
+- **Your code** — Stays on your disk, sent only to your chosen AI provider
---
## Uninstall
```bash
-vibe stop
-uv tool uninstall vibe-remote # or: pip uninstall vibe-remote
-rm -rf ~/.vibe_remote # Remove config (optional)
+vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
```
---
-## Documentation
-
-- **[Slack Setup Guide](docs/SLACK_SETUP.md)** — Create your Slack app in 5 minutes
-- **[中文安装指南](docs/SLACK_SETUP_ZH.md)** — Chinese setup guide
-
----
-
-## Security
-
-- 🔐 Tokens stored locally in `~/.vibe_remote/config/config.json`
-- 🏠 Web UI runs on localhost only
-- 💻 All code execution happens on your machine
-- 🚫 No data sent to third parties (except your chosen AI provider)
-
----
-
## Roadmap
-- [ ] More IM platforms (Discord, Teams)
-- [ ] File attachments support
-- [ ] Multi-workspace Slack support
-- [ ] SaaS mode with cloud relay
+- [ ] Discord & Teams support
+- [ ] File attachments in Slack
+- [ ] Multi-workspace
+- [ ] Cloud relay mode (optional)
---
-## Contributing
+## Docs
-PRs welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
+- **[Slack Setup Guide](docs/SLACK_SETUP.md)** — Create your Slack app
+- **[中文安装指南](docs/SLACK_SETUP_ZH.md)** — Chinese guide
---
@@ -196,6 +213,10 @@ PRs welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
**Stop context-switching. Start vibe coding.**
-[Install Now](#30-second-install) · [Setup Slack](docs/SLACK_SETUP.md) · [Report Bug](https://github.com/cyhhao/vibe-remote/issues)
+[Install Now](#install-in-10-seconds) · [Setup Slack](docs/SLACK_SETUP.md) · [Report Bug](https://github.com/cyhhao/vibe-remote/issues)
+
+---
+
+*Built for developers who code from anywhere.*
</div>
diff --git a/README_ZH.md b/README_ZH.md
index 66b30ad2d..a0f27c5f2 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -1,16 +1,16 @@
<div align="center">
-<img src="assets/logo.png" alt="Vibe Remote" width="80"/>
+<img src="assets/logo.png" alt="Vibe Remote" width="120"/>
# Vibe Remote
-### 躺在沙发上写代码,在海边发布上线
+### 你的 AI 编码军团,用 Slack 指挥。
-**在 Slack 里操控 AI 编码代理 — 不需要 IDE**
+**不用电脑。不用 IDE。只需 vibe。**
+[![GitHub Stars](https://img.shields.io/github/stars/cyhhao/vibe-remote?color=ffcb47&labelColor=black&style=flat-square)](https://github.com/cyhhao/vibe-remote/stargazers)
[![Python](https://img.shields.io/badge/python-3.9%2B-3776AB?labelColor=black&style=flat-square)](https://www.python.org/)
[![License](https://img.shields.io/badge/license-MIT-green?labelColor=black&style=flat-square)](LICENSE)
-[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen?labelColor=black&style=flat-square)](CONTRIBUTING.md)
[English](README.md) | [中文](README_ZH.md)
@@ -20,113 +20,149 @@
</div>
-## 为什么用 Vibe Remote?
+## 为什么
-你在度假。手机响了 — 生产环境出 bug 了。
+你在海边。手机响了 — 线上炸了。
-有了 Vibe Remote,你不用手忙脚乱找电脑。打开 Slack,打几个字说明要修什么,然后看着 AI 实时把解决方案写出来。审查、确认、搞定。继续喝你的玛格丽塔。
+**以前的你:** 慌了。找 WiFi。开电脑。等 IDE 加载。晒伤了。
-**这就是 vibe coding。**
+**用了 Vibe Remote:** 打开 Slack。输入「修一下 login.py 的认证 bug」。看着 Claude Code 实时修复。批准。继续喝玛格丽塔。
-- 🛋️ **随时随地工作** — Slack 就是你的 IDE
-- 🤖 **多 Agent 支持** — OpenCode、Claude Code、Codex — 按频道切换
-- 🧵 **基于线程的会话** — 每个对话独立,可恢复
-- ⚡ **实时流式输出** — 看着 AI 思考和写代码
-- 🔒 **本地优先** — 代码不离开你的电脑
+```
+就这样。这就是产品。
+```
---
-## 30 秒安装
+## 10 秒安装
-**macOS / Linux:**
```bash
-curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash
+curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash && vibe
```
-**Windows:**
+完事。浏览器打开。粘贴 Slack token。搞定。
+
+<details>
+<summary><b>Windows?</b></summary>
+
```powershell
irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
```
+</details>
-然后运行:
-```bash
-vibe
-```
+---
+
+## 为什么做这个
-Web 界面会自动打开。添加你的 Slack token。启用频道。开始 vibe。
+| 问题 | 解决方案 |
+|------|----------|
+| Claude Code 很强但需要终端 | Slack 就是你的终端 |
+| 上下文切换杀死心流 | 留在一个 App 里 |
+| 手机上没法写代码 | 现在可以了 |
+| 多个 Agent,多套配置 | 一个 Slack,随便切 |
+
+**支持的 Agent:**
+- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) — 深度推理,复杂重构
+- [OpenCode](https://opencode.ai) — 快速、可扩展、社区最爱
+- [Codex](https://github.com/openai/codex) — OpenAI 的编码模型
---
## 工作原理
```
-┌─────────────┐ ┌─────────────┐ ┌─────────────┐
-│ Slack │────▶│ Vibe Remote │────▶│ AI Agent │
-│ (你输入) │ │ (路由) │ │ (写代码) │
-└─────────────┘ └─────────────┘ └─────────────┘
- │
- ▼
- ┌─────────────┐
- │ 你的本地 │
- │ 代码库 │
- └─────────────┘
+┌──────────────┐ ┌──────────────┐ ┌──────────────┐
+│ 你 │ Slack │ Vibe Remote │ stdio │ AI Agent │
+│ (任何地方) │ ──────▶ │ (你的 Mac) │ ──────▶ │ (你的代码) │
+└──────────────┘ └──────────────┘ └──────────────┘
+```
+
+1. **你输入**:*「给设置页加个暗黑模式」*
+2. **Vibe Remote** 路由到你配置的 Agent
+3. **Agent** 读代码、写代码、实时返回
+4. **你审查**,在线程里继续迭代
+
+**你的代码不会离开你的机器。** Vibe Remote 本地运行,通过 Slack Socket Mode 连接。
+
+---
+
+## 快速开始
+
+### 1. 安装
+```bash
+curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash
+```
+
+### 2. 运行
+```bash
+vibe
```
-1. **你**在 Slack 输入:*"修复 auth.py 里的登录 bug"*
-2. **Vibe Remote** 路由到你选的 AI(OpenCode/Claude/Codex)
-3. **Agent** 分析、写代码、实时返回结果
-4. **你**在 Slack 里审查,继续对话迭代
+### 3. 配置 Slack(5 分钟)
+Web UI 会引导你完成所有步骤。或者看[详细指南](docs/SLACK_SETUP_ZH.md)。
-所有执行都在本地。代码不会离开你的机器。
+### 4. 开始 Vibe
+```
+/start → 选 Agent → 开始输入
+```
---
-## 快捷命令
+## 命令
-| 命令 | 作用 |
-|---------|--------------|
-| `/start` | 打开主菜单 |
-| `/stop` | 停止当前 Agent 会话 |
-| `/cwd` | 显示工作目录 |
-| `/settings` | 配置消息显示 |
+| Slack 里 | 干嘛的 |
+|----------|--------|
+| `/start` | 打开控制面板 |
+| `/stop` | 停止当前会话 |
+| 直接打字 | 跟 Agent 对话 |
+| 在线程里回复 | 继续对话 |
-**技巧:** 用线程!每个线程都有独立的会话和工作目录。
+**技巧:** 每个 Slack 线程 = 独立会话。开多个线程可以并行任务。
---
-## 按频道路由 Agent
+## 按频道路由
-不同项目需要不同的 Agent。按频道配置:
+不同项目,不同 Agent:
-| 频道 | Agent | 原因 |
-|---------|-------|-----|
-| `#frontend` | OpenCode | 快,适合 UI 开发 |
-| `#backend` | Claude Code | 深度推理,适合复杂逻辑 |
-| `#experiments` | Codex | 快速原型 |
+```
+#frontend → OpenCode(快速迭代)
+#backend → Claude Code(复杂逻辑)
+#prototypes → Codex(快速实验)
+```
-在 Web UI 配置:`http://localhost:5173/channels`
+在 Web UI → Channels 配置。
+
+---
+
+## CLI
+
+```bash
+vibe # 启动一切
+vibe status # 检查运行状态
+vibe stop # 停止一切
+vibe doctor # 诊断问题
+```
---
## 前置条件
-你需要至少安装一个编码 Agent CLI:
+你需要至少安装一个编码 Agent:
<details>
-<summary><b>OpenCode</b>(推荐)</summary>
+<summary><b>Claude Code</b>(推荐)</summary>
```bash
-brew install opencode
-# 或
-curl -fsSL https://opencode.ai/install | bash
+npm install -g @anthropic-ai/claude-code
```
</details>
<details>
-<summary><b>Claude Code</b></summary>
+<summary><b>OpenCode</b></summary>
```bash
-npm install -g @anthropic-ai/claude-code
+curl -fsSL https://opencode.ai/install | bash
```
</details>
@@ -134,61 +170,42 @@ npm install -g @anthropic-ai/claude-code
<summary><b>Codex</b></summary>
```bash
-brew install codex
+npm install -g @openai/codex
```
</details>
---
-## CLI 参考
+## 安全
-```bash
-vibe # 启动服务 + 打开 Web UI
-vibe status # 检查服务状态
-vibe stop # 停止所有服务
-vibe doctor # 诊断问题
-```
+- **本地优先** — Vibe Remote 跑在你机器上
+- **Socket Mode** — 没有公开 URL,没有 webhook
+- **你的 token** — 存在 `~/.vibe_remote/`,永不上传
+- **你的代码** — 留在你硬盘,只发给你选的 AI 提供商
---
## 卸载
```bash
-vibe stop
-uv tool uninstall vibe-remote # 或: pip uninstall vibe-remote
-rm -rf ~/.vibe_remote # 删除配置(可选)
+vibe stop && uv tool uninstall vibe-remote && rm -rf ~/.vibe_remote
```
---
-## 文档
-
-- **[Slack 安装指南](docs/SLACK_SETUP_ZH.md)** — 5 分钟创建你的 Slack App
-- **[English Setup Guide](docs/SLACK_SETUP.md)** — English setup guide
-
----
-
-## 安全
-
-- 🔐 Token 本地存储在 `~/.vibe_remote/config/config.json`
-- 🏠 Web UI 只在 localhost 运行
-- 💻 所有代码执行都在你的机器上
-- 🚫 不向第三方发送数据(除了你选择的 AI 提供商)
-
----
-
## 路线图
-- [ ] 更多 IM 平台(Discord、Teams)
-- [ ] 文件附件支持
-- [ ] 多工作区 Slack 支持
-- [ ] SaaS 模式 + 云中继
+- [ ] Discord & Teams 支持
+- [ ] Slack 文件附件
+- [ ] 多工作区
+- [ ] 云中继模式(可选)
---
-## 贡献
+## 文档
-欢迎 PR!查看 [CONTRIBUTING.md](CONTRIBUTING.md)。
+- **[Slack 安装指南](docs/SLACK_SETUP_ZH.md)** — 创建你的 Slack App
+- **[English Setup Guide](docs/SLACK_SETUP.md)** — English guide
---
@@ -196,6 +213,10 @@ rm -rf ~/.vibe_remote # 删除配置(可选)
**停止上下文切换。开始 vibe coding。**
-[立即安装](#30-秒安装) · [设置 Slack](docs/SLACK_SETUP_ZH.md) · [报告 Bug](https://github.com/cyhhao/vibe-remote/issues)
+[立即安装](#10-秒安装) · [配置 Slack](docs/SLACK_SETUP_ZH.md) · [报告 Bug](https://github.com/cyhhao/vibe-remote/issues)
+
+---
+
+*为随时随地写代码的开发者而建。*
</div>
diff --git a/docs/SLACK_SETUP.md b/docs/SLACK_SETUP.md
index 45fa7451f..df30734a4 100644
--- a/docs/SLACK_SETUP.md
+++ b/docs/SLACK_SETUP.md
@@ -1,24 +1,24 @@
-# Slack Bot Setup Guide
+# Slack Setup (5 minutes)
-This guide will walk you through setting up a Slack bot for Vibe Remote.
+## TL;DR
-## Prerequisites
+1. Create Slack App with manifest below
+2. Get two tokens (`xoxb-` and `xapp-`)
+3. Run `vibe` and paste them in the web UI
-- Admin access to a Slack workspace
-- Python 3.9 or higher installed
-- Vibe Remote installed (`curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash`)
+---
-## Step 1: Create a Slack App
+## Step 1: Create App
-1. Go to [https://api.slack.com/apps](https://api.slack.com/apps)
-2. Click **"Create New App"** → **"From an app manifest"**
-3. Select your workspace
-4. Paste the following manifest (YAML):
+1. Go to [api.slack.com/apps](https://api.slack.com/apps)
+2. **Create New App** → **From an app manifest**
+3. Select workspace
+4. Paste this YAML:
```yaml
display_information:
name: Vibe Remote
- description: Local-first agent runtime for Slack
+ description: AI coding agent for Slack
background_color: "#0B1B2B"
features:
bot_user:
@@ -37,13 +37,13 @@ oauth_config:
- channels:history
- channels:read
- chat:write
+ - chat:write.public
- app_mentions:read
- users:read
- commands
- groups:read
- groups:history
- groups:write
- - chat:write.public
- files:read
- files:write
- reactions:read
@@ -66,149 +66,52 @@ settings:
is_enabled: true
```
-5. Click **"Next"**, review the configuration, and click **"Create"**
+5. Click **Create**
-## Step 2: Generate Tokens
+---
-### Bot Token
+## Step 2: Get Tokens
-1. Go to **"OAuth & Permissions"** in the sidebar
-2. Click **"Install to Workspace"**
-3. Review permissions and click **"Allow"**
-4. Copy the **Bot User OAuth Token** (starts with `xoxb-`)
+### Bot Token (`xoxb-`)
-### App Token (Socket Mode)
+1. **OAuth & Permissions** → **Install to Workspace** → **Allow**
+2. Copy the **Bot User OAuth Token**
-1. Go to **"Basic Information"** in the sidebar
-2. Scroll to **"App-Level Tokens"**
-3. Click **"Generate Token and Scopes"**
-4. Name: `socket-mode`
-5. Add scope: `connections:write`
-6. Click **"Generate"**
-7. Copy the **App-Level Token** (starts with `xapp-`)
+### App Token (`xapp-`)
-## Step 3: Configure Vibe Remote
+1. **Basic Information** → **App-Level Tokens** → **Generate Token**
+2. Name: `socket-mode`
+3. Add scope: `connections:write`
+4. **Generate** → Copy the token
-Run Vibe Remote to open the setup wizard:
+---
+
+## Step 3: Configure
```bash
vibe
```
-The web UI will open at `http://localhost:5173`. Follow the setup wizard:
-
-1. **Choose Mode**: Select "Self-host (Socket Mode)"
-2. **Agent Detection**: Configure your coding agent backends (OpenCode, Claude, Codex)
-3. **Slack Configuration**:
- - Paste your **Bot Token** (`xoxb-...`)
- - Paste your **App Token** (`xapp-...`)
- - Click **"Validate"** to test the connection
-4. **Channel Settings**: Enable the channels where you want the bot to work
-5. **Summary**: Review and start the service
-
-## Step 4: Invite Bot to Channels
-
-Before the bot can interact with a channel, invite it:
-
-1. Go to the channel in Slack
-2. Type `/invite @Vibe Remote`
-3. Press Enter
-
-## Step 5: Test the Bot
+Web UI opens. Paste your tokens. Click validate. Done.
-1. In an enabled channel, type `/start`
-2. You should see the Vibe Remote menu
-3. Type a message to start a coding session
+---
-## Usage
+## Step 4: Use
-### Slash Commands
+1. Invite bot to channel: `/invite @Vibe Remote`
+2. Type `/start`
+3. Start coding
-- `/start` - Open main menu with interactive buttons
-- `/stop` - Stop the current session
-
-### Interactive Menu Options
-
-After `/start`, you'll see buttons for:
-- **Current Dir** - Display current working directory
-- **Change Work Dir** - Open modal to change working directory
-- **Reset Session** - Clear conversation context
-- **Settings** - Configure message visibility
-- **How it Works** - Display help information
-
-### Thread-based Conversations
-
-- The bot creates threads for each conversation
-- Reply in the thread to continue the session
-- Each thread maintains its own agent session
+---
## Troubleshooting
-### Bot not responding
-
-1. Check that the service is running: `vibe status`
-2. Check logs: `~/.vibe_remote/logs/vibe_remote.log`
-3. Run diagnostics: `vibe doctor`
-4. Verify the bot is invited to the channel
-
-### Permission errors
-
-1. Verify tokens are correctly set (check via web UI)
-2. Ensure all required scopes are in the app manifest
-3. Reinstall the app to workspace if scopes were changed
-
-### Socket Mode issues
-
-1. Verify App Token (`xapp-`) is set correctly
-2. Check that Socket Mode is enabled in app settings
-3. Ensure the app-level token has `connections:write` scope
-
-### Channel access issues
-
-1. Ensure bot is invited to the channel: `/invite @Vibe Remote`
-2. For private channels, verify `groups:read`, `groups:history` scopes
-3. Check channel is enabled in the web UI
-
-## Security Considerations
-
-- Tokens are stored locally in `~/.vibe_remote/config/config.json`
-- Never commit tokens to version control
-- The web UI runs on localhost only
-- Regularly rotate your tokens via Slack app settings
-
-## Manual Configuration (Alternative)
-
-If you prefer to edit config files directly instead of using the web UI:
-
-Edit `~/.vibe_remote/config/config.json`:
-
-```json
-{
- "mode": "self_host",
- "slack": {
- "bot_token": "xoxb-your-bot-token",
- "app_token": "xapp-your-app-token"
- },
- "runtime": {
- "default_cwd": "/path/to/your/project"
- },
- "agents": {
- "default_backend": "opencode",
- "opencode": {"enabled": true, "cli_path": "opencode"},
- "claude": {"enabled": true, "cli_path": "claude"},
- "codex": {"enabled": false, "cli_path": "codex"}
- }
-}
-```
-
-Then start the service:
-
-```bash
-vibe
-```
+| Problem | Fix |
+|---------|-----|
+| Bot not responding | Check `vibe status`, ensure bot is invited |
+| Permission error | Reinstall app to workspace |
+| Socket error | Verify `xapp-` token has `connections:write` |
-## Additional Resources
+Logs: `~/.vibe_remote/logs/vibe_remote.log`
-- [Slack API Documentation](https://api.slack.com/)
-- [Socket Mode Guide](https://api.slack.com/apis/connections/socket)
-- [Vibe Remote GitHub](https://github.com/cyhhao/vibe-remote)
+Diagnostics: `vibe doctor`
diff --git a/docs/SLACK_SETUP_ZH.md b/docs/SLACK_SETUP_ZH.md
index e652ee1b5..3eed732cb 100644
--- a/docs/SLACK_SETUP_ZH.md
+++ b/docs/SLACK_SETUP_ZH.md
@@ -1,24 +1,24 @@
-# Slack Bot 安装指南
+# Slack 配置指南(5 分钟)
-本指南将引导你为 Vibe Remote 设置 Slack Bot。
+## 太长不看
-## 先决条件
+1. 用下面的 manifest 创建 Slack App
+2. 拿到两个 token(`xoxb-` 和 `xapp-`)
+3. 运行 `vibe`,在网页上粘贴
-- Slack 工作区管理员权限
-- Python 3.9 或更高版本
-- 已安装 Vibe Remote(`curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash`)
+---
-## 步骤 1:创建 Slack App
+## 第 1 步:创建 App
-1. 访问 [https://api.slack.com/apps](https://api.slack.com/apps)
-2. 点击 **"Create New App"** → **"From an app manifest"**
-3. 选择你的工作区
-4. 粘贴以下 manifest(YAML 格式):
+1. 打开 [api.slack.com/apps](https://api.slack.com/apps)
+2. **Create New App** → **From an app manifest**
+3. 选择工作区
+4. 粘贴这段 YAML:
```yaml
display_information:
name: Vibe Remote
- description: Local-first agent runtime for Slack
+ description: AI coding agent for Slack
background_color: "#0B1B2B"
features:
bot_user:
@@ -37,13 +37,13 @@ oauth_config:
- channels:history
- channels:read
- chat:write
+ - chat:write.public
- app_mentions:read
- users:read
- commands
- groups:read
- groups:history
- groups:write
- - chat:write.public
- files:read
- files:write
- reactions:read
@@ -66,149 +66,52 @@ settings:
is_enabled: true
```
-5. 点击 **"Next"**,检查配置,然后点击 **"Create"**
+5. 点 **Create**
-## 步骤 2:生成 Token
+---
-### Bot Token
+## 第 2 步:获取 Token
-1. 进入侧边栏的 **"OAuth & Permissions"**
-2. 点击 **"Install to Workspace"**
-3. 检查权限并点击 **"Allow"**
-4. 复制 **Bot User OAuth Token**(以 `xoxb-` 开头)
+### Bot Token(`xoxb-`)
-### App Token(Socket Mode)
+1. **OAuth & Permissions** → **Install to Workspace** → **Allow**
+2. 复制 **Bot User OAuth Token**
-1. 进入侧边栏的 **"Basic Information"**
-2. 滚动到 **"App-Level Tokens"**
-3. 点击 **"Generate Token and Scopes"**
-4. 名称:`socket-mode`
-5. 添加 scope:`connections:write`
-6. 点击 **"Generate"**
-7. 复制 **App-Level Token**(以 `xapp-` 开头)
+### App Token(`xapp-`)
-## 步骤 3:配置 Vibe Remote
+1. **Basic Information** → **App-Level Tokens** → **Generate Token**
+2. 名称:`socket-mode`
+3. 添加 scope:`connections:write`
+4. **Generate** → 复制 token
-运行 Vibe Remote 打开设置向导:
+---
+
+## 第 3 步:配置
```bash
vibe
```
-Web UI 将在 `http://localhost:5173` 打开。按照设置向导:
-
-1. **选择模式**:选择 "Self-host (Socket Mode)"
-2. **Agent 检测**:配置你的编码 Agent 后端(OpenCode、Claude、Codex)
-3. **Slack 配置**:
- - 粘贴你的 **Bot Token**(`xoxb-...`)
- - 粘贴你的 **App Token**(`xapp-...`)
- - 点击 **"验证"** 测试连接
-4. **频道设置**:启用你希望 Bot 工作的频道
-5. **摘要**:检查并启动服务
-
-## 步骤 4:邀请 Bot 到频道
-
-在 Bot 能够与频道交互之前,需要邀请它:
-
-1. 在 Slack 中进入频道
-2. 输入 `/invite @Vibe Remote`
-3. 按回车
-
-## 步骤 5:测试 Bot
+网页打开。粘贴 token。点验证。完事。
-1. 在已启用的频道中,输入 `/start`
-2. 你应该看到 Vibe Remote 菜单
-3. 输入消息开始编码会话
+---
-## 使用方式
+## 第 4 步:使用
-### Slash 命令
+1. 邀请 bot 到频道:`/invite @Vibe Remote`
+2. 输入 `/start`
+3. 开始写代码
-- `/start` - 打开带有交互按钮的主菜单
-- `/stop` - 停止当前会话
-
-### 交互菜单选项
-
-`/start` 后,你会看到以下按钮:
-- **Current Dir** - 显示当前工作目录
-- **Change Work Dir** - 打开模态框更改工作目录
-- **Reset Session** - 清除对话上下文
-- **Settings** - 配置消息可见性
-- **How it Works** - 显示帮助信息
-
-### 基于线程的对话
-
-- Bot 为每个对话创建线程
-- 在线程中回复以继续会话
-- 每个线程维护自己的 Agent 会话
+---
## 故障排除
-### Bot 不响应
-
-1. 检查服务是否运行:`vibe status`
-2. 检查日志:`~/.vibe_remote/logs/vibe_remote.log`
-3. 运行诊断:`vibe doctor`
-4. 验证 Bot 已被邀请到频道
-
-### 权限错误
-
-1. 验证 Token 设置正确(通过 Web UI 检查)
-2. 确保 App manifest 中包含所有必需的 scope
-3. 如果 scope 有变更,重新安装 App 到工作区
-
-### Socket Mode 问题
-
-1. 验证 App Token(`xapp-`)设置正确
-2. 检查 App 设置中已启用 Socket Mode
-3. 确保 app-level token 有 `connections:write` scope
-
-### 频道访问问题
-
-1. 确保 Bot 已被邀请到频道:`/invite @Vibe Remote`
-2. 对于私有频道,验证 `groups:read`、`groups:history` scope
-3. 检查频道已在 Web UI 中启用
-
-## 安全注意事项
-
-- Token 本地存储在 `~/.vibe_remote/config/config.json`
-- 永远不要将 Token 提交到版本控制
-- Web UI 仅在 localhost 运行
-- 定期通过 Slack App 设置轮换你的 Token
-
-## 手动配置(替代方式)
-
-如果你更喜欢直接编辑配置文件而不是使用 Web UI:
-
-编辑 `~/.vibe_remote/config/config.json`:
-
-```json
-{
- "mode": "self_host",
- "slack": {
- "bot_token": "xoxb-your-bot-token",
- "app_token": "xapp-your-app-token"
- },
- "runtime": {
- "default_cwd": "/path/to/your/project"
- },
- "agents": {
- "default_backend": "opencode",
- "opencode": {"enabled": true, "cli_path": "opencode"},
- "claude": {"enabled": true, "cli_path": "claude"},
- "codex": {"enabled": false, "cli_path": "codex"}
- }
-}
-```
-
-然后启动服务:
-
-```bash
-vibe
-```
+| 问题 | 解决 |
+|------|------|
+| Bot 不响应 | 检查 `vibe status`,确认 bot 已被邀请 |
+| 权限错误 | 重新安装 App 到工作区 |
+| Socket 错误 | 确认 `xapp-` token 有 `connections:write` |
-## 其他资源
+日志:`~/.vibe_remote/logs/vibe_remote.log`
-- [Slack API 文档](https://api.slack.com/)
-- [Socket Mode 指南](https://api.slack.com/apis/connections/socket)
-- [Vibe Remote GitHub](https://github.com/cyhhao/vibe-remote)
+诊断:`vibe doctor`
diff --git a/install.ps1 b/install.ps1
index e8f9a1f8a..5e281c808 100644
--- a/install.ps1
+++ b/install.ps1
@@ -1,12 +1,13 @@
# Vibe Remote Installation Script for Windows
# Usage: irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
+#
+# Prerequisites: None! uv will be installed automatically and manages Python for you.
$ErrorActionPreference = "Stop"
# Configuration
$REPO = "cyhhao/vibe-remote"
$PACKAGE_NAME = "vibe-remote"
-$MIN_PYTHON_VERSION = [Version]"3.9"
function Write-Banner {
Write-Host @"
@@ -51,37 +52,13 @@ function Test-Command {
return $?
}
-function Get-PythonVersion {
- param([string]$PythonCmd)
- try {
- $version = & $PythonCmd -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" 2>$null
- return [Version]$version
- } catch {
- return $null
- }
-}
-
-function Find-Python {
- $candidates = @("python", "python3", "py -3")
-
- foreach ($cmd in $candidates) {
- if (Test-Command $cmd.Split()[0]) {
- $version = Get-PythonVersion $cmd
- if ($version -and $version -ge $MIN_PYTHON_VERSION) {
- return $cmd
- }
- }
- }
- return $null
-}
-
function Install-Uv {
if (Test-Command "uv") {
Write-Success "uv is already installed"
return
}
- Write-Info "Installing uv (Python package manager)..."
+ Write-Info "Installing uv (will also manage Python automatically)..."
try {
irm https://astral.sh/uv/install.ps1 | iex
@@ -107,26 +84,13 @@ function Install-Uv {
}
function Install-Vibe {
- Write-Info "Installing vibe-remote..."
+ Write-Info "Installing vibe-remote (Python will be downloaded automatically if needed)..."
- if (Test-Command "uv") {
- try {
- & uv tool install $PACKAGE_NAME --force 2>$null
- } catch {
- & uv tool install "git+https://github.com/$REPO.git" --force
- }
- } else {
- $pythonCmd = Find-Python
- if (-not $pythonCmd) {
- Write-Error "Python $MIN_PYTHON_VERSION+ is required but not found. Please install Python first."
- }
-
- Write-Info "Using $pythonCmd (uv not found, falling back to pip)"
- try {
- & $pythonCmd -m pip install --user $PACKAGE_NAME 2>$null
- } catch {
- & $pythonCmd -m pip install --user "git+https://github.com/$REPO.git"
- }
+ # uv tool install will auto-download Python if not available
+ try {
+ & uv tool install $PACKAGE_NAME --force 2>$null
+ } catch {
+ & uv tool install "git+https://github.com/$REPO.git" --force
}
Write-Success "vibe-remote installed successfully"
@@ -142,14 +106,13 @@ function Test-Installation {
if (Test-Command "vibe") {
Write-Success "vibe command is available"
Write-Host ""
- & vibe doctor
+ & vibe --help
return $true
}
# Check common install locations
$vibeLocations = @(
- "$env:USERPROFILE\.local\bin\vibe.exe",
- "$env:APPDATA\Python\Scripts\vibe.exe"
+ "$env:USERPROFILE\.local\bin\vibe.exe"
)
foreach ($loc in $vibeLocations) {
@@ -182,8 +145,7 @@ function Write-NextSteps {
Write-Host " vibe doctor - Run diagnostics"
Write-Host ""
Write-Host "Uninstall:" -ForegroundColor Blue
- Write-Host " uv tool uninstall vibe-remote # if installed with uv"
- Write-Host " pip uninstall vibe-remote # if installed with pip"
+ Write-Host " uv tool uninstall vibe-remote"
Write-Host " Remove-Item -Recurse ~\.vibe_remote # remove config and data"
Write-Host ""
Write-Host "Documentation:" -ForegroundColor Blue
@@ -197,16 +159,7 @@ function Main {
Write-Info "Detected OS: Windows"
- # Check Python
- $pythonCmd = Find-Python
- if ($pythonCmd) {
- $version = Get-PythonVersion $pythonCmd
- Write-Success "Found Python $version ($pythonCmd)"
- } else {
- Write-Warning "Python $MIN_PYTHON_VERSION+ not found, will try to use uv's managed Python"
- }
-
- # Install uv
+ # Install uv (which manages Python automatically)
Install-Uv
# Install vibe-remote
diff --git a/install.sh b/install.sh
index bdee532fa..f0602c7a6 100755
--- a/install.sh
+++ b/install.sh
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
# Vibe Remote Installation Script
# Usage: curl -fsSL https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh | bash
+#
+# Prerequisites: None! uv will be installed automatically and manages Python for you.
set -e
@@ -14,7 +16,6 @@ NC='\033[0m' # No Color
# Configuration
REPO="cyhhao/vibe-remote"
PACKAGE_NAME="vibe-remote"
-MIN_PYTHON_VERSION="3.9"
print_banner() {
echo -e "${BLUE}"
@@ -63,34 +64,6 @@ command_exists() {
command -v "$1" >/dev/null 2>&1
}
-# Version comparison: returns 0 if $1 >= $2
-version_gte() {
- [ "$(printf '%s\n' "$2" "$1" | sort -V | head -n1)" = "$2" ]
-}
-
-# Get Python version
-get_python_version() {
- local python_cmd="$1"
- $python_cmd -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" 2>/dev/null
-}
-
-# Find suitable Python
-find_python() {
- local python_candidates=("python3" "python" "python3.12" "python3.11" "python3.10" "python3.9")
-
- for cmd in "${python_candidates[@]}"; do
- if command_exists "$cmd"; then
- local version
- version=$(get_python_version "$cmd")
- if [ -n "$version" ] && version_gte "$version" "$MIN_PYTHON_VERSION"; then
- echo "$cmd"
- return 0
- fi
- fi
- done
- return 1
-}
-
# Install uv if not present
install_uv() {
if command_exists uv; then
@@ -98,7 +71,7 @@ install_uv() {
return 0
fi
- info "Installing uv (Python package manager)..."
+ info "Installing uv (will also manage Python automatically)..."
local os
os=$(detect_os)
@@ -133,26 +106,13 @@ install_uv() {
fi
}
-# Install vibe-remote
+# Install vibe-remote using uv (uv auto-downloads Python if needed)
install_vibe() {
- info "Installing vibe-remote..."
+ info "Installing vibe-remote (Python will be downloaded automatically if needed)..."
- if command_exists uv; then
- # Use uv tool install (recommended)
- uv tool install "$PACKAGE_NAME" --force 2>/dev/null || \
- uv tool install "git+https://github.com/${REPO}.git" --force
- else
- # Fallback to pip
- local python_cmd
- python_cmd=$(find_python)
- if [ -z "$python_cmd" ]; then
- error "Python ${MIN_PYTHON_VERSION}+ is required but not found. Please install Python first."
- fi
-
- info "Using $python_cmd (uv not found, falling back to pip)"
- $python_cmd -m pip install --user "$PACKAGE_NAME" 2>/dev/null || \
- $python_cmd -m pip install --user "git+https://github.com/${REPO}.git"
- fi
+ # uv tool install will auto-download Python if not available
+ uv tool install "$PACKAGE_NAME" --force 2>/dev/null || \
+ uv tool install "git+https://github.com/${REPO}.git" --force
success "vibe-remote installed successfully"
}
@@ -167,7 +127,7 @@ verify_installation() {
if command_exists vibe; then
success "vibe command is available"
echo ""
- vibe --help 2>/dev/null || vibe doctor
+ vibe --help 2>/dev/null || true
return 0
fi
@@ -175,7 +135,6 @@ verify_installation() {
local vibe_locations=(
"$HOME/.local/bin/vibe"
"$HOME/.cargo/bin/vibe"
- "$(python3 -m site --user-base 2>/dev/null)/bin/vibe"
)
for loc in "${vibe_locations[@]}"; do
@@ -226,18 +185,7 @@ main() {
os=$(detect_os)
info "Detected OS: $os"
- # Check Python
- local python_cmd
- python_cmd=$(find_python) || true
- if [ -n "$python_cmd" ]; then
- local version
- version=$(get_python_version "$python_cmd")
- success "Found Python $version ($python_cmd)"
- else
- warn "Python ${MIN_PYTHON_VERSION}+ not found, will try to use uv's managed Python"
- fi
-
- # Install uv
+ # Install uv (which manages Python automatically)
install_uv
# Install vibe-remote