Skip to main content
Claude Code is an Agentic Coding tool launched by Anthropic, also known as one of the world’s strongest programming agents. The terminal CLI is the core experience of Claude Code, allowing you to run the claude command in any terminal and collaborate with AI in programming using natural language. This document mainly introduces how to install, configure, and use Claude Code CLI through the proxy service of AceData Cloud in the terminal.

Application Process

To use Claude Messages service page, first open the Ace Data Cloud Console and copy your API Token. If you are not logged in, you will be redirected to sign in and brought back to this page automatically. A single API Token works across every service on the platform — no need to subscribe per service. New accounts receive free starter credit; when it runs low you can top up your shared balance in the console.
📘 Full documentation: Claude Messages service page →

Install Claude Code

System Requirements

  • macOS, Linux, or Windows (including WSL)
  • Node.js is not required; the native installation method will automatically handle dependencies

Installation Methods

Claude Code supports multiple installation methods: Method 1: Native Installation (Recommended) macOS / Linux / WSL:
Windows PowerShell:
Windows CMD:
Method 2: Homebrew (macOS / Linux)
Method 3: WinGet (Windows)
The native installation will automatically update in the background, always keeping the latest version.

Configure AceData Cloud API

After installation, you will be prompted to log in to your Anthropic official account by default. We can use environment variables to configure the AceData Cloud proxy API, without the need for an official subscription.

Configure Environment Variables

There are two ways to configure environment variables; you can choose either. Method 1: Set in Shell Configuration File (Recommended) Add the following content to your Shell configuration file (~/.zshrc, ~/.bashrc, or ~/.bash_profile), replacing {token} with the API token you obtained from the AceData Cloud console:
After modification, execute the following command to make the configuration effective:
Method 2: Set in Claude Code settings.json Edit ~/.claude/settings.json (create it if it does not exist) and add the env configuration:
The advantage of this method is that the environment variables only apply to Claude Code and do not affect other programs.
Tip: The API token can be viewed in the AceData Cloud console. The value of ANTHROPIC_AUTH_TOKEN will automatically have the Bearer prefix added when sent to the server.

Getting Started

Start Interactive Mode

Open the terminal, navigate to your project directory, and then run:
You will see the welcome screen of Claude Code, and you can start interacting by entering natural language.

Common Commands

Interactive Mode Commands

In interactive mode, you can use the following built-in commands:

Conversation Interaction Examples

Advanced Usage

Piping and Scripting

Claude Code follows the Unix philosophy and supports piping and scripting operations:

Environment Variable Reference

Here are the commonly used environment variables supported by Claude Code:

CLAUDE.md Project Memory

Create a CLAUDE.md file in the project root directory to provide project-specific instructions and context for Claude Code. Claude will automatically load this file at startup.

Frequently Asked Questions

What to do if the connection fails?

  1. Check if the ~/.claude/config.json file is correctly created, with the content {"primaryApiKey": "self"}
  2. Confirm that the environment variables are set correctly:
  3. Confirm that the API token is valid (can be checked in the console)
  4. Try restarting the terminal

command not found: claude

If you see command not found after installation, please try:
  1. Close and reopen the terminal
  2. Check PATH: echo $PATH
  3. Reinstall: curl -fsSL https://claude.ai/install.sh | bash

How to check remaining quota?

Log in to the AceData Cloud console to view the current account’s remaining quota and usage.

Learn more