# 使用 Homebrew, Nix 安装 mantra

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

## 安装

```sh
sudo av install brew:mantra
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mantra
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mantra
```

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

## 软件包事实

- **软件包键:** brew:mantra
- **软件包管理器:** Homebrew
- **版本:** 3.1
- **来源摘要:** Tool to hunt down API key leaks in JS files and pages
- **主页:** <https://amolo.com.br>
- **仓库:** <https://github.com/brosck/mantra>
- **最后更新:** 2026-07-29T17:04:50+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mantra (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

mantra is a Go command-line security tool for finding API-key leaks in JavaScript files and HTML pages.

### 项目历史

The public repository was created in January 2023. Its README describes a tool built in Go whose main objective is to inspect web page source and script files for strings that are identical or similar to API keys.

### 采用历史

The project is distributed as a Go install target, source build, and Homebrew formula. Its GitHub topics and README position it for bug bounty, pentest, JavaScript, leaked-secret, and web security workflows.

### 使用方式

Users install with `go install github.com/Brosck/mantra@latest` or build from source, then run the `mantra` CLI against pages or JavaScript files to identify possible exposed API keys.

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

mantra is part of the small, fast Go CLI ecosystem around web reconnaissance and secret scanning, where package-manager availability matters because tools are often chained in scripts.

### 时间线

- 2023: Public GitHub repository created.
- 2023: v1.0 release published.
- 2024: v2.0 release published.
- 2025: v3.1 release published.

### Related projects

- The README does not name direct related projects; it fits the broader secret-scanning and web reconnaissance tool category.

### 来源

- <https://github.com/brosck/mantra>
- <https://github.com/brosck/mantra#readme>
- <https://github.com/brosck/mantra/releases/tag/v3.1>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - mantra: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/mantra/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- 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
