# 使用 Homebrew, apk, Nix 安装 beancount-language-server

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

## 安装

```sh
sudo av install brew:beancount-language-server
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install beancount-language-server
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add beancount-language-server
```

  证据: Alpine Linux edge package indexes: beancount-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#beancount-language-server
```

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

## 软件包事实

- **软件包键:** brew:beancount-language-server
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/beancount-language-server>
- **版本:** 1.9.2
- **来源摘要:** Language server for beancount files
- **主页:** <https://github.com/polarmutex/beancount-language-server>
- **仓库:** <https://github.com/polarmutex/beancount-language-server>
- **上游文档:** <https://github.com/polarmutex/beancount-language-server#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/polarmutex/beancount-language-server/archive/refs/tags/1.9.2.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- beancount-language-server (cli)
- beancount-language-server (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.9.2
- 本地数据: OK
- 上游仓库: https://github.com/polarmutex/beancount-language-server
- 检测到的最新版本: 1.9.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

beancount-language-server is a Language Server Protocol implementation for Beancount plain-text accounting files. It brings editor features such as completions, diagnostics, formatting, rename, references, semantic highlighting, and inlay hints to a niche but technically demanding personal-finance workflow.

### 项目历史

The public repository was created on 2020-05-19. Its README frames the project as an LSP for Beancount and documents a Rust/Cargo distribution model with optional Python/Beancount integration for validation.

The 2026 release feed shows active 1.x development, including 1.5.0 through 1.9.2 releases in January and February 2026. The README documents a default PyO3 embedded checker, fallbacks to system Python and bean-check, and performance comparisons intended to make diagnostics fast enough for editor feedback.

### 采用历史

Adoption is concentrated in the Beancount and plain-text accounting community. The batch package facts show Homebrew, Alpine, and Nix packages, while the README documents Cargo install, GitHub release binaries, Homebrew, Nix, and source builds.

Repository metadata showed 238 stars and 34 forks on 2026-06-30, which is modest in absolute terms but meaningful for an editor integration aimed at Beancount users rather than a general-purpose language.

### 使用方式

Users install the server and configure an editor LSP client to launch beancount-language-server. The server can validate files using embedded Python, system Python, or bean-check, and it supports optional workspace settings such as journal_file for multi-file ledgers and formatting widths aligned with bean-format behavior.

The README emphasizes that all configuration is optional for simple cases: the server auto-detects the best checker method, uses project-local virtual environments when present, and can scope completions to a configured main journal for multi-ledger workspaces.

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

This package is notable because it packages editor intelligence for a data format, not a programming language. It shows how LSP escaped compilers and IDEs and became a general protocol for structured text domains such as accounting ledgers.

For package maintainers, it is also interesting because it bridges Rust binaries, Python ABI compatibility, the Beancount Python package, prebuilt cross-platform release artifacts, Homebrew, Nix, Alpine, and Cargo.

### 时间线

- 2020-05-19: polarmutex/beancount-language-server repository is created.
- 2025-01-26: Release metadata includes version 1.3.7.
- 2025-07-21: Release metadata includes version 1.4.1.
- 2026-01-04: 1.5.0 is published.
- 2026-02-12: 1.9.2 is published.

### Related projects

- Beancount is the ledger language and Python package validated by the server.
- Language Server Protocol is the editor protocol implemented by the package.
- bean-check and bean-format are Beancount tools mirrored in the language server's diagnostics and formatting behavior.

### 来源

- <https://api.github.com/repos/polarmutex/beancount-language-server>
- <https://api.github.com/repos/polarmutex/beancount-language-server/releases>
- <https://raw.githubusercontent.com/polarmutex/beancount-language-server/main/README.md>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** beancount-language-server
- **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 - beancount-language-server: normalized package name match | nixpkgs package indexes: pkgs/by-name/be/beancount-language-server/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - beancount-language-server - 1.4.1-r0: normalized package name match | Alpine Linux edge package indexes: beancount-language-server from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Language server for Beancount files | https://github.com/polarmutex/beancount-language-server


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [ansible-language-server](https://www.automicvault.com/zh-hans/pkg/brew/ansible-language-server/) - Shares av.db curated category or tags: cli, developer-tools, editor, language-server, lsp.
- [actions-languageserver](https://www.automicvault.com/zh-hans/pkg/brew/actions-languageserver/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [asm-lsp](https://www.automicvault.com/zh-hans/pkg/brew/asm-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [bash-language-server](https://www.automicvault.com/zh-hans/pkg/brew/bash-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [clojure-lsp](https://www.automicvault.com/zh-hans/pkg/brew/clojure-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [cmake-language-server](https://www.automicvault.com/zh-hans/pkg/brew/cmake-language-server/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [codebook-lsp](https://www.automicvault.com/zh-hans/pkg/brew/codebook-lsp/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.
- [crystalline](https://www.automicvault.com/zh-hans/pkg/brew/crystalline/) - Shares av.db curated category or tags: cli, developer-tools, language-server, lsp.

## Combined YAML source

View the package source record on GitHub. [combined/beancount-language-server.yml](https://github.com/automic-vault/db/blob/main/combined/beancount-language-server.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
