# Claude Code

<subtitle>Quickly start and use Claude Code intelligent assistant in sandbox.</subtitle>

The `claude-code` template pre-configures Anthropic's Claude Code environment, based on the UModelverse model service platform. You can quickly start and interact directly through CLI.

## Quick Start

Use the CLI command `ucloud-sandbox-cli sbx cr claude-code` to connect via terminal:

```bash
ucloud-sandbox-cli sbx cr claude-code
```

## Interaction Flow

After successful connection, you will see the following startup screen. First-time use requires entering an API Token for authentication.

```text
~ $ claude

╔════════════════════════════════════════════╗
║     🚀 Claude Code Launcher              ║
╚════════════════════════════════════════════╝

ℹ Please enter your Anthropic API token
(The token will be stored in ~/.claude/settings.json)

Enter API Token: 
```

**Configuration Steps:**

1.  When prompted `Enter API Token:`, please enter your ModelVerse API Key.
    *   [Get ModelVerse API Key](https://console.ucloud.cn/modelverse/experience/api-keys)
2.  After entering, press Enter to enter Claude Code's interactive interface and start programming.

## Template Features

*   **Pre-installed Environment**: Built-in Node.js and `claude-code` CLI tools.
*   **Persistent Settings**: Supports saving configuration within sandbox lifecycle.
*   **Security Isolation**: All code execution runs in sandbox isolated environment, ensuring host security.
