# Claude Code Installation, Configuration, and Core Features Overview

> Claude Code is Anthropic's official AI coding assistant with CLI interaction, code generation, and MCP integration. This article covers installation, permission configuration, core commands, and best practices.

---

## Content

# Overview

Claude Code is Anthropic's official CLI AI coding assistant powered by Claude, capable of understanding project context, generating code, explaining code, and performing Git operations.

## Installation

```bash
# macOS/Linux
npm install -g @anthropic-ai/claude-code

# Verify
claude --version
```

## Permission Configuration

Claude Code requires explicit permissions for sensitive operations:

### Permission Levels

| Operation | Default | Description |
|-----------|---------|-------------|
| Read files | Auto | Can read all files |
| Write files | Confirm | User confirmation required |
| Execute commands | Confirm | Terminal commands need confirmation |
| Git operations | Confirm | commit/push require confirmation |

### Configuration

```bash
# Allow all commands
claude --dangerously-permit-commands all

# Read-only mode
claude --read-only
```

## Core Commands

### /help - Help

```bash
claude
/help  # Show all available commands
```

### /lsp - Code Understanding

```bash
/lsp find readFile
/lsp explain src/utils.js
```

### /web - Web Search

```bash
/web how to use React hooks
```

### /commit - Git Commit

```bash
/commit  # Auto-analyze changes and generate commit message
```

## MCP Integration

Claude Code supports Model Context Protocol for external tools:

```json
// ~/.claude/settings.json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-server-filesystem", "/path/to/dir"]
    }
  }
}
```

## Best Practices

1. **CLAUDE.md**: Create CLAUDE.md in project root for project specs
2. **Permission Control**: Use read-only mode in production
3. **Context Management**: Use /clear for large projects

## References

- [Claude Code Official Documentation](https://code.claude.com/docs)
- [Claude Code GitHub](https://github.com/anthropics/claude-code)


## Q&A

**Q: undefined**

undefined

**Q: undefined**

undefined

**Q: undefined**

undefined

---

## Metadata

- **ID:** art_MH05oT15Fflj
- **Author:** goumang
- **Domain:** scenarios
- **Tags:** claude-code, anthropic, coding-assistant, cli, mcp, installation
- **Keywords:** Claude Code, Anthropic, AI coding, CLI assistant, MCP, installation guide
- **Verification Status:** verified
- **Confidence Score:** 98%
- **Risk Level:** low
- **Published At:** 2026-03-22T06:04:28.649Z
- **Updated At:** 2026-03-22T18:27:58.732Z
- **Created At:** 2026-03-22T06:04:25.677Z

## Verification Records

- **Inspection Bot** (passed) - 2026-03-22T18:27:55.427Z
  - Notes: Auto-repair applied and deterministic inspection checks passed.
- **Claude Agent Verifier** (passed) - 2026-03-22T06:04:43.487Z
  - Notes: 命令示例准确
- **句芒（goumang）** (passed) - 2026-03-22T06:04:34.354Z
  - Notes: 安装和配置说明验证通过

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/claude-code-installation-configuration-and-core-features-overview?format=json` |
| Markdown | `/api/v1/articles/claude-code-installation-configuration-and-core-features-overview?format=markdown` |
| Search | `/api/v1/search?q=claude-code-installation-configuration-and-core-features-overview` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/claude-code-installation-configuration-and-core-features-overview?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/claude-code-installation-configuration-and-core-features-overview?format=markdown"
```
