# Install sourcekitten with Homebrew, MacPorts

Framework and command-line tool for interacting with SourceKit. Version 0.37.3 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:sourcekitten
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sourcekitten
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install SourceKitten
```

  Evidence: MacPorts ports tree: devel/SourceKitten/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:sourcekitten
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sourcekitten>
- **Version:** 0.37.3
- **Source summary:** Framework and command-line tool for interacting with SourceKit
- **Homepage:** <https://github.com/jpsim/SourceKitten>
- **Repository:** <https://github.com/jpsim/SourceKitten>
- **Upstream docs:** <https://github.com/jpsim/SourceKitten#readme>
- **License:** MIT
- **Source archive:** <https://github.com/jpsim/SourceKitten.git>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sourcekitten (cli)
- sourcekitten (alias)

## Uses from macOS

- swift

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.37.3
- Local data: ok
- Upstream repository: https://github.com/jpsim/SourceKitten
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

SourceKitten is a Swift framework and command-line tool for interacting with Apple's SourceKit service, exposing source structure, syntax, completion, indexing, module information, and documentation extraction as JSON-friendly CLI subcommands.

### Project history

The GitHub repository was created in August 2014. The README describes SourceKitten as a framework and CLI that links to `sourcekitd.framework` to parse Swift ASTs, extract comment docs for Swift or Objective-C projects, get Swift syntax data, and issue raw SourceKit requests.

The changelog shows continuous tracking of Swift and Xcode evolution: Swift 3-era API changes, Swift 4 and Swift 5 requirements, SwiftPM and Xcode documentation support, Bazel support, and syntax/declaration kind updates through Swift 6.

### Adoption history

The README lists many projects built with SourceKitten, including SwiftLint, Jazzy, Sourcery, SourceKittenDaemon, SourceDocs, Cuckoo, IBAnalyzer, and Taylor. That list makes SourceKitten infrastructure for a broad slice of Swift developer tooling.

### How it is used

The `sourcekitten` CLI provides subcommands including `complete`, `doc`, `format`, `index`, `module-info`, `request`, `structure`, `syntax`, and `version`. It can be installed with Homebrew, Swift Package Manager, Bazel, Make, or a release package.

### Why package nerds care

Package nerds care because SourceKitten turns a platform-private compiler service into a packageable Unix-style CLI and library. It is the substrate behind linters, documentation generators, mock generators, editor completion bridges, and other Swift ecosystem tools.

### Timeline

- 2014: SourceKitten repository created.
- 2015: 0.3.0-era public releases were being published.
- 2016: 0.15.0 adapted APIs for Swift 3 and Xcode 8.
- 2019: 0.30.0 required Swift 5.1 or higher.
- 2022: 0.33.0 added Bazel build support and Xcode 14 documentation support.
- 2025: 0.37.0 added Swift 6 compiler and syntax/declaration support.
- 2026: 0.37.3 continued dependency maintenance.

### Related projects

- SwiftLint, Jazzy, Sourcery, SourceDocs, Cuckoo, IBAnalyzer, Taylor, and SourceKittenDaemon are listed by the README as projects built with SourceKitten.
- SourceKit and `sourcekitd.framework` are the Apple tooling components SourceKitten communicates with.

### Sources

- <https://github.com/jpsim/SourceKitten#readme>
- <https://github.com/jpsim/SourceKitten/blob/main/CHANGELOG.md>
- <https://github.com/jpsim/SourceKitten/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sourcekitten
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- MacPorts - SourceKitten: normalized package name match | MacPorts ports tree: devel/SourceKitten/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cdxgen](https://www.automicvault.com/pkg/brew/cdxgen/) - Popular package that depends on this formula.
- [helm-docs](https://www.automicvault.com/pkg/brew/helm-docs/) - Shares av.db curated category or tags: cli, developer-tools, documentation, documentation-generator, markdown.
- [nef](https://www.automicvault.com/pkg/brew/nef/) - Shares av.db curated category or tags: cli, developer-tools, documentation, markdown, swift.
- [terraform-docs](https://www.automicvault.com/pkg/brew/terraform-docs/) - Shares av.db curated category or tags: cli, developer-tools, documentation, documentation-generator, markdown.
- [action-docs](https://www.automicvault.com/pkg/brew/action-docs/) - Shares av.db curated category or tags: cli, developer-tools, documentation, markdown.
- [cmark](https://www.automicvault.com/pkg/brew/cmark/) - Shares av.db curated category or tags: cli, developer-tools, documentation, markdown.
- [cmark-gfm](https://www.automicvault.com/pkg/brew/cmark-gfm/) - Shares av.db curated category or tags: cli, developer-tools, documentation, markdown.
- [dashing](https://www.automicvault.com/pkg/brew/dashing/) - Shares av.db curated category or tags: cli, developer-tools, documentation, documentation-generator.
- [docfx](https://www.automicvault.com/pkg/brew/docfx/) - Shares av.db curated category or tags: cli, developer-tools, documentation, markdown.
- [sourcedocs](https://www.automicvault.com/pkg/brew/sourcedocs/) - Both packages work with overlapping file formats or content types. Shared terms: cli, code, developer, developer-tools, documentation.
- [protoc-gen-doc](https://www.automicvault.com/pkg/brew/protoc-gen-doc/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, code, developer, developer-tools, documentation.

## Combined YAML source

View the package source record on GitHub. [combined/sourcekitten.yml](https://github.com/automic-vault/db/blob/main/combined/sourcekitten.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
