1. Plugin Configuration
beeswitch docs
  • Plugin Configuration
    • API Relay Setup
    • Claude Code for VS Code Tutorial
    • Claude Code Installation and Usage Guide
    • Gemini CLI Configuration and Usage Guide
    • Codex CLI Configuration Guide
    • OpenCode Integration Configuration Guide
    • N8N Workflow Relay API Usage Guide
  • List Models
    • Models (list models)
      GET
  • OpenAI Format (Supports Major Official Provider Models)
    • Chat (Responses)
      • Create Web Search
      • Create Model Response (GPT-5 Reasoning Enabled)
      • Create Function Call
      • Create Model Response
      • Create Function Call
      • Create Model Response (Streaming)
      • Create Model Response (Control Reasoning Length)
    • ChatGPT APIs
      • ChatGPT Audio
        • Create Video
        • Speech-to-Text gpt-4o-transcribe
        • Create translation (not supported)
        • Speech-to-Text whisper-1
        • Speech-to-Text gpt-4o-transcribe
        • Create speech gpt-4o-mini-tts
        • Create translation (not supported)
      • ChatGPT Chat
        • List Models
        • Create Video with Image
        • Continuously modify and generate videos
        • Create chat picture recognition (streaming) best64
        • Official N test
        • Create Structured Output
        • Control Reasoning Effort
        • Create Chat Function Call
        • deepseek-ocr recognition
        • Create Chat Completion (Non-streaming)
      • ChatGPT Completions
        • Create Completion
    • Images
      • Modify pictures (images)
      • Create Chat Completion (Streaming)
      • Create chat completion qwen-mt-turbo
      • Create chat completion deepseek v3.1 thinking level (streaming)
    • Audio
      • Speech recognition(audio)
      • Speech synthesis (audio)
      • Official Function Calling
      • Create a chat creation graph (non-streaming)
    • Embeddings
      • Text Embeddings
  • Anthropic Format
    • Chat
      POST
    • Chat (prompt cache)
      POST
    • Streaming Response
      POST
    • Chat (Deep Reasoning)
      POST
    • Tool Calling (Function Call)
      POST
    • Tool Calling (MCP) - Pending Support
      POST
    • Analyze Image
      POST
  • Google Gemini APIs
    • Native Format
      • Text-to-Image (Aspect Ratio + Clarity Controls)
      • Generate Image
      • Text Generation
      • Text Generation (Streaming)
      • Text Generation + Reasoning (Streaming)
      • Image Generation
      • Formatted Output
      • Function Calling
      • Document Understanding
      • URL context [native format]
      • Code Execution
      • google search
      • Video Understanding
      • URL context
      • Video understanding-url [native format]
      • Imagen 4 under development
      • Audio Understanding
      • Embeddings
      • Chat
      • Edit Image
    • Image-to-Image Base64 Request (Officially Recommended)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Single Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-2.5-flash-image
      • Image Generation with gemini-2.5-flash-image (Aspect Ratio Control)
      • Image Understanding
    • Image-to-Image URL Request / OpenAI-style URL Request
      • Single Image-to-Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
    • Image-to-Image URL Request (Not Currently Supported)
      • Multi-Image Fusion with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
    • Image-to-Image URL Request, Gemini Format (Not Currently Supported)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Image Understanding
  • NanoBanana
    • Image-to-Image Base64 Request (Officially Recommended)
      • Multi-Image Fusion Generation with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Editing
      • Single Image with gemini-3-pro-image-preview (Aspect Ratio + Clarity Controls)
      • Image Generation with gemini-2.5-flash-image
      • Image Generation with gemini-2.5-flash-image (Aspect Ratio Control)
      • Image Understanding
    • Gemini Request Format
      • Generate Image
      • Edit Image
    • OpenAI Request Format
      • Edit Image
      • OpenAI Image Format
  • Midjourney Format
    • Task Query API
    • Upload Image
    • Get Seed
    • Submit Imagine Task
    • Query Tasks by ID List
    • Face Swap
    • Execute Action
    • Submit Blend Task
    • Submit Describe Task
    • Submit Modal
    • Refresh URL
    • Edit Image
    • Query Task Status by Task ID
    • Get Seed for Task Image
  • Doubao Video Generation
    • Text-to-Video Example
    • Image-to-Video - First Frame
    • seedance-lite - First and Last Frames
    • Image-to-Video - Base64 Encoding
    • seedance-lite - Reference Image
    • Query Single Task
    • Query video generation task list-default
    • Query video generation task list - search multiple task IDs
  • Doubao Image Generation
    • doubao-seededit-3-0-i2i-250628
    • doubao-seedream-4-0-250828 - Text-to-Image
    • doubao-seedream-4-0-250828 - Image-to-Image
    • doubao-seedream-4-0-250828 - Multi-Image-to-Image
  • Jimeng AI
    • Jimeng AI - Image Generation
      • seedream-4.5
      • seedream-4.5 - Text-to-Image
      • seedream-4.5 - Image-to-Image
      • seedream-4.5 - Multi-Image-to-Image
    • Jimeng AI - Video Generation
      • Unified Task Submission API
      • Unified Query API
  • Rerank Models
    • Rerank
  • Text-to-Music (Suno)
    • Task Submission
      • Generate Song (Inspiration Mode)
      • Generate Song (Custom Mode)
      • Generate Song (Continuation Mode)
      • Generate Song (Singer Style)
      • Generate Song (Remix Uploaded Song)
      • Generate Song (Song Concatenation)
      • Generate Lyrics
      • Song Concatenation
    • Query APIs
      • Fetch Tasks in Batch
      • Query Single Task
  • Veo Video Generation
    • Latest Veo Video Generation (Recommended First)
      • Upload Image (Valid for One Day)
      • Create Video Generation Task - Text Only
      • Create Video Generation Task with Reference Image
      • Query Task Status
    • OpenAI Video Format (Recommended)
      • OpenAI Create Video with Image
      • OpenAI Query Task
      • OpenAI Download Video
    • Unified Video Format (Pending Unification)
      • Create Video
      • Create Video with Image
      • Query Task
      • Create Video (Reference Image)
  • Sora Video Generation
    • Official OpenAI Video Format (Recommended)
      • sora-2/sora-2-pro
        • OpenAI Query Task
        • OpenAI Download Video
        • OpenAI Create Video with Image
        • OpenAI Create Video (with Character)
        • OpenAI Edit Video
    • Chat Format
  • Kling (Kuaishou)
    • Text-to-Video
    • Image-to-Video
    • Query tasks (free)
  • Wan (Qwen)
    • Create Video with Image (Wan)
    • Query Video (Wan)
  • MinMax Video Generation
    • Text-to-Video Generation Task (MinMax)
    • Image-to-Video Task (MinMax)
    • Query Video Generation Task Status (MinMax)
    • Video Download (MinMax)
  • Vidu Video Generation
    • Vidu Generate Video
    • Vidu Query
  1. Plugin Configuration

Claude Code Installation and Usage Guide

Claude Code installation and usage tutorial#

Claude Code is a powerful AI programming assistant that allows you to program collaboratively with AI directly in the terminal. This tutorial will guide you through the installation and configuration process.

📋 System Requirements#

Supported operating systems: macOS 10.15+, Ubuntu 20.04+/Debian 10+ or Windows 10+ (with WSL or Git for Windows)
Hardware: 4GB+ RAM
Software: Git (required for Windows installation), Node.js 18+ (required for NPM installation only)
Network: Network connections in Anthropic supported countries

🚀 Install Claude Code#

Native installation is the most recommended installation method and offers several advantages:
a self-contained executable file
No Node.js dependency
Improved auto-updater stability
If you have an existing installation of Claude Code, use claude install to migrate to a native binary installation.
Windows system installation steps:

Step 1: Install Git For Windows#

Installing Claude Code natively on Windows requires Git Bash
Git For Windows download address: https://git-scm.com/install/windows
Download the corresponding version of the system and install it with the default options. Verify the installation command:

Step 2: Install Claude Code#

Then open PowerShell or CMD terminal and run the following installation command
Windows PowerShell installation command:
Windows CMD installation command:

Step 3: Add PATH environment variable#

The directory where the Claude executable file is located needs to be added to the system PATH, otherwise PowerShell currently cannot recognize the claude command. Reference path:
C:\Users\your-username\.local\bin
Please add it through the following steps: Open system properties → Environment variables → Edit user PATH → New → Add the Claude installation path above.
Picture.png
After completion, restart the PowerShell terminal or computer
macOS/Linux system installation steps:
macOS, Linux, WSL installation instructions:
Homebrew (macOS, Linux) installation command:
💡 Tip: If you have installed Node.js 18.0 or higher, you can also use NPM to install it
NPM installation instructions:
Finally, enter the command in the new terminal to verify whether the installation is successful:

⚙️ Configure and start using#

You need to prepare two important configuration items:
Configuration itemsDescriptionObtain method
ANTHROPIC_AUTH_TOKENAPI authentication tokenAfter registration, click Add Token on the API Tokens page to obtain it (starting with sk-)
ANTHROPIC_BASE_URLAPI service addressUse __P0__ (same as the main site address)
📝 Recommended settings when creating a token:
Name: Name it whatever you want
Quota: Set to unlimited quota
Grouping: User grouping or Default grouping
Other options: keep default settings

Then create or modify the settings.json configuration file. The configuration file is located at:#

• Windows: C:\Users\user folder\ .claude\settings.json
• Mac: ~/.claude/settings.json or .claude/settings.json
• Linux: ~/.claude/settings.json
Write the following configuration information, replace ANTHROPIC_AUTH_TOKEN with your API token, ANTHROPIC_MODEL can be replaced with other model IDs you need

Ubuntu/macOS can directly create or modify vim settings.json files through vi or vim commands.#

Enter Claude in your project directory to start and run Claude Code:#

First run configuration#

Once launched, you will see the following configuration steps:
1.
Select Theme → Select your favorite theme + Press Enter
2.
Safety Instructions → Confirm safety instructions + press Enter
3.
Terminal Configuration → Use default configuration + press Enter
4.
Working Directory Trust → Trust current directory + press Enter
✨ **Congratulations! ** Now you can start coding with your AI programming partner!

❓ FAQ#

Q: Encountered "Invalid API Key · Please run /login" error?#

A: This indicates that Claude Code did not detect the environment variable. Please check:
Are ANTHROPIC_AUTH_TOKEN and ANTHROPIC_BASE_URL set correctly?
Whether the environment variable value is correct (the token starts with sk-)
If a permanent configuration is used, whether the terminal is restarted

Q: PowerShell cannot install scripts and encounter execution policy errors?#

A: Run as administrator option Start PowerShell and run this line: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

Q: Why is the "offline" status displayed?#

A: Claude Code determines the network status by connecting to Google. Displaying "offline" does not affect normal use, it just indicates that you cannot connect to Google.

Q: Why does Fetch fail when browsing the web?#

A: Claude Code needs to call the Claude service for security check before accessing the web page. You need:
Maintain a stable international internet connection
Use global proxies when necessary

Q: The request always shows "fetch failed"?#

A: The problem may be caused by the network environment. Solution:
1.
Try using a proxy tool

Q: How to handle API errors?#

A: It may be caused by the instability of the forwarding agent. Suggestions:
Exit Claude Code (Ctrl+C)
Rerun the claude command
If the problem persists, please try again later

Q: Web page login error?#

A: Try clearing the cookies on this site and logging in again.

🔗 Related links#

Claude Code official document
Node.js official website

💡 Tip: If you encounter other problems, please check the official documentation or contact technical support.
Modified at 2026-07-09 10:12:46
Previous
Claude Code for VS Code Tutorial
Next
Gemini CLI Configuration and Usage Guide
Built with