# fanyi を Homebrew でインストール

fanyi のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:fanyi
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install fanyi
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:fanyi
- **パッケージマネージャ:** Homebrew
- **バージョン:** 11.0.0
- **ソース概要:** Chinese and English translate tool in your command-line
- **ホームページ:** <https://github.com/afc163/fanyi>
- **最終更新:** 2026-06-08T21:46:19+02:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- fanyi (エイリアス)
- fy (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 11.0.0
## プロジェクトの歴史と使われ方

Fanyi is a Chinese-English command-line translation tool. The README describes it as powered by iciba, Youdao, and LLM translation, with the `fanyi` command and shorter `fy` alias.

### プロジェクトの歴史

The repository was created in December 2013, making Fanyi one of the longer-running small CLI tools in this batch. Its core workflow remains intentionally simple: install globally with npm or bun, then run `fanyi word` or `fy word` for dictionary and translation output.

In 2026, the v11.0.0 release announcement in the README highlighted a shift toward out-of-the-box LLM translation through a built-in free proxy, restored Youdao support, streaming semantic coloring, custom OpenAI-compatible LLM configuration, and an agent skill.

### 採用の歴史

Official project surfaces include npm distribution, Homebrew packaging in the input facts, GitHub releases, and README badges for npm version and monthly downloads. The repository metadata also shows substantial GitHub interest for a small translation CLI.

### 使われ方

The normal user flow is `fanyi <word-or-sentence>` or `fy <word-or-sentence>`, with support for Chinese and English words, phrases, and sentences. `fanyi list` shows lookup history.

Configuration lives at `~/.config/fanyi/.fanyirc` and can be managed with `fanyi config set`. Users can disable individual sources, turn color off, or set `LLM_API_KEY`, `LLM_API_BASE_URL`, and `LLM_MODEL_ID` for custom OpenAI-compatible models.

### パッケージ好きにとっての重要性

Fanyi is package-manager-friendly because it turns a web dictionary and translation workflow into a tiny global CLI. Its 2026 LLM and agent-skill additions also show how older Node command-line packages are being refreshed for AI-agent and model-backed workflows.

### タイムライン

- 2013: Repository created.
- 2020: v4.2.0 released.
- 2023: v8.0.0 released.
- 2025: v10.0.0 released.
- 2026: v11.0.0 released with built-in LLM proxy and agent skill.

### Related projects

- iciba and Youdao are documented translation sources.
- OpenAI-compatible chat APIs are supported for custom LLM translation.
- npm is the primary JavaScript package distribution channel.

### ソース

- <https://github.com/afc163/fanyi>
- <https://raw.githubusercontent.com/afc163/fanyi/master/README.md>
- <https://api.github.com/repos/afc163/fanyi>
- <https://api.github.com/repos/afc163/fanyi/releases?per_page=100>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/fanyi/.fanyirc

## Credential files

- Unix: ~/.config/fanyi/.fanyirc

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
