asiri (àṣírí)
àṣírí is Yoruba for "secret." asiri keeps secrets out of AI chats.
It scans text for secret-looking values before a prompt is sent, and it stores named secrets in your OS keychain so you can refer to them by name instead of pasting them.
Status: early version. Claude Code only, macOS-tested.
Install
uv tool install asiri-guard
asiri install claude
asiri install claude adds a UserPromptSubmit hook to ~/.claude/settings.json. It makes a timestamped backup first, and asiri uninstall claude removes only asiri's entries.
Use
asiri set stripe-test # value is prompted, never echoed
asiri list # names only
asiri check stripe-test # confirms a name exists, never prints the value
asiri rm stripe-test
asiri scan notes.md # scan a file or stdin for secret-looking values
If you paste a live key into Claude Code, the hook blocks the prompt and tells you to store the value with asiri set.
What it detects
Stripe live keys, Anthropic and OpenAI keys, GitHub tokens, AWS access keys, Slack tokens, Google API keys, private key headers, and api_key = "..."-style assignments. Stripe test keys (sk_test_) are allowed on purpose.
Limits
- Pattern matching only catches known formats. A custom key with no recognizable shape can get through.
- The hook covers messages typed into Claude Code. It can't see text in other apps, and it can't remove anything already sent.
- Anything a tool can read from your environment can still be read by that tool.
Development
uv venv .venv && uv pip install -e .
PYTHONPATH=src .venv/bin/python -m unittest discover -s tests -v
License
MIT.
Metadata
Release files for asiri-guard 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 |
|---|---|---|---|---|
| asiri_guard-0.1.0.tar.gz | 7.8 kB | With provenance | Details for asiri_guard-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asiri_guard-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for asiri_guard-0.1.0-py3-none-any.whl |
Total release size: 16.4 kB
Release files / asiri_guard-0.1.0.tar.gz
| Download URL | asiri_guard-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c1a7c47be6a5e7d4b0706c89eeeab7136fcfb09a23d3df83e7b79a3f32e3585
|
|
BLAKE2b-256 checksum How to use checksums |
3c3a5668250e2dfc6ddcd94726f4205234968b7262ae39180c93575ee6fa9e5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / asiri_guard-0.1.0-py3-none-any.whl
| Download URL | asiri_guard-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1e429c576ca16cb5abe963b1e36c4b5cec0b2b5bc40e4385d5c8a57efb5bcc6
|
|
BLAKE2b-256 checksum How to use checksums |
b6f4ec8b08a4a6b7d97120390e7434e272b4c46dc87d94c59d5117a7b275292f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for asiri-guard 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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for asiri_guard-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA 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.