MiniMax Token Plan Tool for Openclaw

A lightweight JavaScript implementation for MiniMax API integration providing web search, vision-language analysis, and quota management.

yorch233
v1.1.5
Mar 27, 2026
0
1.8k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install minimax-token-plan-tool

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install minimax-token-plan-tool using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is MiniMax Token Plan Tool?

The MiniMax Token Plan Tool is a high-performance, native JavaScript skill designed to extend the capabilities of AI agents within the Openclaw Skills ecosystem. By bypassing the need for external MCP servers, this tool offers a low-latency connection to official MiniMax APIs, enabling agents to perform complex tasks without subprocess overhead.

This skill provides developers with a streamlined way to leverage official MiniMax features like web search and multi-modal image understanding. It ensures that agents remain efficient while gaining access to powerful external data sources and visual processing units. Using this within Openclaw Skills ensures a seamless developer experience with minimal configuration requirements.

MiniMax Token Plan Tool Use Cases

  • Executing real-time web searches to provide up-to-date information to end-users.
  • Analyzing local or remote images to extract textual descriptions or identify objects using VLM.
  • Monitoring API quota and token usage to prevent service interruptions during long-running agent tasks.
  • Integrating search capabilities into automated workflows without the complexity of a full MCP runtime.

How MiniMax Token Plan Tool Works

  1. The Openclaw Skills environment loads the necessary environment variables, including the MiniMax API key and host URL.
  2. The agent invokes the JavaScript tool script using Node.js for specific tasks like searching or vision analysis.
  3. The tool performs direct HTTPS requests to the official MiniMax API endpoints (either Mainland China or Global).
  4. Image data is automatically handled, converting local files or remote URLs into base64 data for API consumption.
  5. The structured JSON response is returned to the agent for further processing or user display.

MiniMax Token Plan Tool Setup

Configure your environment by adding your credentials to your ~/.openclaw/.env file. You will need a valid MiniMax Token Plan API key from the official platform.

# ~/.openclaw/.env
MINIMAX_API_KEY="sk-your-key"

# Choose the host based on your subscription location
# China Mainland
MINIMAX_API_HOST="https://api.minimaxi.com"
# or Global
MINIMAX_API_HOST="https://api.minimax.io"

To verify tool registration and discovery, run the following command:

node minimax_token_plan_tool.js tools

MiniMax Token Plan Tool Data Schema & Taxonomy

The skill uses structured JSON for all inputs and outputs to ensure compatibility within the Openclaw Skills framework.

Feature Input Parameters Primary Output Keys
Web Search query (string) results, related_searches
Image Vision image_source, prompt analysis, success
Quota Check None remains, weekly_remains_time

The Vision tool supports multiple formats including JPEG, PNG, WebP, and GIF, and handles both local paths (using the @ prefix) and remote HTTP/HTTPS URLs.

MiniMax Token Plan Tool Advanced Features

  • Dual-region support allowing users to switch between China Mainland and Global API hosts dynamically via environment variables.
  • Direct local-to-base64 conversion for image understanding, reducing the need for temporary file hosting or external storage.
  • Built-in security restrictions for remote image fetching to prevent unauthorized access to private networks or unsupported ports.
  • Quota monitoring with UTC+0 time formatting for precise tracking of Token Plan remains across multiple model types.
  • Zero-dependency architecture ensuring maximum compatibility across various Node.js environments without extra package management overhead.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins node
Github Stars: 0
forks: 0

Featured*