# Install agent-sanitizer with npm

Defend an agent against hidden-content injection: strip payload-capable invisible Unicode and ANSI, splice out human-invisible HTML, and flag data-exfil URLs in untrusted text before any model sees it. Version 2.57.5 via npm; verified 2026-09-07.

## Install

```sh
sudo av install npm:agent-sanitizer
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g agent-sanitizer
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:agent-sanitizer
- **Package manager:** npm
- **Version:** 2.57.5
- **Source summary:** Defend an agent against hidden-content injection: strip payload-capable invisible Unicode and ANSI, splice out human-invisible HTML, and flag data-exfil URLs in untrusted text before any model sees it.
- **Homepage:** <https://github.com/AlexanderMattTurner/agent-sanitizer#readme>
- **Upstream docs:** <https://github.com/AlexanderMattTurner/agent-sanitizer#readme>
- **Last updated:** 2026-09-07T19:03:38.888Z
- **Generated:** 2026-09-19T06:45:57+00:00

## Executables

- sanitize-cli (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-09-19
- Package-manager version: 2.57.5

## Security Notes

No matching local secret-handling manifest was found for agent-sanitizer. Package metadata is still published here so future coverage has a stable package URL.



## Related links

- [AI and agent packages](https://pkg.so/ai-agent-tools/) - Matched curated package taxonomy and local package facts.
- [agent-threat-rules](https://pkg.so/npm/agent-threat-rules/) - Package names and metadata indicate a similar tool family. Shared terms: agent, injection.
- [dom-to-pptx](https://pkg.so/npm/dom-to-pptx/) - Both packages work with overlapping file formats or content types. Shared terms: any, content, html, it.
- [ansi-html-community](https://pkg.so/npm/ansi-html-community/) - Both packages work with overlapping file formats or content types. Shared terms: ansi, html, text.

## Sources

- pkg.so package database
- package relationship graph
- cross-ecosystem install command graph
