# Installation

What Agenvoy needs, and how to install it on macOS, Linux or Android.

Install Agenvoy on macOS or Linux, sign in with GitHub Copilot, and add your first model without editing a config file or creating an API key for this setup. If you already run a local model, see [how to connect Ollama or another OpenAI-compatible endpoint](/providers-compat).

## Prerequisites

- Linux (sandbox via bubblewrap; `bwrap` auto-installs through apt/dnf/yum/pacman/apk if missing) or macOS (`sandbox-exec`)
- At least one LLM provider account — an OAuth subscription (Codex, Copilot, Grok Build; Claude Code and Antigravity through the local `claude` / `agy` CLI once it is on `PATH`) or an API key (OpenAI, Claude, Gemini, xAI, DeepSeek, Mistral, NVIDIA, Ollama Cloud, OpenRouter, Cloudflare), or a local OpenAI-compatible server (Ollama, LM Studio, custom URL)
- Go 1.26.11 or higher, only if building from source
- Optional: `pdftotext` (poppler-utils) so `read_files` can parse PDFs
- Optional: `OPENAI_API_KEY` to enable semantic search (`text-embedding-3-small`)
- Optional: an OpenAI, Gemini or OpenRouter credential to enable audio — `/model stt` lets `read_files` transcribe audio and video, `/model tts` registers `generate_audio`. Both are off until a model is picked

## 1. Install

```bash
curl -fsSL https://agenvoy.com/scripts/install.sh | bash
```

The script detects macOS or Linux, installs the `agen` binary to `/usr/local/bin`, and pulls in what it needs (`git`, `make`, a C compiler, `python3`, `node`, `pdftotext`, and `bwrap` on Linux). It asks for `sudo` once, to write into `/usr/local/bin`.

On Android 15 QPR2 / Android 16 or later with the built-in Terminal app (Pixel, Galaxy Z Flip 7, ...), enable **Developer options → Linux development environment**, open Terminal, and run the installer inside its Debian environment:

```bash
sudo apt update && sudo apt install -y curl
curl -fsSL https://agenvoy.com/scripts/install.sh | bash
```

On other Android devices, install inside Ubuntu under [Termux](https://termux.dev/) with `proot-distro`; the installer stops when run in Termux directly, because the Linux binary cannot run there:

```bash
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
apt update && apt install -y curl
curl -fsSL https://agenvoy.com/scripts/install.sh | bash
```

Under Termux, Android blocks the user namespaces `bwrap` needs, so `run_command` runs without the sandbox there, and with no `secret-tool` keyring credentials go to `~/.config/agenvoy/.secrets`.

Check it landed:

```bash
command -v agen
```

Or build from source:

```bash
git clone https://github.com/pardnchiu/Agenvoy.git
cd agenvoy
make build
```

`make build` compiles, stamps the current exact-match git tag into `internal/runtime.CurrentVersion`, installs the binary to `/usr/local/bin/agen`, and refreshes the bundled skills and hook demos.
