<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: xsw</title>
    <description>The latest articles on DEV Community by xsw (@wxs_dev_ac).</description>
    <link>https://dev.to/wxs_dev_ac</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3992212%2F26a4ecc0-d55e-4d82-a975-d04318b699db.png</url>
      <title>DEV Community: xsw</title>
      <link>https://dev.to/wxs_dev_ac</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wxs_dev_ac"/>
    <language>en</language>
    <item>
      <title>How to use MiniMax-M3 in Claude Code and opencode through an API gateway</title>
      <dc:creator>xsw</dc:creator>
      <pubDate>Fri, 19 Jun 2026 09:08:58 +0000</pubDate>
      <link>https://dev.to/wxs_dev_ac/how-to-use-minimax-m3-in-claude-code-and-opencode-through-an-api-gateway-4gli</link>
      <guid>https://dev.to/wxs_dev_ac/how-to-use-minimax-m3-in-claude-code-and-opencode-through-an-api-gateway-4gli</guid>
      <description>&lt;h1&gt;
  
  
  How to use MiniMax-M3 in Claude Code and opencode through an API gateway
&lt;/h1&gt;

&lt;p&gt;MiniMax has become an interesting model family for developers who want to test alternatives in coding workflows. The hard part is often not the model itself, but the integration layer: many developer tools already know how to talk to OpenAI-compatible or Anthropic-compatible APIs, while each model provider may expose a slightly different interface.&lt;/p&gt;

&lt;p&gt;Model Gateway is a small third-party gateway that exposes MiniMax models through familiar API formats. The goal is simple: make it easier to try MiniMax-M3 and related models in tools like Claude Code, opencode, and other OpenAI-compatible clients.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://www.model-gateway.com/" rel="noopener noreferrer"&gt;https://www.model-gateway.com/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What this is useful for
&lt;/h2&gt;

&lt;p&gt;This setup is useful if you want to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try MiniMax-M3 in a coding assistant workflow.&lt;/li&gt;
&lt;li&gt;Use MiniMax models in tools that support OpenAI-compatible endpoints.&lt;/li&gt;
&lt;li&gt;Use an Anthropic-compatible endpoint for Claude Code-style workflows.&lt;/li&gt;
&lt;li&gt;Test model behavior without writing a custom provider adapter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a third-party gateway, not an official MiniMax service. For sensitive production workloads, review the service terms, data handling policy, and security posture before sending private code or confidential data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supported workflow
&lt;/h2&gt;

&lt;p&gt;Model Gateway documents two main endpoint styles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI-compatible endpoint: &lt;code&gt;https://www.model-gateway.com/v1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Anthropic-compatible endpoint: &lt;code&gt;https://www.model-gateway.com/anthropic&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The landing page lists MiniMax models such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;MiniMax-M3&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MiniMax-M2.7&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MiniMax-M2.7-highspeed&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MiniMax-M2.5&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;MiniMax-M2.5-highspeed&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Claude Code setup
&lt;/h2&gt;

&lt;p&gt;If your tool supports Anthropic-style environment variables, the setup is typically:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://www.model-gateway.com/anthropic"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"MiniMax-M3"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For macOS or Linux shells:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://www.model-gateway.com/anthropic"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;
&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;ANTHROPIC_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"MiniMax-M3"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then start your coding tool in the same terminal session so it can read those environment variables.&lt;/p&gt;

&lt;h2&gt;
  
  
  opencode setup
&lt;/h2&gt;

&lt;p&gt;For opencode or tools using OpenAI-compatible provider settings, use the OpenAI-compatible endpoint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"$schema"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://opencode.ai/config.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"model-gateway"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"npm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"@ai-sdk/openai-compatible"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Model Gateway"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"baseURL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://www.model-gateway.com/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"apiKey"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"models"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"MiniMax-M3"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"MiniMax-M3"&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"model-gateway/MiniMax-M3"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adjust the model name if you want to test another listed MiniMax model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why use a gateway?
&lt;/h2&gt;

&lt;p&gt;The practical benefit is compatibility. If your tool already supports OpenAI-style or Anthropic-style requests, a gateway can reduce the amount of adapter code you need to write.&lt;/p&gt;

&lt;p&gt;This is especially helpful for evaluation. You can test a model in a real workflow, compare behavior, and decide whether it is worth integrating more deeply.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things to check before serious use
&lt;/h2&gt;

&lt;p&gt;Before using any third-party API gateway heavily, check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Does the service use HTTPS for all API traffic?&lt;/li&gt;
&lt;li&gt;Is there a privacy policy or data handling explanation?&lt;/li&gt;
&lt;li&gt;Are fair-use limits documented?&lt;/li&gt;
&lt;li&gt;Is there a refund policy?&lt;/li&gt;
&lt;li&gt;What support channel is available if a model or endpoint fails?&lt;/li&gt;
&lt;li&gt;Are you comfortable sending the code or prompts involved in your workflow?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For Model Gateway specifically, HTTPS is available at &lt;code&gt;https://www.model-gateway.com/&lt;/code&gt;. Use HTTPS in your local configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Best first test
&lt;/h2&gt;

&lt;p&gt;A simple first test is to run the model on a small non-sensitive repository and ask it to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;explain one function,&lt;/li&gt;
&lt;li&gt;write a small unit test,&lt;/li&gt;
&lt;li&gt;refactor a short file,&lt;/li&gt;
&lt;li&gt;compare two implementation approaches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This gives you a realistic feel for latency, instruction-following, code quality, and compatibility without exposing sensitive material.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Model Gateway is best understood as a lightweight compatibility bridge for MiniMax model experiments. Its clearest use case is developer tooling: Claude Code, opencode, OpenAI-compatible clients, and coding workflows where trying another model should take minutes instead of custom integration work.&lt;/p&gt;

&lt;p&gt;If you try it, the most useful feedback is practical: which tool you used, which model you selected, whether the endpoint behaved as expected, and what documentation would have made setup faster.&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://www.model-gateway.com/" rel="noopener noreferrer"&gt;https://www.model-gateway.com/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>llm</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
