碳塑复材科技(郑州)有限公司
Section navigation

Claude Code Router

Configure 魔方AI as a custom API endpoint in Claude Code Router, select models, start the agent profile, and open Claude Code.

Follow these steps to add 魔方AI to Claude Code Router and start an agent with the custom provider.

1. Choose a Custom API Endpoint

Open Claude Code Router, select Other, and choose the option for a custom API endpoint.

Choose Other and a custom API endpoint in Claude Code Router

2. Configure the 魔方AI Provider

Enter the following values:

  • Provider Name: 魔方AI
  • API Endpoint: https://www.mofangai001.cn/v1
  • API Key: Obtain it from 魔方AI. The placeholder used in this guide is sk-your-api-key.

Enter the 魔方AI provider credentials

3. Select and Map Models

Select the models you want to use and adjust their mappings as needed. Keep each model ID consistent with the model name available to your 魔方AI token.

Select and map 魔方AI models

4. Continue from Let's Start

Go to Let's start, review the configuration, and click the button to continue.

Continue from the Let's start page

5. Start 魔方AI from Agent Config

Return to Agent Config, find 魔方AI, and click the start button on its right.

Start 魔方AI from Agent Config

6. Test in the Claude Window

After Claude Code Router opens the Claude window, send a message to verify that the configured model can respond successfully.

Test 魔方AI in the Claude window