# 使用 Homebrew, Nix, apk, apt, dnf, MacPorts, pacman, zypper 安装 happy-coder

查看 happy-coder 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:happy-coder
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install happy-coder
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install happy
```

  证据: MacPorts ports tree: devel/happy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#happy-coder
```

  证据: nixpkgs package indexes: pkgs/by-name/ha/happy-coder/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- apk (92%):

```sh
sudo apk add happy
```

  证据: Alpine Linux edge package indexes: happy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install happy
```

  证据: Debian stable package indexes: happy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install happy
```

  证据: Fedora Rawhide package metadata: happy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S happy
```

  证据: Arch Linux sync databases: happy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install happy
```

  证据: openSUSE Tumbleweed package metadata: happy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:happy-coder
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/happy-coder>
- **版本:** 0.13.0
- **来源摘要:** CLI for operating AI coding agents from mobile devices
- **主页:** <https://happy.engineering>
- **仓库:** <https://github.com/slopus/happy-cli>
- **上游文档:** <https://happy.engineering>
- **许可证:** MIT
- **源码归档:** <https://github.com/slopus/happy-cli/archive/refs/tags/v0.13.0.tar.gz>
- **最后更新:** 2026-07-11T13:38:25-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- happy (cli)
- happy-mcp (cli)
- happy (别名)
- happy-mcp (别名)

## 依赖

- difftastic
- node
- ripgrep

## 构建依赖

- yarn

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.13.0
- 管理器更新时间: 2026-07-11
- 本地数据: OK
- 上游仓库: https://github.com/slopus/happy-cli
- 检测到的最新版本: v0.13.0 (当前)
## 项目历史与用法

Happy Coder is a CLI-centered mobile and web control layer for AI coding agents. Its package history is tied to the fast-moving 2025-2026 coding-agent ecosystem: local agents stay on user-owned machines while phones and browsers provide remote control, notifications, and voice-driven interaction.

### 项目历史

The original `happy-cli` repository describes Happy Coder as a CLI that connects local Claude Code to a mobile device. The newer official repository and documentation describe Happy as a mobile and web client for Claude Code and Codex with end-to-end encryption, real-time sync, and a CLI installed as `happy`.

The official README records a package-name migration from `happy-coder` to `happy`, crediting the donation of the shorter npm package name. That migration is an important packaging detail: Homebrew still uses the `happy-coder` formula name in the input batch, while the documented npm command installs `happy`.

### 采用历史

Happy's adoption path is shaped by developers who already run Claude Code or Codex locally but want to monitor or steer sessions away from the keyboard. The official site emphasizes mobile access, multiple active sessions, push notifications, voice control, and no requirement to move code onto rented cloud machines.

### 使用方式

The documented workflow is to install the CLI, then run `happy claude` or `happy codex` instead of invoking the underlying agent directly. Happy wraps the local agent, allows control from phone, tablet, web app, or desktop, and can switch control back to the local keyboard.

### 为什么软件包爱好者会关心

Happy Coder is package-nerd-interesting because it shows how AI-agent tools are being packaged as local wrappers plus mobile/web companions, not just as SaaS endpoints. The executable names `happy` and `happy-mcp`, the package-name migration, and the split between archived CLI-specific and broader app repositories are the details a formula maintainer has to track.

### 时间线

- 2026-04-20: Official documentation page records a published update date for the Happy Coder docs.
- 2026: Official README documents migration from the `happy-coder` package to the `happy` package name.
- 2026: Official repository presents Happy as a mobile and web client for Claude Code and Codex.

### Related projects

- Happy Coder is directly related to Claude Code, Codex, the Happy App, Happy CLI, Happy Agent, Happy Server, and the Happy web app. The project also has an MCP-facing executable in the package facts.

### 来源

- <https://formulae.brew.sh/formula/happy-coder>
- <https://github.com/slopus/happy>
- <https://github.com/slopus/happy-cli>
- <https://happy.engineering>
- <https://happy.engineering/docs/>
- <https://happy.engineering/docs/versions/release-notes/>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** happy-coder
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - happy-coder: normalized package name match | nixpkgs package indexes: pkgs/by-name/ha/happy-coder/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - happy: installed executable or alias match | MacPorts ports tree: devel/happy/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - happy - 1.20.1.1-1: installed executable or alias match | Debian stable package indexes: happy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Parser generator for Haskell | https://www.haskell.org/happy/
- Nix - happy: installed executable or alias match | nixpkgs package indexes: happy from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - happy - 1.20.1.1-1: installed executable or alias match | Ubuntu 24.04 LTS package indexes: happy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Parser generator for Haskell | https://www.haskell.org/happy/
- apk - happy - 1.21.0-r3: installed executable or alias match | Alpine Linux edge package indexes: happy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Parser generator for Haskell | https://www.haskell.org/happy/
- apk - happy-doc - 1.21.0-r3: installed executable or alias match | Alpine Linux edge package indexes: happy-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Parser generator for Haskell (documentation) | https://www.haskell.org/happy/
- dnf - ghc-happy-lib - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-happy-lib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell happy-lib library | https://hackage.haskell.org/package/happy-lib
- dnf - ghc-happy-lib-common - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-happy-lib-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Common data files for happy-lib | https://hackage.haskell.org/package/happy
- dnf - ghc-happy-lib-devel - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-happy-lib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell happy-lib library development files | https://hackage.haskell.org/package/happy
- dnf - ghc-happy-lib-doc - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-happy-lib-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell happy-lib library documentation | https://hackage.haskell.org/package/happy
- dnf - ghc-happy-lib-prof - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: ghc-happy-lib-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Haskell happy-lib profiling library | https://hackage.haskell.org/package/happy
- dnf - happy - 2.1.7-2.fc45: installed executable or alias match | Fedora Rawhide package metadata: happy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Parser Generator for Haskell | https://hackage.haskell.org/package/happy
- pacman - happy - 2.1.6-2: installed executable or alias match | Arch Linux sync databases: happy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Parser Generator for Haskell | https://hackage.haskell.org/package/happy
- zypper - happy - 2.1.7-1.6: installed executable or alias match | openSUSE Tumbleweed package metadata: happy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Happy is a parser generator for Haskell | https://hackage.haskell.org/package/happy


## 相关链接

- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [ripgrep](https://pkg.so/zh-hans/brew/ripgrep/) - Runtime dependency declared by Homebrew.
- [difftastic](https://pkg.so/zh-hans/brew/difftastic/) - Runtime dependency declared by Homebrew.
- [yarn](https://pkg.so/zh-hans/brew/yarn/) - Build dependency declared by Homebrew.
- [rtk](https://pkg.so/zh-hans/brew/rtk/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [specify](https://pkg.so/zh-hans/brew/specify/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [rulesync](https://pkg.so/zh-hans/brew/rulesync/) - Shares pkgdb curated category or tags: ai, cli, coding-agents.
- [codeburn](https://pkg.so/zh-hans/brew/codeburn/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [codex-acp](https://pkg.so/zh-hans/brew/codex-acp/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [ctx7](https://pkg.so/zh-hans/brew/ctx7/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [xcsift](https://pkg.so/zh-hans/brew/xcsift/) - Shares pkgdb curated category or tags: ai, cli, coding-agents.
- [splitrail](https://pkg.so/zh-hans/brew/splitrail/) - Shares pkgdb curated category or tags: ai, ai-coding, cli, coding-agents.
- [qwen-code](https://pkg.so/zh-hans/brew/qwen-code/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, coding, coding-agents.
- [task-master-ai](https://pkg.so/zh-hans/npm/task-master-ai/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, coding, coding-agents.

## Combined YAML source

View the package source record on GitHub. [combined/happy-coder.yml](https://github.com/mxcl/pkgdb/blob/main/combined/happy-coder.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
