Claude Code
Claude Code is Anthropic's command-line AI coding assistant that helps you write code, debug, and manage projects.
About Claude Code
Claude Code is a powerful command-line AI coding assistant developed by Anthropic. It can be used directly in your terminal to help you write code, debug issues, understand codebases, and perform various development tasks.
Installation
First, make sure you have Node.js 18+ installed, then install Claude Code globally via npm:
npm install -g @anthropic-ai/claude-codeConfiguration Steps
Claude Code supports custom API endpoints through environment variables. You can configure Kouri Ai using the following methods:
Method 1: Temporary Configuration (Single Use)
Run in your terminal:
ANTHROPIC_BASE_URL=https://api.kourichat.com ANTHROPIC_API_KEY=your_kouri_token claudeMethod 2: Permanent Configuration (Recommended)
Add the environment variables to your shell configuration file:
For Zsh (macOS default):
echo 'export ANTHROPIC_BASE_URL="https://api.kourichat.com"' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY="your_kouri_token"' >> ~/.zshrc
source ~/.zshrcFor Bash:
echo 'export ANTHROPIC_BASE_URL="https://api.kourichat.com"' >> ~/.bashrc
echo 'export ANTHROPIC_API_KEY="your_kouri_token"' >> ~/.bashrc
source ~/.bashrcFor Windows PowerShell:
[System.Environment]::SetEnvironmentVariable('ANTHROPIC_BASE_URL', 'https://api.kourichat.com', 'User')
[System.Environment]::SetEnvironmentVariable('ANTHROPIC_API_KEY', 'your_kouri_token', 'User')After configuration, restart your terminal.
Start Using
After configuration, simply run the following command in your terminal to start Claude Code:
claudeYou can also use other commands:
# View help
claude --help
# Ask a question directly
claude "How do I read a JSON file in Python?"
# Start an interactive session in the current directory
claudeCommon Environment Variables
| Environment Variable | Description |
|---|---|
ANTHROPIC_BASE_URL | API base URL, set to https://api.kourichat.com |
ANTHROPIC_API_KEY | Your Kouri Ai token |
ANTHROPIC_MODEL | Model to use, e.g., claude-sonnet-4-5-20250929 |
Make sure to replace your_kouri_token with your actual Kouri Ai API token.
More Information
For more advanced features and usage, please refer to the Claude Code Official Documentation.