Analyze smart contracts using Gemini AI
This CLI tool allows you to audit and analyze Solidity smart contracts using Gemini AI. It checks for vulnerabilities, gas optimization issues, and more.
- Analyzes Solidity smart contracts.
- Uses Gemini AI to identify potential security risks and performance improvements.
- Provides a comprehensive report on contract vulnerabilities and suggestions for optimization.
Install the package globally using npm:
npm install -g @bellatricks/audit-ai
Once installed, you can use the audit-ai
command in your terminal to analyze smart contracts.
Use the check
command followed by the path to the Solidity file you want to analyze:
audit-ai check <path-to-smart-contract>
For example:
audit-ai check contracts/MyContract.sol
audit-ai check contracts/MyContract.sol
You will be prompted to enter your Gemini API key:
Enter your Gemini API key:
After providing your API key, the tool will analyze your smart contract and display the results in your terminal.
To use this tool, you need a valid Gemini API key. If you don't have one, visit the Gemini website to obtain it.
When you run the check
command, you will be prompted to enter your API key. The key will be used for analyzing your smart contract and generating an audit report.
Enter your Gemini API key:
- Node.js v12 or above.
- A valid Gemini AI API key.
.
├── bin
│ └── audit-ai.js # Entry point for the CLI
├── src
│ └── ai-prompt.js # Handles contract analysis using Gemini AI
├── package.json # NPM package configuration
└── README.md # Documentation
We welcome contributions! If you'd like to improve this package, please submit a pull request or open an issue.
This project is licensed under the MIT License.