# 使用 Homebrew, apk, Nix 安装 lspmux

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

## 安装

```sh
sudo av install brew:lspmux
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lspmux
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add lspmux
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#lspmux
```

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

## 软件包事实

- **软件包键:** brew:lspmux
- **软件包管理器:** Homebrew
- **版本:** 0.3.0
- **来源摘要:** Share one language instance between multiple LSP clients to save resources
- **主页:** <https://codeberg.org/p2502/lspmux>
- **最后更新:** 2026-07-15T08:34:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lspmux (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3.0
## 项目历史与用法

lspmux is a Language Server Protocol multiplexer that lets multiple editor clients share one language-server instance per workspace. Its README describes it as a proxy and client shim that multiplexes editor connections onto the appropriate language server to save resources.

### 项目历史

The project started as ra-multiplex, focused on rust-analyzer. Its changelog shows early releases in January and February 2022 adding configuration, removing a nightly Rust requirement, improving client/server behavior, and adding initial support for language servers other than rust-analyzer.

In 2024, the project added status and reload commands, native LSP initialize-message handshakes, Unix socket support, and environment filtering. In October 2025, it migrated to Codeberg, changed license to EUPL-1.2, and was renamed from ra-multiplex to lspmux to reflect its broader language-server scope.

### 采用历史

lspmux is a niche developer tool aimed at users who run multiple editor windows or clients against the same workspace. The README points users to Cargo installation and package-manager availability through Repology, while the supplied package facts list Homebrew, Alpine, and Nix.

### 使用方式

The usual setup is to run `lspmux server` as a user service and configure an editor to use `lspmux` as the language-server executable or connect directly to the lspmux socket. The README gives examples for rust-analyzer, CoC in Neovim, clangd, systemd user services on Linux, and launchd services on macOS.

Configuration is optional and stored in a TOML file in the system default configuration directory, with `~/.config/lspmux/config.toml` given as the Unix example. The README documents defaults for instance timeout, garbage-collection interval, TCP or Unix-socket listen/connect addresses, logging filters, and environment-variable filtering.

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

lspmux matters to package nerds because it is a resource-control tool for the LSP era. Rather than replacing an editor or a language server, it sits in the middle and makes repeated editor sessions cheaper, especially for heavy servers such as rust-analyzer.

### 时间线

- 2022: ra-multiplex 0.1.x releases add configuration and early support for non-rust-analyzer servers.
- 2024: 0.2.x releases add status/reload commands, Unix sockets, native LSP handshake changes, and environment filtering.
- 2025: Repository migrates to Codeberg and license changes to EUPL-1.2.
- 2025: Project is renamed from ra-multiplex to lspmux in v0.3.0.

### Related projects

- Related projects include rust-analyzer, clangd, Neovim LSP clients, CoC, and the Language Server Protocol itself.

### 来源

- <https://codeberg.org/p2502/lspmux>
- <https://codeberg.org/p2502/lspmux/raw/branch/main/CHANGELOG.md>
- <https://codeberg.org/p2502/lspmux/raw/branch/main/README.md>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## 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/lspmux/config.toml
## 其他软件包管理器记录

- Nix - lspmux: normalized package name match | nixpkgs package indexes: pkgs/by-name/ls/lspmux/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - lspmux - 0.3.0-r0: normalized package name match | Alpine Linux edge package indexes: lspmux from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Share one instance of an LSP between multiple clients | https://codeberg.org/p2502/lspmux
- apk - lspmux-doc - 0.3.0-r0: normalized package name match | Alpine Linux edge package indexes: lspmux-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Share one instance of an LSP between multiple clients (documentation) | https://codeberg.org/p2502/lspmux


## Combined YAML source

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


## 来源

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