# Kali & LLM: macOS with Claude Desktop & Anthropic Sonnet LLM

DevFeed: [Kali & LLM: macOS with Claude Desktop & Anthropic Sonnet LLM](<https://devfeed.tech/articles/kali-llm-macos-with-claude-desktop-anthropic-sonnet-llm-47146.md>)

Original publisher: [Read original article](<https://www.kali.org/blog/kali-llm-claude-desktop/>)

Published: 2026-02-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kali Linux](<https://devfeed.tech/sources/kali-linux.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [anthropic](<https://devfeed.tech/topics/anthropic.md>), [Claude](<https://devfeed.tech/topics/claude.md>), [macOS](<https://devfeed.tech/topics/macos.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Network](<https://devfeed.tech/topics/network.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [advanced](<https://devfeed.tech/tags/advanced.md>), [anthropic](<https://devfeed.tech/tags/anthropic.md>), [claude](<https://devfeed.tech/tags/claude.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [kali](<https://devfeed.tech/tags/kali.md>), [kalilinux](<https://devfeed.tech/tags/kalilinux.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llm](<https://devfeed.tech/tags/llm.md>), [macos](<https://devfeed.tech/tags/macos.md>), [model-context-protocol](<https://devfeed.tech/tags/model-context-protocol.md>), [network](<https://devfeed.tech/tags/network.md>), [penetration](<https://devfeed.tech/tags/penetration.md>), [penetration-testing](<https://devfeed.tech/tags/penetration-testing.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

A tutorial describes a setup that uses Claude Desktop on macOS, Kali Linux, and Anthropic's Sonnet 4.5 with Model Context Protocol to translate natural-language requests into technical commands and run tools such as Nmap. It also discusses reasons for using multiple operating systems and privacy considerations.

## Source excerpt

This post will focus on an alternative method of using Kali Linux, moving beyond direct terminal command execution. Instead, we will leverage a Large Language Model (LLM) to translate "natural language" descriptions of desired actions into technical commands. Achieving this setup requires the integration of three distinct systems: UI: Apple's macOS (Can also use Microsoft Windows, but not covered in this guide) - with Claude Desktop Attacking box: Kali Linux - using various tools LLM: In the cloud - Anthropic's Sonnet 4.5 The LLM is only part of the story. When paired with Model Context Protocol (MCP)'s, it allows/enables the LLM to seamlessly connect with external sources (data, programs/tools etc). At a very high level: We can ask a LLM to-do a task via a "prompt". "Can you please port scan scanme.nmap.org, if you find a valid web server, check if security.txt exists" The LLM will understand what we asked it to-do. "First task, I need to use Nmap/Network Mapper to-do a port scan of scan scanme.nmap.org" LLM will then request the MCP to-do any action(s). "Is Nmap installed? Can I access it?" MCP will run the request and return results $ nmap scanme.nmap.org The LLM will process the results as well as showing it to us as end-users. "I found that scanme.nmap.org is up, and contains a web server on port 80/TCP & 443/TCP." If needed, could be a loop, and re-run a command/action again back in the MCP until the prompt has been completed/full-filled. "Now I need see if /.well-known/security.txt gives HTTP 200 response" Just like the joys of text editors wars (vim vs emacs vs nano), this is not to say its the "best" way to-do it. This is a way. This scenario may work for you, or it may not be acceptable to you (e.g. privacy). That is fine. If you are wonder "Why this setup? Why are you using multiple OSes?", there are various reasons why! You may want a graphical user interface (GUI), which Claude Desktop is. Its an official product from Anthropic, who is making the model