# yek を Homebrew, Nix, scoop でインストール

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

## インストール

```sh
sudo av install brew:yek
```

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

### macOS

- Homebrew (100%):

```sh
brew install yek
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#yek
```

  証拠: nixpkgs package indexes: pkgs/by-name/ye/yek/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install extras/yek
```

  証拠: Scoop official bucket manifest trees: bucket/yek.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:yek
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/yek>
- **バージョン:** 0.25.5
- **ソース概要:** Fast Rust based tool to serialize text-based files for LLM consumption
- **ホームページ:** <https://github.com/mohsen1/yek>
- **リポジトリ:** <https://github.com/mohsen1/yek>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/mohsen1/yek/archive/refs/tags/v0.25.5.tar.gz>
- **最終更新:** 2026-06-29T18:57:35Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- yek (cli)
- yek (エイリアス)

## 依存関係

- openssl@3

## ビルド依存関係

- pkgconf
- rust

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.25.5
- マネージャ更新日: 2026-06-29
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/mohsen1/yek
- 検出された最新: v0.25.5 (最新)
## プロジェクトの歴史と使われ方

yek is a Rust command-line tool that serializes text files from a repository or directory into an LLM-friendly single output. It respects ignore rules, can prioritize files using Git history, supports token or size caps, and can be configured with YAML, TOML, or JSON.

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

The mohsen1/yek repository was created on 2025-01-11, right as developer tooling around LLM context packaging was becoming its own small software category. The name means "one" in Persian, matching the tool's core idea of turning many project files into one consumable context file.

The README shows the project's early design priorities: use .gitignore rules, infer additional binary or large-file ignores, use Git history to decide which files are more important, stream when output is piped, process multiple directories, support globs, and optionally read a `yek.yaml` configuration file.

Subsequent documentation expanded the tool from simple concatenation into a configurable context generator with token caps, JSON output, line numbers, custom output templates, tree-only/tree-header modes, priority rules, binary extension overrides, and alternative config formats.

### 採用の歴史

Yek saw fast adoption for a young CLI because it landed in a timely niche: packaging repository context for LLMs. The GitHub repository has thousands of stars, the project was discussed on Reddit and Hacker News, and it appears in Rust/LLM tool lists and package indexes such as Cargo/lib.rs, Homebrew, Nix, and Scoop.

Its adoption is practical rather than institutional: developers use it when a repository is too large or too scattered to paste manually, but they still want a local, inspectable text artifact rather than a hosted indexing service.

### 使われ方

The basic workflow is to run `yek` at a repository root and receive a generated file path, or pipe the output directly into a clipboard or another command. Users can pass files, directories, multiple roots, or quoted glob patterns, and can cap output with options such as `--max-size` or `--tokens`.

For repeatable project behavior, users add `yek.yaml`, `yek.toml`, or `yek.json` with ignore patterns, unignore patterns, output settings, priority rules, binary extensions, and Git-based priority tuning. That makes it useful in AI coding workflows where the same repository context needs to be regenerated often.

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

Yek is package-nerd significant because it is part of the post-LLM wave of repository-to-context tools, but implemented as a small native CLI rather than a web service. That makes package-manager availability especially useful: developers can install it next to Git and editors and keep data local.

It also shows a new kind of packaging demand: tools whose main job is not compiling, linting, or deploying code, but preparing source trees for machine consumption.

### タイムライン

- 2025-01-11: The mohsen1/yek repository is created.
- 2025-01: The project is shared as a Rust tool for serializing code repositories for LLM consumption on Reddit and Hacker News.
- 2025: The README documents Git-aware file prioritization, .gitignore handling, streaming output, glob support, and `yek.yaml` configuration.
- 2025: Package availability expands through ecosystems including Homebrew, Cargo/lib.rs, Nix, and Scoop.
- 2026-06-29: GitHub release activity shows continuing maintenance into mid-2026.

### Related projects

- Related tools include Repomix, gitingest, onefilellm, repo2file, repo2txt, project-context generators, clipboard-based LLM workflows, Git, ripgrep-style file discovery, and local RAG/context-pack tooling.

### ソース

- <https://api.github.com/repos/mohsen1/yek>
- <https://formulae.brew.sh/formula/yek>
- <https://github.com/mohsen1/yek>
- <https://lib.rs/crates/yek>
- <https://news.ycombinator.com/item?id=42753302>
- <https://raw.githubusercontent.com/mohsen1/yek/main/README.md>
- <https://waylonwalker.com/using-yek/>
- <https://www.reddit.com/r/LocalLLaMA/comments/1i4oeg9/yek_serialize_your_code_repo_or_part_of_it_to/>


## セキュリティノート

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: yek.yaml, yek.toml, yek.json
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Nix - yek: normalized package name match | nixpkgs package indexes: pkgs/by-name/ye/yek/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - extras/yek: normalized package name match | Scoop official bucket manifest trees: bucket/yek.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/ja/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [AI and agent packages](https://pkg.so/ja/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [vtcode](https://pkg.so/ja/brew/vtcode/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm, rust.
- [opencode](https://pkg.so/ja/brew/opencode/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [rtk](https://pkg.so/ja/brew/rtk/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [qwen-code](https://pkg.so/ja/brew/qwen-code/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [repomix](https://pkg.so/ja/brew/repomix/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [code2prompt](https://pkg.so/ja/brew/code2prompt/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [zot](https://pkg.so/ja/brew/zot/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [gitingest](https://pkg.so/ja/brew/gitingest/) - Shares pkgdb curated category or tags: ai, cli, coding-agents, llm.
- [repomix](https://pkg.so/ja/npm/repomix/) - Local package facts share a topical domain. Shared terms: agents, ai, analysis, cli, coding.
- [plz-cli](https://pkg.so/ja/brew/plz-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: agents, ai, cli, coding, coding-agents.
- [qqqa](https://pkg.so/ja/brew/qqqa/) - Local package facts share a topical domain. Shared terms: agents, ai, cli, coding, coding-agents.

## Combined YAML source

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


## ソース

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