yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK X5 Board📖
1.Introduction to RDK X5 board
  • 1.Introduction to RDK X5 board
  • 2.Write system file
  • 3.Hardware interface description
  • 4.Install case and other accessories
  • 5.Use 7-inch display
2.Basic settings course
  • 1.Network configuration
  • 2.Remote login
  • 3.Update system
  • 4.srpi-config user guide
  • 5.config. txt configuration file
  • 6.Self-startup setting
  • 7.RDK exclusive command usage
  • 8.Linux command usage
  • 9.GPIO readwrite operation
  • 10.Image classification algorithm
  • 11.Use USB camera
  • 12.Use MIPI camera
  • 13.Binocular camera depth algorithm
3.Basic development course
C language
  • 1.Camera image display
  • 2.Local save camera images
  • 3.Camera image encoding
  • 4.Video file decoding
  • 5.RTSP streaming decoding
  • 6.VPS scaling example
  • 7.Target detection algorithm-fcos
  • 8.Target detection algorithm-YOLOv5s
  • 9.Using CAN
Python
  • 0.ReadMe
  • 1.Using GPIO
  • 2.Using PWM
  • 3.Using Serial port
  • 4.Using I2C
  • 5.Using SPI
4.ROS expansion board
Python basic control
  • 0.Bind PCB port devices
  • 1.Install the Rosmaster driver library
  • 2.Buzzer whistle
  • 3.Control PWM servo
  • 4.RGB colorful light bar special effects display
  • 5.Control the forward and reverse rotation of the motor
  • 6.Control the movement of the robot
  • 7.Control Serial Servo
  • 8.Update firmware of expansion board
  • 9.Drive OLED
ROS2 robot control
  • 1.Function package usage process
  • 2.Robot information release
  • 3.Robot keyboard control
  • 4.Robot state estimation
  • 5.Robot calibration
  • 6.URDF model
5.T-MINI PLUS Lidar
  • 0.Preparation before use(Must read)
  • 1.Environment setup
  • 2.T-MINI PLUS LiDAR drive
  • 3.Handheld LiDAR mapping
6.AI VIEW Depth camera
AI VIEW Depth camera use
  • 1.AI VIEW Depth camera use
  • 2.Camera internal parameter calibration
  • 3.Color tracking
  • 4.KCF object tracking
Mediapipe functions
  • 1.Hand detection
  • 2.Attitude detection
  • 3.Overall inspection
  • 4.Facial detection
  • 5.Facial recognition
OpenCV series courses
  • 1.ROS+opencv application
  • 2.QR code creation and recognition
  • 3.AR vision
7.Offline AI model course
Offline-LLM-Text-Interaction
  • 0.AI-Large-Model-Image-Description
  • 1.AI-Large-Model-Environment-Deployment
  • 2.LLM-Conversation-Platform-Installation
  • 3.Meta-AI-Llama3.2-Model
  • 4.Alibaba-Cloud-Qwen3-Model
  • 5.Microsoft-Phi-4-mini-Model
  • 6.DeepSeek-DeepSeek-R1-Model
  • 7.Alibaba-Cloud-Qwen2.5vl-Vision-Multimodal-Model
  • 8.Google-Gemma3-Vision-Multimodal-Model
  • 9.Llava-Vision-Multimodal-Model
  • 10.MiniCPM-V-Vision-Multimodal-Model
  • 11.Multimodal-Text-to-Image-Application
  • 12.Multimodal-Video-Analysis-Application
  • 13.Multimodal-Visual-Understanding-Application
  • 14.Multimodal-Visual-Localization-Application
  • 15.Multimodal-Table-Scanning-Application
  • 16.Multimodal-Autonomous-Agent-Application
Offline-LLM-Voice-Interaction
  • 0.Voice-Interaction-Hardware-Connection-Must-Read
  • 1.Offline-Speech-to-Text-ASR
  • 2.Offline-Text-to-Speech-TTS
  • 3.AI-Large-Model-Voice-Interaction
  • 4.Multimodal-Visual-Understanding-Voice-Interaction
  • 5.Multimodal-Text-to-Image-Application
  • 6.Multimodal-Video-Analysis-Application
  • 7.Multimodal-Visual-Localization-Application
  • 8.Multimodal-Table-Scanning-Application
  • 9.Multimodal-Autonomous-Agent-Application
  • 10.AI-Large-Model-Offline-Voice-Assistant
8.Online AI model course
Online-LLM-Text-Interaction
  • 1.OpenRouter-Large-Model-API-Aggregation-Platform
  • 2.Multimodal-Visual-Understanding-Application
  • 3.Multimodal-Visual-Localization-Application
  • 4.Multimodal-Table-Scanning-Application
  • 5.Multimodal-Autonomous-Agent-Application
Online-LLM-Voice-Interaction
  • 0.Voice-Interaction-Hardware-Connection-Must-Read
  • 1.Online-Speech-to-Text-ASR
  • 2.Online-Text-to-Speech-TTS
  • 3.AI-Large-Model-Voice-Interaction
  • 4.Multimodal-Visual-Voice-Interaction
  • 5.Multimodal-Visual-Localization-Application
  • 6.Multimodal-Table-Scanning-Application
  • 7.Multimodal-Autonomous-Agent-Application
  • 8.AI-Large-Model-Online-Voice-Assistant
9.YOLO26 tutorials
  • 01.YOLO environment construction
  • 02.CLI use
  • 03.Object detection
  • 04.Instance segmentation
  • 05.Pose estimation
  • 06.Image classification
  • 07.Oriented bounding box object detection
  • 08.Model conversion
  • 09.Dataset annotation
  • 10.Model training conversion
  • 11.Model prediction
10.OpenClaw Deployment and Basic Usagenew
  • 01.OpenClaw Quick Start
  • 02.OpenClaw Deployment
  • 03.OpenClaw WhatsApp Plugin Application
  • 04.OpenClaw WebChat Interaction
  • 05.OpenClaw TUI Interaction
  • 06.OpenClaw Tools Introduction
  • 07.OpenClawGate Gateway User Manual
  • 08.OpenClaw Features Overview
  • 09.OpenClawClawHub Introduction (Skill Installation)
  • 10.OpenClaw Application - File Management
  • 11.OpenClaw Application - Camera
  • 12.OpenClaw Application - Browser Control
  • 13.OpenClaw Application - Script Execution
  • 14.OpenClaw Application - AI Programming (Peripheral & GPIO Control)
  • 15.OpenClaw Application - Dedicated AI Assistant
  • 16.OpenClaw Web Search Capability Configuration
11.OpenClaw Advanced Developmentnew
1.Preparation Before Use
  • 01. Peripheral Hardware Configuration
  • 02. OpenClaw API-KEY Configuration
  • 03. OpenClaw Model Switching
  • 04. OpenClaw Prompts
  • 05. AI Voice Interaction Configuration
  • 06. Three Dialogue Configuration Tests
2.OpenClaw AI Programming Peripheral Control
  • 1. Servo Control
  • 2. RGB Strip
  • 3. OLED Display
  • 4. Temperature and Humidity Sensor
  • 5. Camera Application
  • 6. AI Script Peripheral Control
3.OpenClaw Peripheral Integration Applications
  • 1. Plant Care Assistant
  • 2. AI Calorie Estimation
  • 3. AI Rock Paper Scissors Game
  • 4. AI Pet
  • 5. AI Weather Station
  • 6. Temperature and Humidity Dashboard
  • 7. Scheduled Tasks
12.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Humble
  • 3.ROS2 development environment
  • 4.ROS2 workspace
  • 5.ROS2 function package
  • 6.ROS2 node
  • 7.ROS2 topic communication
  • 8.ROS2 service communication
  • 9.ROS2 action communication
  • 10.ROS2 custom interface message
  • 11.ROS2 parameter service case
  • 12.ROS2 meta-function package
  • 13.ROS2 distributed communication
  • 14.ROS2 DDS
  • 15.ROS2 time related API
  • 16.ROS2 common command tools
  • 17.ROS2 rviz2 use
  • 18.ROS2 rqt toolbox
  • 19.ROS2 Launch startup file configuration
  • 20.ROS2 recording and playback tool
  • 21.ROS2 URDF model
  • 22.ROS2 Gazebo simulation platform
  • 23.ROS2 TF2 coordinate transformation
Download
  • System_File
  • Code
  • Tools
Download ZIP

Welcome to RDK X5 Board repository

02. OpenClaw API-KEY Configuration

openclaw api key configuration

OpenClaw API-KEY Configuration

OpenClaw API-KEY Configuration1. Course Overview1.1 Course Content2. API-KEY Application2.1 Recommended Model Service Providers3. Configuring OpenClaw API-KEY3.1 Configuration Methods3.2 Quick Configuration3.2.1 Configure baseUrl3.2.2 Fill in apiKey and baseUrl4. View Connected Model Status4.1 View the List of Configured Models4.2 Verify Configuration Success5. Other Access Methods (Advanced)5.1 CLI Command Configuration for API-KEY (Suitable for Beginners)5.2 Modify Configuration File (Recommended Method)Configuration File LocationEdit Configuration File6. Common Issues and Solutions6.1 Invalid API-KEY or Errors6.2 Unable to Access Model Service7. Course Summary

1. Course Overview

This course will detail how to configure the AI model API-KEY for OpenClaw, including the application process for API-KEYs, two configuration methods (CLI command configuration and configuration file modification), and how to verify if the configuration is successful. After completing this course, you will be able to successfully connect to and use various AI large model service providers.

1.1 Course Content

  • Understand the types of model service providers supported by OpenClaw
  • Master the method for applying for API-KEYs
  • Learn how to view and verify the status of connected models

2. API-KEY Application

2.1 Recommended Model Service Providers

  • Recommended for beginners: Refer to the accompanying tutorial [Chapter 8 Online AI Large Model Development] — [Online Large Models (Text Interaction)] — [2. Tongyi Qianwen Large Model] to apply for the corresponding model provider API-KEY.

  • OpenClaw supports numerous model service providers, including:

    • OpenAI - GPT series (API + Codex)
    • Anthropic - Claude series (API + Claude Code)
    • Google - Gemini series
    • Alibaba Cloud - Qwen Cloud, Tongyi Qianwen
    • DeepSeek - DeepSeek models
    • Zhipu AI - GLM models
    • Moonshot AI - Kimi + Kimi Coding
    • Ollama - Local models (cloud + local)
    • And many other service providers
  • You can freely choose a model service provider based on your actual needs and regional network policies, register on the corresponding official website, and apply for an API-KEY.

3. Configuring OpenClaw API-KEY

3.1 Configuration Methods

OpenClaw provides two ways to configure API-KEYs:

  1. CLI Command Configuration (suitable for beginners)

  2. Directly Modify Configuration File (suitable for developers)

    • Configuration file path: $HOME/.openclaw/openclaw.json

3.2 Quick Configuration

  • Suitable for users who want to get started quickly. You need to register for an Alibaba Cloud Bailian large model account and create an API-KEY first (refer to the accompanying tutorial [Chapter 8 Online AI Large Model Development] — [Online Large Models (Text Interaction)] — [2. Tongyi Qianwen Large Model]).
  • The factory-preset configuration file has already configured the Bailian model parameters; Simply fill in your API-KEY and baseUrl to start using it directly.
  • Open the OpenClaw configuration file:
xxxxxxxxxx
nano $HOME/.openclaw/openclaw.json
xxxxxxxxxx
nano $HOME/.openclaw/agents/main/agent/models.json

3.2.1 Configure baseUrl

  • Users need to configure the tongyi_base_url corresponding to their account. Go to the Model Service Platform Bailian Console to apply for an API key. Copy the API key and OpenAI-compatible address (Base URL), then fill them into the corresponding fields. image-20260529165252065

image-2026081016526666

3.2.2 Fill in apiKey and baseUrl

image-20260427175701480

  • After filling it in, press Ctrl+X, then press Y to confirm saving, and press Enter to exit.

 

4. View Connected Model Status

4.1 View the List of Configured Models

After configuration, you can use the following command to view the connected models:

xxxxxxxxxx
openclaw models list

image-20260527170731444

4.2 Verify Configuration Success

  1. Test Conversation

    xxxxxxxxxx
    openclaw tui

    Start the TUI interface, send a test message (e.g., "hello"), and confirm that the model responds normally.

image-20260527164855215

 

5. Other Access Methods (Advanced)

  • If you have your own model provider or need to access other model providers later, refer to the following tutorial.

5.1 CLI Command Configuration for API-KEY (Suitable for Beginners)

  1. Start Configuration Wizard

    xxxxxxxxxx
    openclaw onboard
  • Select [Yes] and press Enter.

image-20260427171151912

  • Select QuickStart for the configuration mode and press Enter.

image-20260427171417315

 

  1. Select Model Service Provider

    • Use the up and down arrows to select the service provider for which you have applied for an API-KEY, and press Enter to confirm. Here we take Alibaba Cloud Bailian model provider as an example; the configuration method for other model providers is the same.
    • Here select Custom Provider [Custom Provider]

    image-20260427171711888

    • Enter the base_url of the model provider.

image-20260427172302299

 

  1. Enter API-KEY
  • After selecting the provider, the system will prompt you to enter the corresponding API-KEY.

image-20260427172456361

  • Paste or type the API-KEY you applied for, and press Enter to confirm.

image-20260427172816515

  • Select OpenAI-compatible for the interface protocol.

image-20260427172908400

  1. Fill in the model name, taking MiniMax as an example.

image-20260427173143879

  • Endpoint ID is the model provider identifier and can be filled in freely.

image-20260427173335228

  • Model alias (optional) can be left blank.

image-20260427173502891

  1. Other Configurations
  • For other configuration items, select Skip for all as shown below; no configuration is needed.

image-20260427173738590

image-20260427173805504

image-20260427173838434

  • For Enable Hooks, press space to select Skip for now.

image-20260427173915965

  • Select Restart to restart the gateway and apply the configuration.

image-20260427174010877

  • Close the popped-up OpenClaw webpage.

 

5.2 Modify Configuration File (Recommended Method)

Configuration File Location

Configuration files are located at: $HOME/.openclaw/openclaw.json

xxxxxxxxxx
                       `$HOME/.openclaw/agents/main/agent/models.json`

Edit Configuration File

  1. Open Configuration File 1

    xxxxxxxxxx
    nano $HOME/.openclaw/openclaw.json
    # Or use your preferred editor, such as vim, code, etc.
  2. Add Model Provider Configuration

    Add or modify the models.providers section in the configuration file:

    xxxxxxxxxx
    {
      "models": {
        "providers": {
          "openai": {
            "apiKey": "OPENAI_API_KEY"
          },
          "anthropic": {
            "apiKey": "ANTHROPIC_API_KEY"
          },
          "google": {
            "apiKey": "GOOGLE_API_KEY"
          }
        }
      },
      "agents": {
        "defaults": {
          "model": {
            "primary": "openai/gpt-4"
          }
        }
      }
    }
  3. Open Configuration File 2

    xxxxxxxxxx
    nano $HOME/.openclaw/agents/main/agent/models.json
  4. Add Model Provider Configuration

    Add or modify as follows:

    image-20260527170136872

  5. Configuration Description

    • models.providers: Configure the API-KEYs for each model service provider.

      • openai.apiKey: OpenAI's API-KEY
      • anthropic.apiKey: Anthropic's API-KEY
      • google.apiKey: Google's API-KEY
    • agents.defaults.model.primary: Set the default model to use.

      • Format is provider/model_name, e.g., openai/gpt-4, anthropic/claude-3, google/gemini-pro
  6. Save and Exit

    • Be careful not to randomly delete periods or add other symbols when modifying.
    • Press Ctrl+O to save, Ctrl+X to exit (nano editor).
  7. Factory Default Bailian Configuration (Can be directly modified or referenced)

xxxxxxxxxx
"models": {
    "mode": "merge",
    "providers": {
    "bailian": {
      "baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
      "apiKey": "sk-a98b519b6bab4e35a7b82b4a95b8a4f6",
      "api": "openai-completions",
      "models": [
        {
          "id": "qwen3.5-plus",
          "name": "qwen3.5-plus",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 65536,
          "cost": {
            "input": 0,
            "output": 0,
            "cacheRead": 0,
            "cacheWrite": 0
          }
        },
        {
          "id": "MiniMax-M2.5",
          "name": "MiniMax-M2.5",
          "reasoning": false,
          "input": [
            "text"
          ],
          "cost": {
            "input": 0,
            "output": 0,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "contextWindow": 196608,
          "maxTokens": 32768
        },
        {
          "id": "glm-4.7",
          "name": "glm-4.7",
          "reasoning": false,
          "input": [
            "text"
          ],
          "cost": {
            "input": 0,
            "output": 0,
            "cacheRead": 0,
            "cacheWrite": 0
          },
          "contextWindow": 202752,
          "maxTokens": 16384,
          "compat": {
            "thinkingFormat": "qwen"
          }
          }
        ]
      }

 

6. Comm

Peripheral Hardware Configuration
OpenClaw Model Switching

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文