Quick Start
From zero to your first scan in 60 seconds.
1. Install
Terminal
$ pip install codesight
2. Set your API key
Terminal
$ export OPENAI_API_KEY="sk-..."
Or run codesight config for an interactive setup.
3. Review a file
Terminal
$ codesight review src/main.py
Structured report with severity-tagged issues, line numbers, and fixes.
4. Run a security audit
Terminal
$ codesight security src/auth.py
Returns CWE IDs, OWASP categories, and remediation code for every finding.
5. Scan a whole project
Terminal
$ codesight scan . --task security
Scans every source file in the directory with a progress bar. Summary includes token count and total cost.
6. Try different providers
Terminal
$ codesight review file.py --provider anthropic
$ codesight review file.py --provider ollama # offline, no data leaves your machine
$ codesight review file.py --provider openrouter # custom label saved via `codesight config`
OpenAI-compatible endpoints (OpenRouter, Groq, Together, Mistral, xAI, Azure AI Foundry, and more) are set up via codesight config. Pick Custom in the wizard, choose a preset or enter a base URL, save under any label.
Next steps
- All commands - full reference
- Provider setup - OpenAI, Anthropic, Google, Ollama, and OpenAI-compatible presets
- Custom templates - write your own analysis prompts
- CI/CD - GitHub Actions, GitLab CI, pre-commit hooks