DeepAnima
Kouri AiApp Integration

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-code

Configuration 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 claude

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 ~/.zshrc

For Bash:

echo 'export ANTHROPIC_BASE_URL="https://api.kourichat.com"' >> ~/.bashrc
echo 'export ANTHROPIC_API_KEY="your_kouri_token"' >> ~/.bashrc
source ~/.bashrc

For 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:

claude

You 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
claude

Common Environment Variables

Environment VariableDescription
ANTHROPIC_BASE_URLAPI base URL, set to https://api.kourichat.com
ANTHROPIC_API_KEYYour Kouri Ai token
ANTHROPIC_MODELModel 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.

On this page