# Install tofu-ls with Homebrew, apk, Nix

OpenTofu Language Server. Version 0.5.3 via Homebrew; verified 2026-07-26. Also installable with nix: nix profile install nixpkgs#tofu-ls.

## Install

```sh
sudo av install brew:tofu-ls
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tofu-ls
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add tofu-ls
```

  Evidence: Alpine Linux edge package indexes: tofu-ls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#tofu-ls
```

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

## Package facts

- **Package key:** brew:tofu-ls
- **Package manager:** Homebrew
- **Version:** 0.5.3
- **Source summary:** OpenTofu Language Server
- **Homepage:** <https://opentofu.org>
- **Repository:** <https://github.com/opentofu/tofu-ls>
- **Last updated:** 2026-07-26T00:51:25+02:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- tofu-ls (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.5.3
## Project history and usage

tofu-ls is the official OpenTofu language server, maintained by the OpenTofu Core Team to bring OpenTofu-aware editor features to LSP-compatible editors.

### Project history

OpenTofu grew out of the Terraform licensing change of August 10, 2023; the OpenTofu manifesto says the fork was made public after HashiCorp did not restore an open-source license by August 25, 2023. OpenTofu later became a Linux Foundation project.

The tofu-ls README describes the server as a work-in-progress official language server, inspired by HashiCorp's terraform-ls and intended to deliver smaller incremental updates over time.

### Adoption history

OpenTofu reached its first stable release on January 10, 2024, as a production-ready, community-driven Terraform fork. As the OpenTofu ecosystem matured, official editor tooling became part of the project story.

The tofu-ls installation docs describe automatic installation through the OpenTofu VS Code and Zed extensions, manual installation from GitHub releases, and Homebrew installation for macOS and Linux. The input package facts also list apk, Homebrew, and Nix packaging.

### How it is used

Users normally run tofu-ls through an editor or IDE plugin rather than invoking it directly. The usage docs cover OpenTofu and Terraform language IDs, .tf, .tofu, and .tfvars files, workspace indexing, completion, hover, formatting, semantic tokens, references, symbols, and editor-specific setup for Vim/Neovim, Emacs, VS Code, Zed, Kate, Helix, and other clients.

### Why package nerds care

For package and editor-tooling users, tofu-ls is the small binary that lets OpenTofu fit into the standard LSP packaging pattern: install one executable with a package manager, point the editor client at it, and keep infrastructure-as-code feedback local to the editor.

### Timeline

- 2023-08-10: HashiCorp changed Terraform from MPL to BUSL, according to the OpenTofu manifesto.
- 2023-08-25: The OpenTofu fork was created after the license-change appeal deadline described in the manifesto.
- 2024-01-10: OpenTofu 1.6.0 became the first stable, production-ready OpenTofu release.
- Current: tofu-ls is the official OpenTofu Core Team language server and is packaged for apk, Homebrew, and Nix in the input facts.

### Related projects

- OpenTofu is the infrastructure-as-code project that tofu-ls serves.
- terraform-ls is credited by tofu-ls as the starting point and inspiration for the OpenTofu language server.
- The OpenTofu VS Code and Zed extensions can install or manage tofu-ls for users.

### Sources

- <https://github.com/opentofu/tofu-ls#readme>
- <https://github.com/opentofu/tofu-ls/blob/main/docs/USAGE.md>
- <https://github.com/opentofu/tofu-ls/blob/main/docs/features.md>
- <https://github.com/opentofu/tofu-ls/blob/main/docs/installation.md>
- <https://opentofu.org/blog/opentofu-is-going-ga/>
- <https://opentofu.org/manifesto/>
- source_facts.package-manager


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- Nix - tofu-ls: normalized package name match | nixpkgs package indexes: pkgs/by-name/to/tofu-ls/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - tofu-ls - 0.5.3-r1: normalized package name match | Alpine Linux edge package indexes: tofu-ls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OpenTofu language server | https://github.com/opentofu/tofu-ls/
- apk - tofu-ls-doc - 0.5.3-r1: normalized package name match | Alpine Linux edge package indexes: tofu-ls-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | OpenTofu language server (documentation) | https://github.com/opentofu/tofu-ls/


## Combined YAML source

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


## Sources

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