The best AI in Xcode, open source.
- 🤝 Integrates in Xcode
- ✨ Generate code from natural language
- 🤖 Checks its own work
- 🌐 Open source, open choice of models
- 👉 Works with Claude Code
- 👉 Works with Xcode 26's AI chat
- 🪪 Official getcmd.dev home page
- Seamless integration in Xcode:
cmd
operates as a side panel in Xcode. It sees what is in Xcode, can edit files and take other actions. - Best agentic AI in Xcode:
cmd
uses frontier models and provides them with file access, build tools, and project context for effective code generation. - Easy to trust:
cmd
is open source and runs entirely locally. No data about your code is sent to 3rd parties other than the AI providers of your choosing. You can opt out of anonymised analytics. - Claude Code:
cmd
brings Claude Code to Xcode, as the first external agent supported. - Chose the AI provider you want:
cmd
supports the most popular AI providers. If you need another one, reach out!
brew install cmd
(or alternatievly download the latest release)- Open the app, and follow the quick setup (Accessibility permission, Bring your own API key)
cmd
uses the accessibility permission to "see" what is in Xcode, including which project/file is open, which code is selected etc.cmd
is mostly a Swift/SwiftUI application. It bundles a shallow layer of javascript that eases the interaction with external APIs.- The Swift application has two targets (the main app and an app extension for Xcode extension) that are each mostly one Swift Package with many targets. The code is structured across many modules, that are each bundled in their of SPM target.
agent-mode.webm
Delegate entire tasks to an autonomous agent. Remain in the loop with instant feedback, and in control thanks to fine grained permissions.
chat-mode.webm
Switch to 'Chat' mode and get detailed answers or explanations without modifying your code. Compared to other chat alternatives (e.g. ChatGPT, Google etc), cmd provides relevant context to get more accurate results.
claude-code.webm
You can interact directly with Claude Code through cmd. If you prefer using Claude Code over other tools for its advanced agentic capabilities, or because you have a subscription cmd has you covered. cmd makes Claude Code accessible right from Xcode, and displays its output in a rich native UI.
xcode26-demo.webm
In Xcode 26, you can chose to interact with cmd through the new 'Code Assist' interface. When working on complex tasks, cmd's agentic AI is much more powerful than that of Xcode which cripples the most powerful LLMs with unnecessary privacy limitations. It's also easier to manage configurations like using a specific AI provider in cmd.
We welcome contributions! Help us make your work more enjoyable.
Sharing feedback or opening a well documented issue is also greatly helpful.
cmd
works well already, and there's a lot we want to do in the short term:
- MCP integration
- Web search
- Visibility in API cost
- Task / sub-task orchestration
- Increase LLM provider support
- Integration with UI previews
- tools refinement
- Misc UI & UX improvements
and much more! cmd
is early stage, and in active development.
- CopilotForXcode that has been very influential for the Xcode integration
- Sentry and Github for their generous support of OSS.