Hướng dẫn tích hợp

Claude Code integration

Use MoLoop from Claude Code and Anthropic-compatible clients.

Features

FeatureDescription
Agentic codingRead repositories, edit files, run commands, and iterate to finish tasks.
Full repository contextUnderstand project structure, dependencies, and conventions.
Terminal-native and GitWorks with any editor workflow and supports commits, branches, and merges.
Tool calls and MCPConnect to databases, APIs, browsers, and external tools.
Multiple models and file inputSwitch models through MoLoop and read images, PDFs, and other files.

Configure with CC Switch

CC Switch can configure the API endpoint and provider name in one step.

Configure Claude Code with CC Switch

Import the current MoLoop Anthropic endpoint and API key into the Claude configuration in CC Switch.

Endpoint: https://api.moloop.io

text
cc-switch provider add

Manual configuration

Claude Code uses Anthropic Messages. The MoLoop Anthropic root does not include /v1/messages; the client constructs that request path.

Write the configuration to settings.json so it survives terminal restarts. Windows commonly uses %APPDATA%\claude\settings.json; macOS/Linux uses ~/.claude/settings.json.

json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.moloop.io",
    "ANTHROPIC_API_KEY": "YOUR_API_KEY",
    "MAX_THINKING_TOKENS": "0",
    "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
  }
}

Environment variables

For a temporary test, set the variables in the current shell; they expire when the terminal closes.

Windows

powershell
$env:ANTHROPIC_BASE_URL="https://api.moloop.io"
$env:ANTHROPIC_API_KEY="YOUR_API_KEY"
$env:ANTHROPIC_MODEL="YOUR_MODEL_ID"

macOS

bash
export ANTHROPIC_BASE_URL="https://api.moloop.io"
export ANTHROPIC_API_KEY="YOUR_API_KEY"
export ANTHROPIC_MODEL="YOUR_MODEL_ID"

Linux

bash
export ANTHROPIC_BASE_URL="https://api.moloop.io"
export ANTHROPIC_API_KEY="YOUR_API_KEY"
export ANTHROPIC_MODEL="YOUR_MODEL_ID"

Install Claude Code

Claude Code requires Node.js 18 or later. On Windows, install Git Bash and launch it from a Unix-like shell.

bash
npm install -g @anthropic-ai/claude-code

Ready to get started?

After configuring the key, ask Claude Code to summarise a repository or explain a file before authorising writes, commands, or external tools.

Sẵn sàng bắt đầu?

Lấy API key và bắt đầu sử dụng MoLoop trong các công cụ này.