> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcmd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome to cmd

> The best AI in Xcode, open source

<img className="block dark:hidden" src="https://mintcdn.com/cmd-78c04324/IyYh-LJdUEZqp9ke/assets/hero-light.png?fit=max&auto=format&n=IyYh-LJdUEZqp9ke&q=85&s=d909c49e49949bf53066fd1aa70bfb70" alt="cmd hero" width="2242" height="1654" data-path="assets/hero-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/cmd-78c04324/IyYh-LJdUEZqp9ke/assets/hero-dark.png?fit=max&auto=format&n=IyYh-LJdUEZqp9ke&q=85&s=296226803abeac9667407f3f146a8f96" alt="cmd hero" width="2232" height="1646" data-path="assets/hero-dark.png" />

## Get Started in Minutes

cmd brings powerful AI assistance directly into Xcode. Choose your path to get started:

<CardGroup cols={2}>
  <Card title="Quick Start" icon="rocket" href="/quickstart">
    Install and configure cmd in just a few minutes
  </Card>

  <Card title="Learn More" icon="book" href="/pages/features">
    Understand what makes cmd special
  </Card>
</CardGroup>

## Why cmd?

<CardGroup cols={3}>
  <Card title="Seamless Integration" icon="apple">
    Works alongside Xcode and integrates with Xcode 26's native AI interface
  </Card>

  <Card title="Agentic AI" icon="robot">
    Autonomous agents that understand context and check their own work
  </Card>

  <Card title="Open Source" icon="code">
    Fully transparent, runs locally, you control your data
  </Card>

  <Card title="Your Choice of AI" icon="server">
    Works with any AI provider of your choosing
  </Card>

  <Card title="External Agents" icon="terminal">
    Delegate entire tasks to Claude Code through a native interface
  </Card>
</CardGroup>

## Main Features

<Tabs>
  <Tab title="Code Completion">
    <video controls className="w-full" poster="/assets/videos/code-completion.jpg">
      <source src="https://mintcdn.com/cmd-78c04324/UiqZnIZtUtKr3nqi/assets/videos/code-completion.mp4?fit=max&auto=format&n=UiqZnIZtUtKr3nqi&q=85&s=3fb98d37dd1bf232296ffbef0b4a86a1" type="video/mp4" data-path="assets/videos/code-completion.mp4" />
    </video>

    Intelligent code suggestions as you type:

    * Natural, context-aware completions for Swift
    * Multiple provider support: GitHub Copilot, Mistral AI, Mercury Coder.
    * Automatic or on-demand trigger modes
    * Seamless integration with Xcode

    <a href="/pages/code-completion">Learn how to configure Code Completion →</a>
  </Tab>

  <Tab title="Agent Mode">
    <video controls className="w-full" poster="/assets/videos/agent-mode.jpg">
      <source src="https://github.com/getcmd-dev/public-website/raw/refs/heads/main/src/assets/agent-mode.mov" />
    </video>

    Delegate entire tasks to autonomous agents. They can:

    * Edit multiple files
    * Discover relevant information in your codebase
    * Run builds and tests
    * Fix errors
    * Check their own work

    You stay in control with instant feedback and granular permissions.

    <a href="/pages/chat-modes">Learn how to configure Agent mode →</a>
  </Tab>

  <Tab title="Ask Mode">
    <video controls className="w-full" poster="/assets/videos/chat-mode.jpg">
      <source src="https://github.com/getcmd-dev/public-website/raw/refs/heads/main/src/assets/chat-mode.mov" />
    </video>

    Get detailed answers and explanations without modifying code:

    * Understand complex codebases
    * Get architectural advice
    * Learn about patterns and practices
    * Context-aware responses from your actual code

    <a href="/pages/chat-modes">Learn how to configure Ask mode →</a>
  </Tab>

  <Tab title="External Agents">
    <video controls className="w-full" poster="/assets/videos/claude-code.jpg">
      <source src="https://github.com/getcmd-dev/public-website/raw/refs/heads/main/src/assets/claude-code.mov" />
    </video>

    Delegate entire tasks to external agents you love, without leaving Xcode:

    * **Claude Code**: Anthropic's agentic coding assistant
    * **Codex**: OpenAI's code generation agent
    * **Gemini CLI**: Google's AI agent for the terminal

    Rich native UI for better visibility and control over agent tasks.

    <a href="/pages/claude-code">Learn how to configure External Agents →</a>
  </Tab>

  <Tab title="Local Inference">
    Run AI models entirely on your machine with Ollama:

    * **Complete privacy**: Your code never leaves your infrastructure
    * **Custom models**: Use specialized or fine-tuned models
    * **Network deployment**: Run Ollama on private network servers
    * **Offline development**: Work without internet connectivity
    * **No API costs**: Unlimited inference without per-token charges

    Tested successfully with models like devstral-small-2 and qwen3-coder.

    <a href="/pages/ollama">Learn how to configure Ollama →</a>
  </Tab>

  <Tab title="Xcode 26 Integration">
    <video controls className="w-full" poster="/assets/videos/xcode26-demo.jpg">
      <source src="https://github.com/getcmd-dev/public-website/raw/refs/heads/main/src/assets/xcode26-demo.mov" />
    </video>

    Interact with cmd through Xcode 26's native AI chat:

    * Use Xcode's built-in interface or cmd's sidebar
    * Get cmd's powerful agentic AI in Xcode's native UI
    * Easy configuration on port 10101
    * Flexibility to choose your preferred interface
  </Tab>
</Tabs>

## Installation

<Steps>
  <Step title="Install">
    ```bash theme={null}
    brew install cmd
    ```

    Or [download the DMG](https://github.com/getcmd-dev/cmd/releases/latest)
  </Step>

  <Step title="Grant Permissions">
    Allow accessibility access when prompted
  </Step>

  <Step title="Configure AI">
    Add your API key from OpenAI, Anthropic, or another provider
  </Step>

  <Step title="Start Coding">
    Open Xcode and start using cmd
  </Step>
</Steps>

<Card title="Detailed Installation Guide" icon="book-open" href="/pages/install">
  Need help? Follow our complete installation guide
</Card>

## Customize cmd

Make cmd work the way you want:

<CardGroup cols={2}>
  <Card title="Configure AI Providers" icon="key" href="/pages/ai-providers">
    Set up your preferred AI providers with API keys
  </Card>

  <Card title="Select Models" icon="sliders" href="/pages/models">
    Choose which models to enable and use
  </Card>

  <Card title="MCP Servers" icon="server" href="/pages/mcp-servers">
    Extend capabilities with Model Context Protocol servers
  </Card>
</CardGroup>

## Join the Community

<CardGroup cols={2}>
  <Card title="GitHub" icon="github" href="https://github.com/getcmd-dev/cmd">
    Contribute, report issues, or browse the source code
  </Card>

  <Card title="Website" icon="globe" href="https://getcmd.dev">
    Visit the official cmd website
  </Card>
</CardGroup>

***

<Note>
  cmd is open source and runs entirely on your machine. Your code is only sent to the AI providers you choose. You can opt out of anonymized analytics.
</Note>
