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

# Claude Code

> Learn how to install and configure Claude Code for secure AI-powered coding assistance

## What is Claude Code?

Claude Code is an agentic coding tool from Anthropic that runs directly in your terminal (or integrated in your IDE) and is designed to understand your full codebase, execute commands, edit files, create commits, and handle git workflows — all via natural-language prompts.

Its key capabilities include building new features from plain-English descriptions, debugging and fixing issues by analysing the codebase, navigating complex repositories, and automating repetitive engineering tasks.

## Integration Options

Unbound provides two ways to integrate Claude Code depending on your needs:

1. **Using API Key**: Use Claude Code through Unbound Gateway without needing your own Anthropic subscription
2. **With Anthropic Account**: Keep your existing Anthropic subscription and add Unbound for tracking and analytics

## Prerequisites

Before integration, ensure you have:

* **Unbound CLI**: Installed and logged in — see the [CLI guide](/cli/overview)
* **Claude Code**: [Install Claude Code](https://www.claude.com/product/claude-code)

## Setup with Unbound CLI

```bash theme={null}
unbound setup claude-code
```

You'll be prompted to choose a mode:

1. **Gateway** — Use Unbound as the AI provider (no Anthropic subscription needed)
2. **Subscription** — Keep your Anthropic subscription, add Unbound for policy enforcement and analytics

You can also skip the prompt:

```bash theme={null}
unbound setup claude-code --gateway        # Use Unbound as AI provider
unbound setup claude-code --subscription   # Hooks only (keep your subscription)
```

To remove the Unbound configuration:

```bash theme={null}
unbound setup claude-code --clear
```

After setup, restart your terminal and IDE, then run:

```bash theme={null}
claude
```

<CardGroup cols={2}>
  <Card title="Unbound CLI" icon="terminal" href="/cli/overview">
    Install the CLI to set up and manage tools
  </Card>

  <Card title="Tool Policies" icon="shield" href="/policies/tool-policies">
    Configure security guardrails for AI tools
  </Card>
</CardGroup>
