Prerequisites
- Python 3.11+ — python.org or your system package manager
- uv — Python package manager (Install uv)
- Ghidra — NSA’s reverse engineering framework (Install Ghidra)
- JDK 21+ — Required by Ghidra (Adoptium)
- LLM API key — At least one of:
Install Kong
- From PyPI (recommended)
- From source
kong CLI and all dependencies, including PyGhidra, the Anthropic SDK, the OpenAI SDK, and z3-solver.Environment Variables
Kong uses environment variables for API keys and optional path overrides. Set at least one API key before running analysis.| Variable | Required | Default | Description |
|---|---|---|---|
ANTHROPIC_API_KEY | At least one API key | — | Anthropic API key for Claude models |
OPENAI_API_KEY | At least one API key | — | OpenAI API key for GPT-4o models |
GHIDRA_INSTALL_DIR | No | Auto-detected | Path to Ghidra installation directory |
JAVA_HOME | No | Auto-detected | Path to JDK installation |
KONG_CONFIG_DIR | No | ~/.config/kong | Override config directory location |
Verify Installation
Confirm that Kong is installed and accessible:Ghidra Auto-Detection
Kong automatically searches for Ghidra in common installation locations. If auto-detection fails (for example, if you installed Ghidra to a non-standard path), set theGHIDRA_INSTALL_DIR environment variable:
JAVA_HOME explicitly if needed.

