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

# Claude Code

> Install Claude Code, sign in, choose its setup in CoClip and fix the messages you may see.

Claude Code is Anthropic's command-line agent. In CoClip it runs in a **Claude** tab of the [AI dock](/docs/ai-agents/ai-dock.md), with the CoClip tools and skills already loaded.

## Install and sign in

CoClip does not install Claude Code for you. The install commands below come from Anthropic; check [Anthropic's Claude Code setup page](https://code.claude.com/docs/en/setup) for the current command.

**1. Install Claude Code**

> [tab] Windows
>
> Open PowerShell and run:
>
> ```powershell theme={null}
> irm https://claude.ai/install.ps1 | iex
> ```

> [tab] macOS
>
> Open Terminal and run:
>
> ```bash theme={null}
> curl -fsSL https://claude.ai/install.sh | bash
> ```

**2. Sign in once**

In the same window, run `claude` and follow the sign-in steps. Your sign-in stays on your computer.

**3. Open a Claude tab**

In CoClip, click **+** in the AI dock and pick **Claude**.

CoClip does not require a minimum Claude Code version. Keep it up to date with Anthropic's own update steps.

## Choose the setup

Open **Settings** → **AI assistants** → **Claude**:

| Option | What Claude loads |
| - | - |
| **CoClip setup only (recommended)** | Only the CoClip tools. Keeps your sign-in, model and effort. Your other skills, plugins, MCP servers, hooks and CLAUDE.md stay out of video projects. |
| **Use my own Claude setup** | Also your skills, plugins, MCP servers, hooks and CLAUDE.md. |

The choice applies to the next Claude session the AI dock starts. Restart a tab to use it now.

## What Claude gets in CoClip

* The CoClip tools, the CoClip skills and the five agent roles. See [Skills and agent roles](/docs/ai-agents/skills-and-agents.md).
* The clips you select on the timeline, shown in Claude as selected lines.
* CoClip tools run without asking, for that session only. Other actions, such as shell commands, follow the agent's own approval prompts.

## Messages and fixes

| What you see | Fix |
| - | - |
| **Claude Code is not installed on this PC** (or Mac) | Run the install command from the tab or from Install and sign in above, run `claude` once to sign in, then click **Open Claude again**. |
| Claude is still not found after installing | Restart CoClip. CoClip also looks in the installer's own folders, but a running CoClip may need a restart. |
| Claude asks you to sign in or log in inside the tab | Finish Claude Code's sign-in in the tab, or run `claude` once in PowerShell (Terminal on macOS). |
| **Open a project first** | Open or create a project. AI sessions belong to a project. |
| **Claude 1 exited** | Click **Restart** for a new session, or **Close** to drop the tab. |
| **Claude could not start: …** | Click **Restart**. If it keeps failing, restart CoClip and check [Troubleshooting](/docs/reference/troubleshooting.md). |

## Related pages

* [Use Claude Code outside the editor](/docs/ai-agents/outside-the-editor.md#claude-code)
* [AI log and undo](/docs/ai-agents/ai-log-and-undo.md)
* [Example prompts](/docs/ai-agents/example-prompts.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.