# 使用 Homebrew, Nix 安装 awsume

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

## 安装

```sh
sudo av install brew:awsume
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install awsume
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#awsume
```

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

## 软件包事实

- **软件包键:** brew:awsume
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/awsume>
- **版本:** 4.5.5
- **来源摘要:** Utility for easily assuming AWS IAM roles from the command-line
- **主页:** <https://awsu.me>
- **仓库:** <https://github.com/trek10inc/awsume>
- **上游文档:** <https://awsu.me/>
- **许可证:** MIT
- **源码归档:** <https://github.com/trek10inc/awsume/archive/refs/tags/4.5.5.tar.gz>
- **最后更新:** 2026-06-22T09:49:41-04:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- autoawsume (cli)
- awsume (cli)
- awsume-autocomplete (cli)
- awsume-configure (cli)
- awsume.bat (cli)
- awsume.fish (cli)
- awsume.ps1 (cli)
- awsumepy (cli)
- autoawsume (别名)
- awsume (别名)
- awsume-autocomplete (别名)
- awsume-configure (别名)
- awsume.bat (别名)
- awsume.fish (别名)
- awsume.ps1 (别名)
- awsumepy (别名)

## 依赖

- libyaml
- python@3.14

## macOS 提供的库

- sqlite

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.5.5
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/trek10inc/awsume
- 检测到的最新版本: 4.5.5 (当前)
## 项目历史与用法

AWSume is a command-line utility for assuming AWS IAM roles and exporting the resulting credentials into the user's shell environment. It is built around a daily AWS workflow: move between profiles, MFA-backed sessions, and role chains without hand-editing environment variables.

### 项目历史

The `trek10inc/awsume` repository was created in March 2016. Its official documentation describes AWSume as a utility for retrieving and exporting AWS credentials from AWS shared config and credentials files, including profiles that require MFA or assume-role calls.

By the v4 era, the docs emphasized shell integration: on Unix-like systems AWSume needs to be sourced or aliased because a child process cannot update a parent shell's environment. The project also grew plugin and extra-feature support, including SAML, fuzzy matching, console helpers, auto-refresh, role chaining, and credential export back into AWS profile files.

### 采用历史

AWSume's adoption is mostly among developers and operators managing many AWS accounts or roles. That is a common agency, consulting, and platform-team problem: the standard AWS shared profile format is flexible, but repeatedly calling STS and exporting temporary credentials is tedious.

The official docs recommend pipx or pip rather than Homebrew, while the Homebrew formula still exists for users who prefer system package managers. That split is worth noting: package-manager availability is convenient, but the project itself treats Python packaging as the official install path.

### 使用方式

A normal workflow is `awsume <profile_name>` after shell alias setup. AWSume reads `~/.aws/config` and `~/.aws/credentials`, handles MFA or role assumption when needed, then sets variables such as `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`, `AWS_PROFILE`, and region variables.

AWSume stores its own configuration at `~/.awsume/config.yaml` by default, or `${XDG_CONFIG_HOME}/awsume/config.yaml` when XDG config is set. It also caches MFA-authenticated credentials under `~/.awsume/cache/` according to the official overview.

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

AWSume is important for package nerds because it highlights a packaging wrinkle: some command-line tools are not just executables, they must integrate with the parent shell. The install is only half the story; aliases, shell wrappers, and PATH behavior determine whether it actually works.

It also belongs to the larger AWS credential-helper family: focused tools that do not replace AWS CLI but make AWS CLI, SDKs, and arbitrary subprocesses easier to use safely with temporary credentials.

### 时间线

- 2016: Public GitHub repository `trek10inc/awsume` created.
- 2019: v4.0.0-era tag/commit appears in the repository history.
- 2020: v4.5.0 release commit recorded.
- 2024: Official docs mention 4.5.x credential_process support and 4.4.x role-chaining improvements.

### Related projects

- AWS CLI and AWS SDKs consume the environment variables and shared credentials AWSume manages.
- AWS STS AssumeRole and GetSessionToken are the AWS API operations behind many AWSume workflows.
- awsume-console-plugin and other AWSume extras extend the core credential workflow.

### 来源

- <https://api.github.com/repos/trek10inc/awsume>
- <https://awsu.me/>
- <https://awsu.me/general/aws-file-configuration.html>
- <https://awsu.me/general/config.html>
- <https://awsu.me/general/overview.html>
- <https://awsu.me/general/quickstart.html>
- <https://github.com/trek10inc/awsume>


## 安全说明

没有找到 awsume 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: ~/.awsume/config.yaml, ${XDG_CONFIG_HOME}/awsume/config.yaml, ~/.aws/config

## Credential files

- Unix: ~/.aws/credentials
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** awsume
- **Version Scheme:** 0
- **Revision:** 1
- **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 - awsume: normalized package name match | nixpkgs package indexes: pkgs/by-name/aw/awsume/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://www.automicvault.com/zh-hans/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [python@3.14](https://www.automicvault.com/zh-hans/pkg/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [gimme](https://www.automicvault.com/zh-hans/pkg/brew/gimme/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure, credentials.
- [amazon-ecs-cli](https://www.automicvault.com/zh-hans/pkg/brew/amazon-ecs-cli/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-amplify](https://www.automicvault.com/zh-hans/pkg/brew/aws-amplify/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-cdk](https://www.automicvault.com/zh-hans/pkg/brew/aws-cdk/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-console](https://www.automicvault.com/zh-hans/pkg/brew/aws-console/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-elasticbeanstalk](https://www.automicvault.com/zh-hans/pkg/brew/aws-elasticbeanstalk/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-es-proxy](https://www.automicvault.com/zh-hans/pkg/brew/aws-es-proxy/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [aws-google-auth](https://www.automicvault.com/zh-hans/pkg/brew/aws-google-auth/) - Shares av.db curated category or tags: aws, cli, cloud-infrastructure.
- [awscli-local](https://www.automicvault.com/zh-hans/pkg/brew/awscli-local/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, bat, cli, cloud, cloud-infrastructure.
- [awscli](https://www.automicvault.com/zh-hans/pkg/brew/awscli/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, command-line.
- [awslogs](https://www.automicvault.com/zh-hans/pkg/brew/awslogs/) - Both packages touch the same language runtime or ecosystem. Shared terms: aws, cli, cloud, cloud-infrastructure, command-line.

## Combined YAML source

View the package source record on GitHub. [combined/awsume.yml](https://github.com/automic-vault/db/blob/main/combined/awsume.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
