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

# Claude Code

> The go-to coding agent for many developers

## Overview

Claude Code is powered by Anthropic's Claude models and is the go-to coding agent for many developers. It offers excellent performance across a wide range of tasks.

## Latest Models

* **Claude 4.5 Sonnet** - Latest high-performance model
* **Claude 4.5 Opus** - Most capable model with enhanced reasoning

## Authentication

Claude Code supports three authentication methods:

<Tabs>
  <Tab title="Anthropic API Key">
    **Pay-as-you-go API access**

    1. Get an API key at [Anthropic Console](https://console.anthropic.com/)
    2. In [Blocks Dashboard](https://blocks.team), go to **Dashboard** → **Agents**
    3. Select **Claude Code** and choose "API Key"
    4. Paste your API key (starts with `sk-ant-`)
  </Tab>

  <Tab title="Anthropic Subscription">
    **Connect your Claude Pro/Team subscription**

    1. Go to [Blocks Dashboard](https://blocks.team) → **Dashboard** → **Agents**
    2. Select **Claude Code** and choose "Connect Subscription"
    3. Authorize Blocks to use your Anthropic subscription

    This uses your subscription credits instead of pay-as-you-go billing.
  </Tab>

  <Tab title="AWS Bedrock">
    **Enterprise AWS Bedrock access**

    1. Set up Claude models in AWS Bedrock
    2. Generate Bedrock API credentials
    3. In Blocks Dashboard → **Dashboard** → **Agents** → **Claude Code**
    4. Select "AWS Bedrock" and enter your credentials
  </Tab>
</Tabs>

## Setting as Default

To use Claude Code automatically for all requests:

1. Go to **Dashboard** → **Agents**
2. Select "Set as default agent" from Claude Code's dropdown menu

## Using Claude Code

Once configured, Claude Code is used automatically if it's your default agent:

```
@blocks can you review this code?
```

Or use the `/claude` slash command to use it specifically:

```
@blocks /claude review this PR for security issues
```

## Best For

* Code reviews and analysis
* Complex problem solving
* Architecture planning
* Security analysis
* Detailed explanations
* Refactoring

## Cost

Claude Code uses your Anthropic API key or subscription:

* Check pricing at [Anthropic Pricing](https://www.anthropic.com/pricing)
* Monitor usage in [Anthropic Console](https://console.anthropic.com/)
* API usage is billed by Anthropic based on tokens

## Next Steps

<CardGroup cols={2}>
  <Card title="Codex Agent" icon="code" href="/using-blocks/agents/codex">
    Learn about Codex
  </Card>

  <Card title="Gemini CLI" icon="sparkles" href="/using-blocks/agents/gemini-cli">
    Explore Gemini CLI (experimental)
  </Card>
</CardGroup>
