# 使用 Homebrew, MacPorts, Nix, zypper 安装 apfel

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

## 安装

```sh
sudo av install brew:apfel
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install apfel
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apfel
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#apfel
```

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

- zypper (92%):

```sh
sudo zypper install apfel-devel
```

  证据: openSUSE Tumbleweed package metadata: apfel-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:apfel
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/apfel>
- **版本:** 1.8.0
- **来源摘要:** Apple Intelligence from the command-line, with OpenAi-compatible API server
- **主页:** <https://apfel.franzai.com>
- **仓库:** <https://github.com/Arthur-Ficial/apfel>
- **上游文档:** <https://apfel.franzai.com/>
- **许可证:** MIT
- **源码归档:** <https://github.com/Arthur-Ficial/apfel/archive/refs/tags/v1.8.0.tar.gz>
- **最后更新:** 2026-07-03T03:57:41Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- apfel (cli)
- apfel (别名)

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- Bottle: 可用 于 arm64_tahoe

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.8.0
- 管理器更新时间: 2026-07-03
- 本地数据: OK
- 上游仓库: https://github.com/Arthur-Ficial/apfel
- 检测到的最新版本: v1.8.0 (当前)
## 项目历史与用法

apfel is a macOS command-line tool and local OpenAI-compatible server for Apple's on-device FoundationModels language model.

### 项目历史

The official site presents apfel as a zero-configuration way to use the language model included with Apple Intelligence on Apple Silicon Macs. The GitHub README describes it as a UNIX tool, local OpenAI-compatible server, and interactive chat interface with no cloud service, no API keys, and no model download.

The project is implemented in Swift and targets macOS 26 Tahoe and Apple Silicon. Its documentation emphasizes shell composition, JSON output, stdin/stdout behavior, local HTTP compatibility with OpenAI SDKs, and on-device inference.

### 采用历史

apfel's official site reports rapid GitHub adoption in 2026 and the repository lists thousands of stars. Homebrew packaging made the command available as a one-command install for macOS users.

### 使用方式

Users run apfel directly as a UNIX filter, start a local server with apfel --serve, or use apfel --chat for an interactive REPL. The documented server exposes a localhost OpenAI-compatible API at /v1 for chat completions, responses, model listing, health checks, tool calling, and structured output.

The official site states that apfel needs no YAML, environment variables, model selection, subscriptions, or API keys for its core local model use.

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

apfel is package-nerd significant because it packages an operating-system model API as a composable command-line tool and localhost API backend. It gives Homebrew users an immediately scriptable local LLM endpoint without a model artifact, daemon setup, or cloud credential path.

### 时间线

- 2026: Official documentation describes macOS 26 Tahoe and Apple Silicon as requirements.
- 2026: v1.8.0 documented on the official site and GitHub release metadata.
- 2026: Official site reports thousands of GitHub stars and Homebrew installation as the primary quick start.

### Related projects

- The official site lists related apfel-family tools such as apfel-chat, apfel-gui, apfel-mcp, apfel-run, apfel-server-kit, auge, and translate.

### 来源

- <https://apfel.franzai.com/>
- <https://github.com/Arthur-Ficial/apfel#readme>
- <https://github.com/Arthur-Ficial/apfel/blob/main/docs/openai-api-compatibility.md>
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

## 源数据库详情

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

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

- Nix - apfel: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apfel/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - apfel-devel - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: apfel-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for Apfel, a PDF Evolution Library | http://apfel.hepforge.org/
- zypper - apfel-devel-static - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: apfel-devel-static from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Static development files for Apfel, a PDF Evolution library | http://apfel.hepforge.org/
- zypper - apfel-doc - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: apfel-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for APFEL, a PDF evolution library | http://apfel.hepforge.org/
- zypper - libAPFEL0_0_0 - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: libAPFEL0_0_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Probability Distribution Function Evolution Library | http://apfel.hepforge.org/
- zypper - python311-apfel - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: python311-apfel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Probability Distribution Function Evolution Library | http://apfel.hepforge.org/
- zypper - python313-apfel - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: python313-apfel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Probability Distribution Function Evolution Library | http://apfel.hepforge.org/
- zypper - python314-apfel - 3.1.1-2.10: normalized package name match | openSUSE Tumbleweed package metadata: python314-apfel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Probability Distribution Function Evolution Library | http://apfel.hepforge.org/
- MacPorts - apfel: normalized package name match | MacPorts ports tree: llm/apfel/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [aichat](https://www.automicvault.com/zh-hans/pkg/brew/aichat/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [aicommit](https://www.automicvault.com/zh-hans/pkg/brew/aicommit/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [aicommit2](https://www.automicvault.com/zh-hans/pkg/brew/aicommit2/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [aicommits](https://www.automicvault.com/zh-hans/pkg/brew/aicommits/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [aider](https://www.automicvault.com/zh-hans/pkg/brew/aider/) - Shares av.db curated category or tags: ai, cli, developer-tools.
- [algolia](https://www.automicvault.com/zh-hans/pkg/brew/algolia/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [api-linter](https://www.automicvault.com/zh-hans/pkg/brew/api-linter/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [apibuilder-cli](https://www.automicvault.com/zh-hans/pkg/brew/apibuilder-cli/) - Shares av.db curated category or tags: api, cli, developer-tools.
- [localai](https://www.automicvault.com/zh-hans/pkg/brew/localai/) - Local package facts share a topical domain. Shared terms: ai, cli, compatible, developer, developer-tools.
- [shimmy](https://www.automicvault.com/zh-hans/pkg/brew/shimmy/) - Local metadata places this package in an adjacent workflow. Shared terms: ai, cli, compatible, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/apfel.yml](https://github.com/automic-vault/db/blob/main/combined/apfel.yml)


## 来源

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