Your First Audit¶
This walkthrough takes you through a complete audit cycle: estimating cost, running the audit, interpreting findings, recording decisions, and generating a report.
Step 1: Estimate the Cost¶
Before spending any API credits, see what the audit will cost:
my-app — security
Files: 42 files, 87K tokens
Provider: openai (gpt-5-mini)
Cost estimate: ~$0.03
Batch API 50% discount applied.
Alternatives:
openai (gpt-5-nano) ~$0.01 67% cheaper
anthropic (claude-sonnet-4-6) ~$0.14 more expensive — deeper analysis
Monthly estimate: ~$0.90 (assuming daily runs)
No API key is needed for estimation — it counts files and tokens locally.
Tip
Use --focus all to see the cost for all 7 focus areas combined.
Step 2: Run the Audit¶
Noxaudit gathers security-relevant files, sends them to the AI provider, and filters the results against your decision history.
Step 3: Read the Report¶
This shows the latest report. You can also find reports in .noxaudit/reports/my-app/.
Each finding includes:
- Severity — high, medium, or low
- Confidence — high, medium, or low (from validation and cross-run history)
- Title — short description of the issue
- File — where the issue was found
- Description — what the AI found and why it matters
- Suggestion — recommended fix
Step 4: Make Decisions¶
For each finding, decide what to do:
# You fixed it
noxaudit decide abc123 --action accept --reason "Fixed in PR #42"
# It's not a real issue
noxaudit decide def456 --action dismiss --reason "Test fixture, not real credentials"
# It's intentional
noxaudit decide ghi789 --action intentional --reason "Permissive CORS for dev environment"
Decisions are stored in .noxaudit/decisions.jsonl. A finding won't resurface unless:
- The file it's in changes
- The decision expires (default: 90 days)
Tip
Commit .noxaudit/decisions.jsonl to share decisions across your team.
Step 5: Baseline Existing Findings¶
If you're adding noxaudit to an existing project with many known issues, baseline them all at once:
This creates dismiss decisions for every current finding. Future runs will only show new issues.
Undo anytime:
Step 6: Check Status¶
See your configuration and cost history:
Noxaudit v1.1.3
Repos:
my-app: . (anthropic)
Focus areas:
security: Secrets, injection, auth, and configuration vulnerabilities
docs: README accuracy, stale comments, API doc drift
...
Model: claude-sonnet-4-6
Decisions: .noxaudit/decisions.jsonl
Reports: .noxaudit/reports
Cost (last 30 days):
Audits run: 1
Total input tokens: 87K
Total output tokens: 8K
Estimated spend: $0.14
Avg per audit: $0.14
Projected monthly: ~$4.20
Step 7: Automate Your Audits¶
Once you're happy with the results, you can optionally automate it. See the GitHub Actions integration or set up a cron job:
What's Next¶
- Usage Patterns — on-demand, CI, and rotation examples
- Cost Management — budget controls and optimization
- Decision Memory — advanced decision management