Skill Tool Freezes with minimax m2.7 via Ollama
Bug Report: Skill Tool Freezes with minimax m2.7 via Ollama
Summary
When using Claude Code with minimax m2.7 (via Ollama Cloud API), the skill tool causes Claude Code to freeze indefinitely. The same model works fine with skills in opencode.
Environment
- Claude Code Version: 2.1.88
- Ollama Version: 0.18.3 (installed 0.19.0-1.1)
- Model: minimax-m2.7:cloud
- OS: Linux (Arch/CachyOS)
Steps to Reproduce
- Install Claude Code:
curl -fsSL https://claude.ai/install.sh | bash - Install Ollama:
sudo pacman -S ollama - Launch Claude Code with minimax m2.7:
ollama launch claude --model minimax-m2.7:cloud - Try to use the skill tool: "Use the skill tool to load the code-review-excellence skill"
Expected Behavior
The skill tool should load the skill and allow Claude Code to use it.
Actual Behavior
Claude Code freezes indefinitely and never responds.
Debug Logs
From /tmp/claude_skill_debug.log:
2026-03-30T23:39:10.713Z [DEBUG] Sending 7 skills via attachment (initial, 7 total sent)
...
2026-03-30T23:39:16.838Z [DEBUG] SkillTool returning 2 newMessages for skill code-review-excellence--0e12c69c29
...
2026-03-30T23:39:17.395Z [ERROR] Error: Error: Auth error: No API key available
Root Cause Analysis
The debug logs reveal the following sequence:
- Claude Code successfully loads 7 skills from the skills directory
- The skill tool successfully loads the requested skill and returns 2 new messages
- Claude Code attempts to make a second API request to process the skill content
- This second request fails with "Auth error: No API key available"
- Claude Code waits indefinitely for a response that never comes
Additional Information
- Works with qwen3.5:
ollama launch claude --model qwen3.5:cloudworks fine with skills - Works with opencode:
opencode --model minimax-m2.7:cloudworks fine with skills - Works with other tools: Simple bash commands and file reads work fine with minimax m2.7
- Reinstallation: Reinstalling both Claude Code and Ollama did not fix the issue
- Bare mode: Using
--bareflag did not fix the issue - Disable skills: Using
--disable-slash-commandsstill causes the freeze
Workaround
Use qwen3.5 instead of minimax m2.7 when you need skills in Claude Code.
Request
Please investigate why Claude Code fails to process skill content after loading it with minimax m2.7, specifically the "Auth error: No API key available" error that occurs after the skill is loaded.
Test Results Summary
| Model | Tool | Result |
|-------|------|--------|
| minimax-m2.7:cloud | Bash | ✅ Works |
| minimax-m2.7:cloud | Read | ✅ Works |
| minimax-m2.7:cloud | Skill | ❌ Freezes |
| qwen3.5:cloud | Skill | ✅ Works |
| minimax-m2.7:cloud (opencode) | Skill | ✅ Works |
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗