Kling 4.0 is LIVE — Unbelievably Real Video | Try Now →
Agent Setup

Connect MiniMax Mini-Agent to WaveSpeed LLM API

Copy the recommended ~/.mini-agent/config/config.yaml setup for MiniMax Mini-Agent, route requests to /v1/chat/completions, and verify local agent calls in WaveSpeed Logs.

MiniMax's open-source agent that can use any OpenAI-compatible endpoint.

Config file

~/.mini-agent/config/config.yaml

Protocol

OpenAI-compatible chat completions

Endpoint

/v1/chat/completions

Manual setup

1

Create a WaveSpeed access key

2

Export the required key locally

3

Paste config into~/.mini-agent/config/config.yaml

4

Run mini-agent and check Logs

OpenAI-compatible chat completions

Usage appears in Dashboard and Logs

Switch models without rewriting agent code

One-command setup

Configures MiniMax Mini-Agent, checks that it works, and backs up your previous settings. Add --undo to restore them.

  1. 1

    Install the WaveSpeed CLI

    npm install -g @wavespeed/cli
  2. 2

    Sign in

    wavespeed login
  3. 3

    Configure MiniMax Mini-Agent

    wavespeed setup miniagent

No Node.js? See other install options

Manual setup

Edit ~/.mini-agent/config/config.yaml
# File: ~/.mini-agent/config/config.yaml
api_key: "wsk_live_..."
api_base: "https://llm.wavespeed.ai/v1"
model: "deepseek/deepseek-v4.1-flash-1017"
provider: "openai"
Replace wsk_live_... with your real WaveSpeed API key before saving this config file.

Agent integration guide

Use MiniMax Mini-Agent with WaveSpeed LLM API

This guide shows how to connect MiniMax Mini-Agent to WaveSpeed AI with ~/.mini-agent/config/config.yaml, OpenAI-compatible chat completions, /v1/chat/completions, base URL https://llm.wavespeed.ai/v1, and default model deepseek/deepseek-v4.1-flash-1017. Copy the configuration above, export your API key, run the agent, then verify requests in Logs.

1

Create a WaveSpeed access key

2

Export the required key locally

3

Paste config into

~/.mini-agent/config/config.yaml
4

Run mini-agent and check Logs

What this MiniMax Mini-Agent setup configures

Protocol

OpenAI-compatible chat completions

Endpoint

/v1/chat/completions

Model

deepseek/deepseek-v4.1-flash-1017

The copy-ready configuration above is the only MiniMax Mini-Agent file you need to edit for the recommended setup: ~/.mini-agent/config/config.yaml. Keep the API key in your shell environment so it is not committed to a repository.

Troubleshooting

The API key is not being picked up

Export WAVESPEED_API_KEY in the same shell where you run MiniMax Mini-Agent. If you use a shell profile, reload the terminal before starting the agent.

Requests fail with a protocol or endpoint error

Check that MiniMax Mini-Agent is using OpenAI-compatible chat completions and endpoint /v1/chat/completions. Protocol mismatches are the most common cause of 404 or payload errors.

The selected model does not work

Confirm the model id exists in WaveSpeed Models, then paste the exact id into ~/.mini-agent/config/config.yaml. You can start with the default model shown on this page.

No requests appear in Logs

Make sure MiniMax Mini-Agent is using the WaveSpeed base URL and your current API key. Then send a new prompt from the local agent and refresh Logs.

Can this MiniMax Mini-Agent guide show up in search?

Yes. This page is built as an indexable setup guide for users searching for MiniMax Mini-Agent custom provider, OpenAI-compatible endpoint, base URL, and local agent configuration workflows.