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

# Claude Code

> Anthropic's official command-line AI coding tool. Connect it to ePhone AI via the Anthropic-compatible protocol.

[Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview) is Anthropic's official command-line AI coding tool. It lets you interact with your codebase using natural language — generating code, refactoring, debugging, and creating commits.

## Installation & Setup

<Steps>
  <Step title="Install Node.js">
    Make sure you have Node.js **18+** installed:

    ```bash theme={null}
    node -v
    ```
  </Step>

  <Step title="Install Claude Code">
    ```bash theme={null}
    npm install -g @anthropic-ai/claude-code
    ```
  </Step>

  <Step title="Set Environment Variables">
    <Accordion title="Mac / Linux (zsh)">
      ```bash theme={null}
      echo 'export ANTHROPIC_API_KEY="sk-your-api-key"' >> ~/.zshrc
      echo 'export ANTHROPIC_BASE_URL="https://api.ephone.ai/anthropic"' >> ~/.zshrc
      source ~/.zshrc
      ```
    </Accordion>

    <Accordion title="Mac / Linux (bash)">
      ```bash theme={null}
      echo 'export ANTHROPIC_API_KEY="sk-your-api-key"' >> ~/.bashrc
      echo 'export ANTHROPIC_BASE_URL="https://api.ephone.ai/anthropic"' >> ~/.bashrc
      source ~/.bashrc
      ```
    </Accordion>

    <Accordion title="Windows (PowerShell)">
      ```powershell theme={null}
      [Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "sk-your-api-key", "User")
      [Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://api.ephone.ai/anthropic", "User")
      ```
    </Accordion>
  </Step>

  <Step title="Navigate to Your Project and Start">
    ```bash theme={null}
    cd your-project-folder
    claude
    ```
  </Step>
</Steps>

## Common Commands

| Command                     | Description                                   |
| --------------------------- | --------------------------------------------- |
| `claude`                    | Start interactive mode                        |
| `claude "task description"` | Run a one-off task                            |
| `claude commit`             | Auto-generate a Git commit message and commit |
| `/help`                     | Show all available commands                   |
| `/clear`                    | Clear the current conversation history        |
| `/model`                    | Switch the model being used                   |

## Recommended Models

| Use Case                   | Recommended Model                   |
| -------------------------- | ----------------------------------- |
| Everyday coding assistance | `claude-opus-4-5-20251101`          |
| Complex refactoring        | `claude-opus-4-5-20251101-thinking` |

## Advanced Usage

**Define project rules with CLAUDE.md**

Create a `CLAUDE.md` file in your project root — Claude Code will automatically read and follow its instructions:

```markdown theme={null}
# Project Rules
- Use TypeScript, no `any` types
- Follow Conventional Commits for commit messages
- Run npm test after every change
```

**Extend with MCP Servers**

Claude Code supports [MCP (Model Context Protocol)](https://docs.anthropic.com/en/docs/claude-code/mcp) to connect external tools like databases, file systems, and browsers, significantly extending its Agent capabilities.

<Note>
  Claude Code's Agent mode calls the model frequently. Token usage is much higher than regular chat — we recommend using a Tier 2 account to avoid hitting rate limits.
</Note>
