# 使用 Homebrew, Nix, scoop 安装 granted

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

## 安装

```sh
sudo av install brew:granted
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install granted
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#granted
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/granted
```

  证据: Scoop official bucket manifest trees: bucket/granted.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:granted
- **软件包管理器:** Homebrew
- **版本:** 0.39.0
- **来源摘要:** Easiest way to access your cloud
- **主页:** <https://granted.dev/>
- **仓库:** <https://github.com/fwdcloudsec/granted>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- assume (别名)
- assume.fish (别名)
- assumego (别名)
- granted (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Granted is a command-line tool for cloud access, focused on AWS role assumption, AWS SSO workflows, browser-based console access, and safer handling of cached credentials.

### 项目历史

The Granted README and docs describe the project as a CLI that simplifies access to cloud roles and lets users open multiple cloud accounts in a browser. Its goals are fast role discovery and assumption, browser isolation for simultaneous accounts, and encrypted cached credentials to avoid plaintext SSO tokens on disk.

Granted is developed under the fwdcloudsec GitHub organization and is documented through the Common Fate/Granted documentation site. The repository structure separates the granted management command and assume role-assumption workflow.

### 采用历史

Granted fits teams with many AWS accounts, especially organizations using AWS SSO/IAM Identity Center. Its adoption is driven by reducing friction around profile selection, browser sessions, and short-lived role credentials.

The Homebrew package is useful because the tool lives directly in shell workflows: users run assume, integrate it with AWS config and credentials files, and pair it with browsers and keychains rather than a server process.

### 使用方式

Users configure AWS profiles, run assume to select and assume a role, export credentials for terminal commands, or open cloud consoles in separate browser contexts. The docs recommend AWS SSO because it avoids long-lived IAM credentials on a device.

Granted also intersects with package-manager and OS security details because it can use platform credential stores and must behave correctly across macOS, Linux, Windows, shells, and browsers.

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

Granted is significant as a security-adjacent CLI package: it is small, but it touches AWS config conventions, credential files, shell initialization, browser integration, and OS credential stores. Those edges make packaging quality visible to day-to-day cloud operators.

### 时间线

- 2024: Discussions and issues show active use around AWS SSO profile and keychain workflows.
- 2026: The GitHub repository listed hundreds of commits and over a thousand stars, indicating a mature niche CLI package.

### Related projects

- AWS CLI and AWS IAM Identity Center are the primary external systems.
- Browser container/profile features, OS keychains, and shell integrations are part of the user workflow.
- Common Fate documentation and fwdcloudsec source control are the official project surfaces.

### 来源

- <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html>
- <https://docs.commonfate.io/granted/introduction>
- <https://docs.granted.dev/security>
- <https://github.com/fwdcloudsec/granted>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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: ~/.granted, ~/.aws/config
- Windows: %USERPROFILE%/.granted, %UserProfile%\.aws\config

## Credential files

- Unix: ~/.aws/credentials
- Windows: %UserProfile%\.aws\credentials
## 其他软件包管理器记录

- Nix - granted: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/granted/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/granted: normalized package name match | Scoop official bucket manifest trees: bucket/granted.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/granted.yml](https://github.com/mxcl/pkgdb/blob/main/combined/granted.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
