Skip to main content

Overview

While cmd’s agent mode can autonomously take on complex tasks, you might prefer to bring in an external agent.
Setting up Claude Code gives you access to powerful agentic capabilities through cmd’s native interface in Xcode.

Prerequisites

Before configuring Claude Code in cmd, you need to have Claude Code installed and set up on your system.
1

Install Claude Code

Follow the official setup guide to install Claude Code.
2

Verify Installation

Ensure Claude Code is working properly by running it from your terminal:
claude --version
3

Login in Claude Code

Launch Claude Code in your terminal to authenticate (either with an API key or an Anthropic subscription)

Configuring Claude Code in cmd

Once Claude Code is installed and configured, you can enable it in cmd:
1

Open AI Provider Settings

Go to Settings > AI Providers in cmd
2

Configuration

cmd should automatically detect where Claude Code is installed on your system.Otherwise, or if you need specific launch arguments, you can manually specify how to launch Claude Code
  1. Click “Add Provider” or “Configure” for Claude Code
  2. Provide the path to the Claude Code binary
  3. Optionally, specify a custom command if you use a specific way to run Claude Code
If you run Claude Code via mise, you can specify:
mise x npm:@anthropic-ai/claude-code@latest -- claude code
If you have Claude Code installed in a specific location:
/usr/local/bin/claude
If installed via npm globally:
npx @anthropic-ai/claude-code
3

Enable Claude Code

Toggle “Enable” for Claude Code

Using Claude Code

Once enabled, Claude Code will appear in your model selection:
1

Select Claude Code

In the cmd interface, open the model selector and choose “Claude Code”
2

Start Using

You can now use Claude Code’s advanced agentic capabilities:
  • Multi-step task execution
  • Integrates with your existing Claude Code configuration, include CLAUDE.md
  • Rich native UI in cmd
Claude Code appears in the model selector just like any other AI model, but as an external agent it provides advanced capabilities that go beyond simple chat interactions.