Metadata-Version: 2.4
Name: anix-vault
Version: 0.1.0
Summary: Lightweight local secrets and environment manager for ANIX ecosystem
Author: ANIX Team
License: MIT
Keywords: cli,secrets,vault,env,security,anix,tui
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: cryptography>=41.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: textual>=0.40.0

# ANIX Vault

Minimalist local secrets & environment manager for the ANIX terminal ecosystem.

## Philosophy
`anix-vault` follows the **LazyGit / HTOP** UX model:
- No complicated CLI subcommands for daily management.
- Launch `anix-vault` without arguments to open the dark terminal dashboard (TUI).
- Use `anix-vault run -- <cmd>` when executing scripts or tools with in-memory secrets injection.

## Security
- **100% Offline & Zero Cloud**: Encrypted vault stored locally in `~/.anix-vault/vault.enc`.
- **Strong AEAD Encryption**: PBKDF2 (SHA-256 with 600,000 iterations) + Fernet (AES-128-CBC + HMAC-SHA256).
- **Zero Disk Leak**: `run` decrypts secrets straight into memory and injects them directly into the child process.
- **Atomic Operations**: Safe on Windows & Unix via temporary files and `os.replace`.

## Usage

### 1. Interactive Terminal UI
Simply run:
```bash
anix-vault
```
*On first run, ANIX Vault will automatically prompt you to create and confirm a master password.*

#### TUI Keyboard Shortcuts
- `a` — Add or edit a secret in a modal window
- `d` — Delete selected secret
- `n` — Create a new profile
- `i` — Import secrets from a `.env` file into current profile
- `r` — Reveal / mask secret value
- `c` — Copy plaintext secret to clipboard
- `q` — Quit

---

### 2. In-Memory Process Execution
Run any program or script with secrets injected into its environment without writing them to disk:

```bash
# Default profile
anix-vault run -- python app.py

# Custom profile
anix-vault run -p prod -- npm start
anix-vault run -p staging -- docker compose up
```
