@0xsandeep636/kalvex
v1.0.1
Published
Kalvex CLI — smart contract security auditing from the terminal
Maintainers
Readme
kalvex CLI
Smart contract security auditing from the terminal.
Installation
npm install -g kalvexOr run without installing:
npx kalvex audit MyToken.solSetup
Save your API key once:
kalvex auth YOUR_API_KEYOr set the environment variable:
export KALVEX_API_KEY=YOUR_API_KEYCommands
kalvex audit <file>
Audit a Solidity contract file.
kalvex audit contracts/MyToken.sol
kalvex audit contracts/Vault.sol --name Vault --report
kalvex audit contracts/DEX.sol --json > results.jsonOptions:
| Flag | Description |
|------|-------------|
| -n, --name <name> | Contract name (default: Contract) |
| --report | Generate a shareable report URL |
| --json | Output raw JSON result |
Example output:
✔ Audit complete
Contract: Vault
Verdict: DO NOT DEPLOY
Risk: 8.5 / 10.0 (CRITICAL)
Findings: 4
● 2 CRITICAL
● 1 HIGH
● 1 MEDIUM
Findings
1. [CRITICAL] Reentrancy Vulnerability
External call before state update in withdraw() — attacker can drain all ETH
💸 $60M–$197M
CWE-841 CVSS: 9.8
Report: https://kalvex.io/report/abc123xyzkalvex status
Check API health and your account tier.
kalvex statuskalvex auth <api-key>
Save your API key locally (~/.kalvex/config.json).
kalvex auth kx-live-xxxxxxxxxxxxxxxxxxxxUse --url to point at a self-hosted instance:
kalvex auth MY_KEY --url http://localhost:8080Environment Variables
| Variable | Description |
|----------|-------------|
| KALVEX_API_KEY | API key (overrides saved config) |
| KALVEX_API_URL | API base URL (overrides saved config) |
License
MIT
