Learning OpenClaw and fighting local LLMs
Learning OpenClaw and fighting local LLMs
I’ve spent the last several days deep in the world of OpenClaw, and it’s not intuitive. Here’s the story of the struggles, and why Qwen3-Coder-Next has been the most reliable of the bunch.
The Dream
I wanted to run a local LLM that could power OpenClaw with:
- Reliable tool usage
- Long context handling (128K+)
- Consistent reasoning without suffering from reasoning drift, looking at you GPT-OSS
I started with the two “best” models I could find: GPT-OSS:120B and GLM-4.7-Flash that could run on a NVIDIA GB10 (128GB memory)
GPT-OSS:120B
Artificial Analysis always ranks GPT-OSS:120B really high, and it seems to handle general tasks just fine. The model is smart, claims to know how to use tools, and had great reasoning capabilities. But… it seems to fall apart in large context task and loses the needle in the haystack.
Tool usage
Initial tool usage was solid… key word “Initial”. Web search integration worked… when it wouldn’t hallucinate how to use it after using 10 times the day before or even just a few messages early on the same day. This was a reoccurring theme with most tools, even after using recommend temperatures and top_p parameters for tool usage. Sometimes it would use web search correctly, other times it would ignore the tools entirely and say “I don’t have access to web search I am a llm with date XXXXX as my information cutoff”. Or after setting up a web-search tool and using it, it would later try to use a tool that I don’t have configured, even though the memory had saved the working tool as default.
I spent too much time debugging why it wasn’t using tools consistently, only to find that even the same prompt would sometimes work and sometimes fail.
Reasoning
Even though it runs at about 60 tokens/sec — fast — it spent way too much time “thinking” before responding. The reasoning was thorough, but sometimes it would start reasoning down the wrong path, and once that started it was hard to get it to come back. Look up reasoning drift or probability cascade: a tiny hallucination early on wrecks accuracy later, and it would not let go of the false piece of information, completely stuck on bad reasoning. It’s the butterfly effect of LLM reasoning.
Lost in the Context
As conversations grew, it would lose fine details and start contradicting itself or forgetting a key piece of information. Which didn’t help when it would fill a large part of context with bad reasoning. It would consistently lose attention and/or lose the needle in the haystack of its own reasoning. Good for general purpose, not good for tools.
GLM-4.7-Flash
GLM-4.7-Flash was more promising initially. It was fast, it was accessible, and it had decent capabilities. Ranked and benchmarked really high for tool usage.
Tool Usage
Tool usage was clearly better than gpt-oss but it would still struggle to consistently use the correct tools or follow the rules set in place for them. It struggled less than GPT-OSS but didn’t feel powerful or smart.
Reasoning
Standard reasoning, didn’t reason forever like GPT-OSS, still susceptible to reasoning drift, but with shorter reasoning it was less of an issue. It still didn’t seem as smart
Speed
Initial speed was great - about 45 tokens/sec, not as fast as gpt-oss, but very usable… until the context grew. This is a well known issue at the time of writing, GLM-4.7-Flash has massive speed issues at large context. Around 64K tokens, speed dropped from 45 to 10-20 tokens/sec. With OpenClaw the context is always going to be high, making it near unusable.
Overall
Reasonably smart for basic tasks, good at following instructions, fails at long context speed, and loses the needle in the haystack.
The DGX-Spark GB10 Setup
Both models ran on my DGX-Spark GB10 with:
- vLLM for fast inference and concurrency
- OpenWebUI as a gateway to the models
The hardware was capable - the issue was the models themselves.
vLLM and spark-vllm-docker
I owe a huge thank you to the eugr/spark-vllm-docker project. This Docker setup has been critical to getting vllm optimizations and stability on my DGX-Spark GB10. Without it, I would have spent countless hours fighting with CUDA, drivers, and configuration issues.
The pre-configured Dockerfiles handle all the tricky bits:
- CUDA driver compatibility
- GPU memory optimization
- Performance tuning for the DGX-Spark hardware
- Stable container runtime
- Prebaked model configuration for vLLM
It literally saved me days of debugging and let me focus on testing models instead of fixing infrastructure.
Qwen3-Coder-Next (as of Feb 2026)
I gave up on the “best” models according to benchmarks and decided to try Qwen3-Coder-Next based on positive reviews. The difference was immediate. Over and over again it would surprise me by using tools correctly, or by suggesting better tool options when the current one lacked a capability. That troubleshooting ability was critical when configuring browser usage — more on that below.
Why It Works
- Consistent speed - 35-45 tokens/sec even at 128K context
- Minimal thinking time - It spends nearly no time “thinking” before responding (it’s not a reasoning model)
- Reliable tool usage - Tools work every single time
- Long context handling - Handles 128K+ without slowing down
- Smart without being slow - It’s both fast and intelligent
A Story from the Gym
So I have a web app I wrote (vibe coded) a while back — a web-based todo list I can access from multiple devices with auth. Strictly an app I wrote just for myself. Anyways, I was at the gym and sent OpenClaw a message. Here is my from-memory summarized transcript.
Me: Hey, can you go pull down my todo app from GitHub? I would like to explore giving it an API to make todo updates programmatically.
A few minutes pass.
OpenClaw: I pulled it down, nice app. Here are 3 different ways we could implement an API. It shows me the three options, with its recommendation, since it is a single-user app and doesn’t need the extra complexity.
Me: I like your recommendation, do it.
OpenClaw: I can make the changes directly to the files, or we can set up OpenCode and I can work through that framework. Both ways work — what would you like me to do?
Me: Wow, that would be cool. You can use the same API and API key from OpenClaw to configure OpenCode.
OpenClaw: Hmm, it’s not working. Let me check the OpenCode docs.
OpenClaw: I got it working. I also saved the config to your Obsidian vault for future reference. Implementing the API changes now.
Reminder: I’m still at the gym, and a few more minutes pass.
OpenClaw: Changes are pushed to branch X, inserts PR link.
Me: That looks great, but I forgot — I use auth in front of the app. Will that cause a problem?
OpenClaw: Maybe. Can you tell me about the auth setup?
Me: Yeah, here is the gitops config, insert link to gitops repo, and I use tinyauth.
OpenClaw: I pulled down both repos and reviewed both code bases. I updated the PR. Once the changes are made, I can update the gitops repo with auth changes.
Me: Okay, I merged the changes and the CI made the new image.
OpenClaw: I created new creds for me to make API calls and updated the gitops repo, insert PR link.
Me: Wow, thanks. I merged the changes.
OpenClaw: Ready to test the API?
Me: Yeah, add something like “get bananas”.
OpenClaw: I added “get bananas” and have confirmed it was added with a list API call. Can you confirm from the UI?
Me: Yes, I see it.
At this moment I see a glimpse of the future of AI agents.
Fast forward a few days.
I’m laying in bed and decide again to see how powerful it is…
Me: Hey, can you search Amazon and find me a reverse osmosis water filter with at least 4.6 stars and over 1000 reviews?
OpenClaw: I can, but it looks like you don’t have browser use configured yet. Would you like assistance getting it set up?
Me: Yes.
We walked through the browser-use setup together.
OpenClaw: I have found a few that meet the criteria, and I added them to your to-do list. (The app that it created the API for a few days earlier.)
Why This Matters
Finding the right model made all the difference. Before Qwen3-Coder-Next, I was constantly fighting with the models to get them to work consistently. Now, OpenClaw just works.
The Tradeoff I Made
- GPT-OSS-120b: More “thinking”, less reliability
- GLM: Fast but limited by context and intelligence
- Qwen3-Coder-Next: Smart, Excellent attention, Fast, reliable, and consistent
For me, reliability and speed are more important than raw reasoning time. I want my assistant to get things done, not spend 30 seconds “thinking” about a simple command… and then fail
Conclusion
If you’re running local LLMs for automation:
- Don’t chase the “biggest” model - chase the most reliable one
- Test consistency, not just peak performance
- Consider long-context handling for real-world use
- Speed matters, but consistency matters more
Qwen3-Coder-Next has been a game-changer for me. It’s fast, reliable, and actually gets things done. If you’re struggling with other models, give this one a try.