
Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
[!NOTE] Come and join us at SafetyCLI. We are hiring for various roles.
Safety CLI is a Python dependency vulnerability scanner designed to enhance software supply chain security by detecting packages with known vulnerabilities and malicious packages in local development environments, CI/CD, and production systems. Safety CLI can be deployed in minutes and provides clear, actionable recommendations for remediation of detected vulnerabilities.
Leveraging the industry's most comprehensive database of vulnerabilities and malicious packages, Safety CLI Scanner allows teams to detect vulnerabilities at every stage of the software development lifecycle.
pip install safety.safety scan.safety auth to check authentication status.safety scan.safety --help: Access help and display all available commands.safety auth: Start authentication flow or display status.safety scan: Perform a vulnerability scan in the current directory.safety system-scan: Discover supply-chain assets on your development machine — AI assistants (e.g. Claude Code, Claude Desktop), dependencies, runtimes, environments, and developer tools. Available as part of the Safety commercial product — see https://getsafety.com/.safety scan --apply-fixes: Update vulnerable dependencies.We are committed to maintaining a high level of responsiveness and transparency in managing issues reported in our codebases. This SLA outlines our policies and procedures for handling issues to ensure timely resolutions and effective communication with our community.
Full documentation is available at https://docs.safetycli.com.
Included in the documentation are the following key topics:
Safety CLI 3
Vulnerability Remediation
Integration
Administration
Output
Miscellaneous
System status is available at https://status.safetycli.com
Further support is available by emailing [email protected].
Safety is released under the MIT License.
Upon creating an account, a 7-day free trial of our Team plan is offered to new users, after which they will be downgraded to our Free plan. This plan is limited to a single user and is not recommended for commercial purposes.