1. 开发工具接入
RezeAI
  • 快速开始
    • Product Introduction
    • BaseUrl
    • Generate calling code quickly using AI
    • Plugin Configuration Guide
    • Large Model Support and Channel Capability Description
    • Claude code error code explanation
  • 开发工具接入
    • OpenClaw
    • Claude Code
    • OpenCode
    • Codex
    • Gemini CLI
  • 接口说明
    • Models
      • List models
        • Native OpenAI format
        • Native Gemini format
    • Images
      • Native Gemini format
        • OpenAI chat format
        • Gemini native format
      • Native OpenAI format
        • Generate image
        • Edit image
    • Chat
      • Native OpenAI format
        • Responses format
      • Native Claude format
    • Audio
      • Native OpenAI format
        • Audio transcription
        • Audio translation
        • Text-to-speech
      • Native Gemini format
    • Wanxiang 2.7 Images
      • Wanxiang 2.7 text-to-image (sync)
      • Wanxiang 2.7 image edit (async polling)
    • GeminiVeo
      • Gemini Veo
        • Create video task
        • Create video task (/video/generations)
      • Task query
        • Query video task
        • Query video task (/video/generations)
        • Proxy-download the video of a completed task
    • Seedance Asset Library
      • Asset groups
        • ModelArk asset Universal OpenAPI (official Query style)
        • Create asset group
        • List asset groups
        • Get asset group details
        • Update asset group
        • Delete asset group
      • Assets
        • Create asset (upload URL)
        • List assets
        • Get asset details
        • Update asset
        • Delete asset
      • Live person verification
        • Create live person H5 verification session
        • Query live person verification result
    • Sora
      • Sora 2
        • Remix video
    • Kling
      • Text-to-video
        • Kling text-to-video
      • Image-to-video
        • Kling image-to-video
      • Task query
        • Query text-to-video task
        • Query image-to-video task
    • Jimeng
      • Jimeng official API
        • Jimeng official submit/query (distinguished by Action)
    • Embeddings
      • Native OpenAI format
      • Native Gemini format
    • Completions
      • Native OpenAI format
    • Realtime
      • Native OpenAI format
    • Rerank
      • Document reranking
    • Moderations
      • Native OpenAI format
    • 数据模型
      • Schemas
        • ModelsResponse
        • ToolCall
        • GeminiModelsResponse
        • ChatCompletionResponse
        • CompletionRequest
        • CompletionResponse
        • ResponsesResponse
        • ClaudeRequest
        • ClaudeMessage
        • ClaudeResponse
        • EmbeddingResponse
        • ImageResponse
        • AudioTranscriptionResponse
        • RerankResponse
        • ModerationRequest
        • ModerationResponse
        • GeminiRequest
        • GeminiResponse
      • Model
      • Usage
      • SoraVideoTaskCreated
      • KlingErrorResponse
      • JimengVideoTaskCreated
      • HailuoVideoTaskCreated
      • ViduVideoTaskCreated
      • GeminiVeoVideoTaskCreated
      • VertexVeoVideoTaskCreated
      • HappyHorseMediaItem
      • MediaItem
      • KlingTaskCreated
      • HappyHorseVideoTaskCreated
      • Message
      • SoraErrorResponse
      • KlingVideoTaskStatus
      • JimengErrorResponse
      • HailuoErrorResponse
      • ViduErrorResponse
      • ListFilterBase
      • GeminiVeoErrorResponse
      • VertexVeoErrorResponse
      • WanVideoTaskCreated
      • HappyHorseVideoTaskStatus
      • ArkListFilterBase
      • MessageContent
      • JimengOfficialSubmitRequest
      • ErrorResponse
      • ListAssetGroupsRequest
      • HappyHorseErrorResponse
      • SeedanceErrorResponse
      • Tool
      • ImageGenerationResponse
      • WanImageGenerationResponse
      • ListAssetsRequest
      • WanErrorResponse
      • GetAssetRequest
      • GetAssetGroupRequest
      • ChatCompletionRequest
      • UpdateAssetGroupRequest
      • UpdateAssetRequest
      • DeleteAssetRequest
      • ResponseFormat
      • DeleteAssetGroupRequest
      • ResponsesRequest
      • GatewayError
      • ArkGatewayError
      • EmbeddingRequest
      • SpeechRequest
      • RerankRequest
      • VideoRequest
      • VideoResponse
      • VideoTaskResponse
      • VideoTaskMetadata
      • VideoTaskError
      • OpenAIVideoError
      • HappyHorseVideoRequest
      • SeedanceVideoRequest
      • ProjectName
      • WanVideoRequest
      • ArkProjectName
      • SoraVideoRequest
      • KlingVideoRequest
      • JimengVideoRequest
      • HailuoVideoRequest
      • ViduVideoRequest
      • GeminiVeoVideoRequest
      • VertexVeoVideoRequest
      • CreateAssetGroupRequest
      • Wan27ImageRequest
      • SeedanceMetadata
      • VideoTaskCreated
      • CreateAssetRequest
      • Wan27ImageEditRequest
      • SeedanceVideoTaskCreated
      • SoraVideoTaskStatus
      • JimengVideoTaskStatus
      • HailuoVideoTaskStatus
      • ViduVideoTaskStatus
      • GeminiVeoVideoTaskStatus
      • VertexVeoVideoTaskStatus
      • VideoTaskStatus
      • SeedanceVideoTaskStatus
      • WanVideoTaskStatus
      • ListAssetsFilter
      • ArkListAssetsFilter
      • JimengOfficialGetResultRequest
      • CreateVisualValidateSessionRequest
      • GetVisualValidateResultRequest
      • UpstreamResultEnvelope
      • ArkUpstreamResultEnvelope
  1. 开发工具接入

Claude Code

Claude Code Integration with RezeAI Tutorial#

Claude Code is an official terminal-based intelligent coding tool from Anthropic. It allows you to perform tasks such as code generation, reading local files, debugging, and refactoring directly from the command line using natural language commands.
By integrating with RezeAI and modifying environment variables, you can replace Claude Code's default official API with RezeAI, thus enjoying a more stable and cost-effective API service.

I. Preparations Before Integration#

Before starting, please prepare the following two core configuration details. Please log in to the RezeAI console to obtain your exclusive key:
| Configuration Items | Recommended Content | Notes |
| :--- | :--- | :--- |
| API Key | sk-xxxxxxxxxxxxxxxx | Enter the console key |
| Base URL | https://www.rezeai.com | Do not include the /v1 suffix |

II. Installing Claude Code#

Please ensure your computer has Node.js (version 18 or higher) installed. Open a terminal (Windows users must use PowerShell). You can first run node --version to check your current environment.
If your environment does not have Node 24, click to download

Then run the following commands in sequence:#

1. Basic Installation#

2. Upgrade to Native Installation Package (Extremely Important)#

The official Claude Code installation has now switched to Native installation mode. To avoid subsequent errors, please run the following command immediately after completing the basic installation:
Note: After successful installation, the system will display a green message: Claude Code successfully installed!.

III. Windows User-Specific Troubleshooting Guide#

Windows' strict security policies usually block the execution of Claude Code. If you are a Windows user, please be sure to perform the following operations before configuration (Mac/Linux users can skip this step):

1. Remove Script Execution Restrictions#

Run the following command in PowerShell. If prompted to change the execution policy, enter Y and press Enter to confirm:
Note to avoid pitfalls: If this step is not performed, running claude will result in a red error message, indicating that script execution is prohibited on this system.

2. Resolve the "Unable to recognize claude" error#

If you enter claude and receive a "command not found" error, it means the installation path was not automatically added to the environment variables.
Press the Win key to search for "environment variables," add the path C:\Users\your username\.local\bin to the current user's Path variable, and then restart PowerShell.

IV. Configure and Start RezeAI#

Claude Code relies heavily on environment variables to recognize custom agents. Please ensure that setting variables and running commands are done in the same terminal window. **

Method 1: Temporary Configuration (Recommended for initial testing)#

Open Terminal (Windows requires PowerShell), paste the following code line by line in sequence and press Enter:
Windows (PowerShell):
macOS / Linux:

Method 2: Permanent Configuration (Permanent Effect, Recommended)#

If you want to be able to use it by simply typing claude every time you open the Terminal, without having to type code to set variables each time, please configure the system's global environment variables:
Windows: In System "Environment Variables" -> In "User Variables," create two new variables: ANTHROPIC_AUTH_TOKEN corresponding to your Key; and ANTHROPIC_BASE_URL corresponding to https://api.rezeai.com. Restart the terminal after configuration.
Mac/Linux: Add the export statement to your ~/.zshrc or ~/.bashrc file and execute source ~/.zshrc.

V. How to Test Success?#

When you type claude in the terminal with the environment variables set and press Enter:
1.
The system will no longer display the red "Not logged in · Please run /login" message.
2.
You will directly enter the interactive interface with the > prompt.
3.
Enter a simple test question, for example: Please help me write a Hello World program using Python.
4.
If Claude can output code normally, congratulations, the RezeAI integration is completely successful!

VI. Frequently Asked Questions (FAQ)#

Q1: Error message: Your credit balance is too low to access the Anthropic API.
1.
Your RezeAI account may be out of balance: The token limit corresponding to the sk-... key you entered may have been exhausted. Recharge your account.
2.
If your RezeAI account has a balance, you can try changing the token group or model.
Changing the token group: On the console token page, click [Edit], switch the token group, and then submit.
Changing the model: In the claudecode interface, enter:
``shell
/model gpt-5.4

- (You can replace gpt-5.4 with any of the numerous models supported in the console)

Q2: Why am I still getting the message "Not logged in / Please run /login"?

- Check if the variable name is ANTHROPIC_AUTH_TOKEN.

- Most common reason: Environment variables only take effect in a single window. You might have set the variable in window A, but then run Claude in a new window B. Please ensure you operate within the same window.

Q3: Should I include /v1 in the Base URL?

- Do not include /v1. Under the current RezeAI interface specifications and the new logic of the Claude Code, please strictly enter https://api.rezeai.com.

Q4: What if I accidentally entered /login?

- /login is used to log in to the official Anthropic account. If you are using RezeAI, please do not use this command. If you accidentally enter the login screen, simply press the Esc key to exit; the system will automatically return and read your environment variables.
修改于 2026-08-04 13:19:08
上一页
OpenClaw
下一页
OpenCode
Built with