CodeQL
GitHub, Inc. · Create code-analysis databases, run semantic security queries and export findings with GitHub’s CodeQL command-line tools.
brew install --cask codeql- 30-day installs
- 989
- #302 in App
- 1-year installs
- 6.4K
- Last 365 days
- Latest version
- 2.27.6
- Download size
- 984MB
- zip
- Release cadence
- Every 2 weeks
- 3 releases in 30 days
About
CodeQL is GitHub's semantic code-analysis system. This package installs the CodeQL command-line interface, which creates analysis databases from code, resolves and runs queries and produces results for review or code-scanning workflows. It is aimed at security researchers, developers and teams integrating static analysis into development or CI.
Analysis workflow
Build a CodeQL database for a supported language, select compatible query packs or query suites and analyze the resulting database. Queries can describe data flow and relationships in code rather than only matching source text. Results can be exported in formats such as SARIF for compatible viewers or GitHub code scanning. The separate CodeQL extension for VS Code provides an interactive query-development interface; it is not the graphical application installed by this cask.
Coverage depends on the language, extraction configuration, build mode and query selection. A successful command is not proof that every source file was extracted or every vulnerability detected. Review warnings and database coverage, and investigate findings before treating them as confirmed defects.
Installation and prerequisites
Use the official codeql-osx64.zip archive or brew install --cask codeql. The Homebrew cask exposes the codeql executable from the extracted distribution. Despite its osx64 filename, the official release text explicitly includes Apple Silicon in macOS support. The checked sources do not establish a precise numeric minimum macOS release or independently verify the archive's complete binary architectures, so no additional numeric requirement or Universal claim is invented.
The CLI includes a Java runtime; version 2.27.1 updates the bundled Eclipse Temurin OpenJDK to 25.0.4.1. An alternative JDK can be selected with CODEQL_JAVA_HOME when required. Language compilers, build tools, project dependencies and compatible CodeQL language/query packs are separate workflow prerequisites, depending on what you analyze. The cask itself declares no separate formula dependency or named conflict. The CLI-only platform ZIP should not be confused with a CodeQL bundle containing compatible query resources.
Normal analysis needs filesystem access to source, build outputs and analysis databases. The checked documentation does not establish a blanket Accessibility or Full Disk Access requirement. Database creation for compiled languages may run a project's build; use source and build scripts you trust and allocate enough CPU, memory and disk space for the repository.
License, accounts and network
The CodeQL CLI is governed by GitHub CodeQL Terms and Conditions, distinct from the MIT-licensed query source repository. Downloading a binary does not grant unrestricted commercial use for every private codebase. GitHub documents access for public repositories and eligible private repositories with the appropriate GitHub Code Security licensing. Review the current terms for your intended codebase and deployment.
Local database analysis and query execution are separate from authenticated GitHub integration. Downloading packs, accessing private registries and uploading SARIF results can require network access and credentials. Do not describe every workflow as requiring an account, or every workflow as entirely offline. Protect tokens and check organization permissions before enabling uploads.
Data and practical risks
Analysis databases and exported findings can contain source-derived information, paths and security-sensitive details. Store them according to your repository's confidentiality requirements and review destinations before uploading. Queries, pack dependencies and build scripts can influence what is executed; verify their provenance. Static analysis complements testing and review and does not guarantee that a codebase is secure.
The official v2.27.2 release lists codeql-osx64.zip as 981,956,830 bytes. This is the Mac CLI archive, not the generic multi-platform ZIP or an installed database size. Version 2.27.0 deprecates the generic combined distribution in favor of per-platform downloads.
CodeQL 2.27.3 documents a traced-build limitation: autobuild and manual build modes for compiled languages are unsupported on macOS 27 with any Xcode, and on macOS 26 when Xcode 27 is selected. This concerns traced analysis and does not establish that every other analysis mode is unsupported.
Sources: Official product, CLI concepts and licensing, Official binary releases, CLI terms.
At a glance
- Price
- Free with in-app purchases
- Chip
- Apple silicon · Intel
- Auto-updates
- No
- Repository
- GitHub repository · Updated 3 days ago★1K
- Developer
- GitHub, Inc.
- Homebrew
- Available; updated by Homebrew
- Also known as
- codeql
- Homepage
- codeql.github.com
- Token
- codeql
Checked
What’s new in 2.27.6
New · OpenNavo editorial
- SecurityBundled JDK is now Temurin jdk-25.0.5.1+2.
How to install CodeQL on Mac
Install without Homebrew
Download the same file Homebrew uses: Install Details
Uninstall CodeQL and optional data cleanup
brew uninstall --cask codeqlA regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask codeql--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about CodeQL
Is CodeQL safe?
CodeQL is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from github.com against its SHA-256 checksum. It was installed 989 times through Homebrew in the last 30 days.
Is CodeQL free?
CodeQL is free to download and offers in-app purchases. Source: docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/about-the-codeql-cli, checked Oct 22, 2026.
Does CodeQL have a public GitHub repository?
CodeQL has a public GitHub repository (https://github.com/github/codeql-cli-binaries), but OpenNavo has not verified an OSI license.
How do I completely uninstall CodeQL on a Mac?
Run brew uninstall --cask codeql. To delete its settings and caches as well, run brew uninstall --zap --cask codeql. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes ~/.
Does CodeQL run on Apple silicon (M1 and later) Macs?
Homebrew installs it on both Apple silicon and Intel Macs, from the same download.
Where does CodeQL store its settings and data?
Its data is in ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of CodeQL?
The latest version is 2.27.6, added to Homebrew on Nov 24, 2026. Run brew upgrade --cask codeql to update it.
What else does installing CodeQL add?
It also adds 1 command-line tool: codeql.
Similar Apps
- Unity CLIUnity’s experimental command-line interface for managing Editors, modules and projects and automating supported Editor workflows.
- OpenUsageA native Mac menu-bar dashboard for AI-provider subscription limits, reset times and estimated local spending.
- Android CLIGoogle’s command-line entry point for Android SDK setup, project creation, device workflows and agent-assisted development.
- NeovideAn open-source graphical frontend for Neovim with native macOS windows and tabs, configurable rendering and trackpad Force Click previews.