Quick install: app, server, and headless hands, one line each
The top block now gives the three roles their own paste line (Windows included), matching what install.sh --print reports. Hands takes the URL and the one-time code from "Add a computer".
This commit is contained in:
parent
9443a55d90
commit
5cdf54cdc4
30
README.en.md
30
README.en.md
|
|
@ -8,21 +8,41 @@ It runs on **your computers**. You bring the model key (or run Ollama at home).
|
||||||
|
|
||||||
## Quick install
|
## Quick install
|
||||||
|
|
||||||
Open a terminal and paste one line.
|
Open a terminal and pick one. **The first build takes 5–15 minutes**, later updates 1–2. It installs into your user folder and needs no administrator account.
|
||||||
|
|
||||||
|
**Desktop app** (Mac, Linux with a screen; when in doubt paste this one — it asks what you want)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Windows (PowerShell):
|
Windows 10/11 (PowerShell):
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
The first build takes 5–15 minutes; later updates take 1–2. It installs into your user folder and needs no administrator account. Open AnyBot (on a Mac, the first time: right-click the icon › Open), paste an API key under Settings › Models, make a bot, and talk to it. No key? Pick Ollama and it runs on your own machine.
|
**Account server + brain** (any Linux with Docker, 2 GB RAM or more; it asks for a domain, a user, a password, and sets up HTTPS itself)
|
||||||
|
|
||||||
Server, hands, or running this from an agent: see [Install](#install) below.
|
```sh
|
||||||
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh -s -- server
|
||||||
|
```
|
||||||
|
|
||||||
|
**Headless hands** (a computer for the bot to use; no screen needed). The URL and the pairing code come from “Add a computer” in AnyBot:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh -s -- hands https://your-address 482913
|
||||||
|
```
|
||||||
|
|
||||||
|
Hands on Windows:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$env:ANYBOT_MODE='hands'; $env:ANYBOT_PAIR_URL='https://your-address'; $env:ANYBOT_PAIR_CODE='482913'; irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
After the desktop app, open AnyBot (on a Mac, the first time: right-click the icon › Open), paste an API key under Settings › Models, make a bot, and talk to it. No key? Pick Ollama and it runs on your own machine. A pairing code is valid for 10 minutes and works once; just ask for a new one.
|
||||||
|
|
||||||
|
Running this from an agent, with no questions asked: see [install/AGENT.md](install/AGENT.md).
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="shots/readme/chat.png" alt="A list of bots on the left, a chat with one of them on the right" width="780">
|
<img src="shots/readme/chat.png" alt="A list of bots on the left, a chat with one of them on the right" width="780">
|
||||||
|
|
@ -162,7 +182,7 @@ In a terminal it asks what you want, then walks through the first key or the fir
|
||||||
| Quick install (Windows is the desktop app) | Windows 10/11 | `irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 \| iex` |
|
| Quick install (Windows is the desktop app) | Windows 10/11 | `irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 \| iex` |
|
||||||
| Desktop app, no questions | Mac, or Linux with a screen | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- app` |
|
| Desktop app, no questions | Mac, or Linux with a screen | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- app` |
|
||||||
| Account server and brain | Any Linux with Docker | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- server` |
|
| Account server and brain | Any Linux with Docker | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- server` |
|
||||||
| Another computer as hands | Mac, Linux (headless is fine), signed-in Windows | In the app, “Add a computer”, paste the line it shows |
|
| Another computer as hands | Mac, Linux (headless is fine), Windows | The headless-hands line in “Quick install” above, or “Add a computer” in the app and paste the line it shows |
|
||||||
|
|
||||||
Linux is not Ubuntu-only. The script knows apt, dnf, yum, pacman, zypper, apk, and xbps.
|
Linux is not Ubuntu-only. The script knows apt, dnf, yum, pacman, zypper, apk, and xbps.
|
||||||
|
|
||||||
|
|
|
||||||
30
README.md
30
README.md
|
|
@ -8,21 +8,41 @@
|
||||||
|
|
||||||
## 快速安裝
|
## 快速安裝
|
||||||
|
|
||||||
打開終端機,貼一行。
|
打開終端機,選一個貼。**第一次編譯 5–15 分鐘**,之後更新 1–2 分鐘。裝在你的使用者資料夾,不需要系統管理員。
|
||||||
|
|
||||||
|
**桌面 App**(Mac、有螢幕的 Linux;不確定就貼這行,它會先問你)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Windows(PowerShell):
|
Windows 10/11(PowerShell):
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
第一次編譯 5–15 分鐘,之後更新 1–2 分鐘。裝在你的使用者資料夾,不需要系統管理員。裝好打開 AnyBot(Mac 第一次要對圖示按右鍵 › 打開),在「設定 › 模型」貼上 API 金鑰,建一個 Bot 就能開始聊。沒有金鑰可以選 Ollama,在你自己的電腦上跑。
|
**帳號伺服器 + 大腦**(任何有 Docker 的 Linux,2 GB 以上;它只問網址、帳號、密碼,HTTPS 它自己處理)
|
||||||
|
|
||||||
要架伺服器、裝到手腳、給代理程式跑:看下面「[安裝](#安裝)」。
|
```sh
|
||||||
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh -s -- server
|
||||||
|
```
|
||||||
|
|
||||||
|
**無頭手腳**(給 Bot 操控的電腦,沒螢幕也行)。網址和配對碼在 AnyBot 按「加一台電腦」就會看到:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh | sh -s -- hands https://你的網址 482913
|
||||||
|
```
|
||||||
|
|
||||||
|
Windows 手腳:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$env:ANYBOT_MODE='hands'; $env:ANYBOT_PAIR_URL='https://你的網址'; $env:ANYBOT_PAIR_CODE='482913'; irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
桌面裝好打開 AnyBot(Mac 第一次要對圖示按右鍵 › 打開),在「設定 › 模型」貼上 API 金鑰,建一個 Bot 就能開始聊。沒有金鑰可以選 Ollama,在你自己的電腦上跑。配對碼 10 分鐘內有效、只能用一次,過期就拿一組新的。
|
||||||
|
|
||||||
|
給代理程式跑、不要出現問句:看 [install/AGENT.md](install/AGENT.md)。
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="shots/readme/chat.png" alt="左邊是不同的 Bot,右邊是跟其中一個聊天" width="780">
|
<img src="shots/readme/chat.png" alt="左邊是不同的 Bot,右邊是跟其中一個聊天" width="780">
|
||||||
|
|
@ -164,7 +184,7 @@ flowchart TD
|
||||||
| 快速安裝(Windows 只有桌面 App)| Windows 10/11 | `irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 \| iex` |
|
| 快速安裝(Windows 只有桌面 App)| Windows 10/11 | `irm https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.ps1 \| iex` |
|
||||||
| 桌面 App(不問)| Mac,或有螢幕的 Linux | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- app` |
|
| 桌面 App(不問)| Mac,或有螢幕的 Linux | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- app` |
|
||||||
| 帳號伺服器+大腦 | 任何有 Docker 的 Linux | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- server` |
|
| 帳號伺服器+大腦 | 任何有 Docker 的 Linux | `curl -fsSL https://code.30cm.net/daniel.w/AnyBot/raw/branch/main/install.sh \| sh -s -- server` |
|
||||||
| 加一台手腳 | Mac、Linux(沒螢幕也行)、已登入的 Windows | App 裡按「加一台電腦」,貼它給的那一行 |
|
| 加一台手腳(沒螢幕也行) | Mac、Linux、Windows | 上面「快速安裝」的無頭手腳那行,或在 App 裡按「加一台電腦」貼它給的那一行 |
|
||||||
|
|
||||||
Linux 不限 Ubuntu。腳本認得 apt、dnf、yum、pacman、zypper、apk、xbps。
|
Linux 不限 Ubuntu。腳本認得 apt、dnf、yum、pacman、zypper、apk、xbps。
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue