Docscoding planClaude Code

Claude Code

Configure Claude Code to use your IN2PETA coding plan.

Overview

Claude Code is Anthropic's agentic coding tool available in terminal, IDE, desktop app, and browser. It supports custom API endpoints through environment variables.

Configuration

  1. 1Create or edit ~/.profile and add the following environment variables
  2. 2Source the file: source ~/.profile
  3. 3Run claude and select the custom model option when prompted
  4. 4Change the model to In2Peta Coding

Environment variables

export ANTHROPIC_BASE_URL="https://code.in2peta.com"
export ANTHROPIC_API_KEY="sk_..."
export ANTHROPIC_CUSTOM_MODEL_OPTION="auto"
export ANTHROPIC_CUSTOM_MODEL_OPTION_NAME="In2Peta Coding"

Install Claude Code

  • Install via npm: npm install -g @anthropic/claude-code
  • Full documentation: docs.anthropic.com/en/docs/claude-code