aweconfig: The dumb vault for shell keys
One 0600 env file. One source line. No more secrets in ~/.zshrc.
English · 简体中文
One 0600 env file. One source line. No more secrets in ~/.zshrc.
aweconfig keeps every API key your tools read from the environment in one file, ~/.config/awe/keys.env, and gives you a tiny editor for it. The file is a plain shell file any POSIX shell can source — the CLI is only a safe editor on top, never a runtime dependency. If the CLI disappears, your shell still loads the keys.
What it deliberately does not do: switch agent profiles (that is aweswitch), route model traffic (that is awerouter), or hold OAuth login tokens (those stay in each tool's own config). It is just the vault those tools read keys from — awerouter's ${VAR} provider references resolve straight from the environment this file feeds.
Install
pip install git+https://github.com/wehuman01/aweconfig.git
Quick Start
aweconfig init # create ~/.config/awe/keys.env (mode 0600)
aweconfig set DEEPSEEK_AUTH_TOKEN # prompts hidden; never touches shell history
aweconfig list # names only, no values
aweconfig show DEEPSEEK_AUTH_TOKEN
Then add one line to ~/.zshrc (init prints it for you):
[ -f "$HOME/.config/awe/keys.env" ] && source "$HOME/.config/awe/keys.env"
To move existing secrets out of ~/.zshrc in one go:
aweconfig import-zshrc --dry-run # shows what would move and what would stay
aweconfig import-zshrc # moves them, backs up ~/.zshrc first
The file
# aweconfig vault - plain shell env file; keep mode 0600 and never commit it.
## Anthropic
export GLM_ANTHROPIC_AUTH_TOKEN='...'
## Openai
export OPENAI_AUTH_TOKEN='...'
- Path:
~/.config/awe/keys.env, overridable with$AWECONFIG_FILE. - Format:
export NAME='value'lines plus free-form comments. Edit by hand if you like;aweconfig editopens$EDITOR. - Every CLI write is atomic (temp file + rename) and re-asserts mode 0600.
Commands
aweconfig init # create the vault file (0600) if missing
aweconfig set NAME [--value V|--stdin]
aweconfig list # key names, one per line
aweconfig show NAME [--raw]
aweconfig rm NAME
aweconfig edit # open the vault in $EDITOR
aweconfig path # print the vault file path
aweconfig import-zshrc [--file RC] [--dry-run] [--yes] [--name NAME]
import-zshrc moves a paragraph only when every export in it looks like a secret (name contains TOKEN, KEY, or SECRET); mixed paragraphs stay put and --name forces one through. Names already in the vault are skipped, never overwritten.
Development
uv venv && uv pip install --python .venv/bin/python -e ".[dev]"
./verify # pytest + ruff, same as CI
Metadata
Release files for aweconfig 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aweconfig-0.1.0.tar.gz | 17.2 kB | Without provenance | Details for aweconfig-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aweconfig-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aweconfig-0.1.0-py3-none-any.whl |
Total release size: 32.0 kB
Release files / aweconfig-0.1.0.tar.gz
| Download URL | aweconfig-0.1.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c68e22be6add66bab001813bc28ab3d0a46ed5fa3dd528989f316b63f593b51
|
|
BLAKE2b-256 checksum How to use checksums |
77687e5c635fd848ef61954d32f1d623ef327f81f6dae3d2bc1fae25ed115824
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / aweconfig-0.1.0-py3-none-any.whl
| Download URL | aweconfig-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea39c595100f76291815e418dee96fc6f71d4e6e95c12492ae492c3294cb8287
|
|
BLAKE2b-256 checksum How to use checksums |
2f799568f8bf783fa8439d766554c34ad7f7acf598c2c178e4b59b9956ddf163
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for aweconfig 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.