r/opencodeCLI • u/afanasenka • Oct 15 '26
r/opencodeCLI
•
u/purple_nippies
•
Jun 17 '26
I burned through 19M tokens of GLM-5.2 for under $3 today
I've been wanting to do two things this week:
Test out GLM-5.2 with OpenCode
Test drive Neuralwatt as a supplement to my OpenCode Go subscription
Ended up doing both at the same today, using Matt Pocock's improve-codebase-architecture skill to refactor a mid-sized personal project.
This is based purely on vibes, but GLM-5.2 felt like running Opus 4.6 on High to me.
But what blew my mind the most? The final cost for 19.2M tokens was just $2.72.
Maybe they're onto something big with their energy-usage pricing.
EDIT #1 - Adding comparative pricing notes + calling out the model quantization
Based on OpenRouter pricing, this would've cost me ~$8.
- 17M cached input tokens x $0.26/1M = $4.42
- 1.9M regular input tokens x $1.40/1M = $2.66
- 192.9K output tokens x $4.40/1M = $0.87
Neuralwatt runs GLM-5.2 at FP8 precision (Source: https://portal.neuralwatt.com/models/glm-5.2 ).
EDIT #2 - Adding my referral code
A user pointed out I could've shared my Neuralwatt referral code - well here it is. If you spend $10, you get $10 in credit, and I receive $20.
Referral link: https://portal.neuralwatt.com/auth/register?ref=NW-JAMES-FUYM
r/opencodeCLI
•
u/Opening_Library9560
•
Jul 20 '26
I Built a completely free tool that gives your AI agent web for free (fetch + search + crawl + Screenshot) for completely free, no API keys, everything's Local but the performance matches the paid or free tier services.
OpenCode's built-in websearch and webfetch work, but they're basic. If your agent hits a Cloudflare-protected page, it gets blocked. If it needs real search results, you're either paying for Tavily/Serper/Firecrawl or glueing together SearXNG + a headless browser + an extractor.
I built Hound as a drop-in MCP server that handles all of that. No API keys, no config file, no paid tier. Just add it to your opencode.json and disable the built-in web tools.
UPDATE!!!!: I AM LOST, I AM LOCKED OUT OF MY GITHUB ACCOUNT, I SWITCHED TO LINUX, BUT MY 2FA CODES WERE NOT PROPERLY BACKED UP, I TRIED EVERYTHING, I CANT ACCESS MY ACC, I have created a fork, everyone, switch to it if you want to receive updates: https://github.com/dondai44423/master-fetch
The setup (manual)
First install (only time you need pip directly):
pip install hound-mcp[all]Then add it to your opencode.json config:
{
"$schema": "https://opencode.ai/config.json",
"tools": {
"websearch": false,
"webfetch": false
},
"mcp": {
"hound": {
"type": "local",
"command": ["hound"],
"enabled": true
}
}
}Disable websearch and webfetch because hound replaces them with keyless versions. Restart OpenCode and the 6 tools are there.
Or just tell your agent to do it
Paste this into your OpenCode agent:
Install and configure the hound-mcp MCP server for web research in my OpenCode setup. Follow these steps exactly.
1. Check if hound is already installed: run `hound --version`. If it prints a version, hound is installed, skip to step 3. Do NOT reinstall.
2. If hound is NOT installed, install it: pip install hound-mcp[all]
3. Find my opencode.json. Do NOT use glob or search -- read these paths directly with the read tool:
- First try: ~/.config/opencode/opencode.json (global config, exists on all OSs)
- If that doesn't exist, try: opencode.json in the current working directory (project config)
- If neither exists, create the global one at ~/.config/opencode/opencode.json
4. READ the file. Do NOT overwrite it. You will add to it.
5. Look at the "mcp" section. If it has a "servers" key, add hound under mcp.servers. If it does NOT have a "servers" key, add hound directly under mcp. Match the existing pattern.
6. The hound entry is: {"type": "local", "command": ["hound"], "enabled": true}
7. In the "tools" section, set "websearch" to false and "webfetch" to false. Create the "tools" key if it doesn't exist.
8. Preserve ALL existing config. Only add the hound server and disable those two tools.
9. Write the file back as valid JSON.
10. Tell me to restart OpenCode.The agent checks if hound is already installed (won't reinstall if it is), reads you,r config, adds the hound entry matching your OpenCode version, disables the built-in web tools, and tells you when to restart.
After install, use hound -v to check for updates, hound -u to update, hound --doctor to run a health check, and hound --reinstall for a full reinstall with all extras.
What you get (6 tools)
web_fetch -- Fetches any URL, extracts clean markdown. Starts with HTTP, auto-escalates to a stealthy browser when it detects bot protection, JS shells, or rate limiting. PDFs get a section map with page ranges + auto-OCR for scanned docs. Dead links (404, 451, 500) auto-recover from the Internet Archive -- the response honestly marks source=archive.org with the snapshot date so the agent knows it's archived, not live.
web_search -- 10 keyless search backends in parallel: DuckDuckGo, Brave, Mojeek, Yahoo, Yandex, Startpage, Google, Qwant, Wikipedia, Grokipedia. Results are neural-reranked with a local ONNX cross-encoder (not an API call) and scored by cross-backend consensus so you can see which results multiple engines agree on. Circuit breaker trips for 60s on any backend that blocks you; the other 9 keep working.
web_crawl -- Best-first same-domain walk. Sitemap mode maps an entire site in one fetch. Focus mode crawls only pages relevant to your query, not the whole site.
web_screenshot -- Anti-bot screenshot for multimodal models that need to see the page.
cache_clear -- Clears the fetch cache.
hound_version -- Version + update status.
How it handles the hard parts
Bot protection: starts with plain HTTP. If it gets a 403/429/503, it escalates to a stealthy browser (Patchright with randomized fingerprint). Manages ~95% of the web. The few sites running DataDome or Cloudflare Turnstile will block it -- at that point Hound tells the agent to switch sources instead of pretending it got content.
Dead links: a 404 doesn't kill the fetch. Hound checks the Wayback Machine and serves the archived snapshot, marked honestly. If the Archive doesn't have it, the agent gets a clean error (
Page doesn't exist (404)) instead of error-page HTML masquerading as content.Error honesty: just shipped in v10.4.0 -- any 4xx/5xx sets the error field. Before, a 404 error page would flow through with
error=""and the agent could mistake the error page HTML for real data. Now it's flagged and the content is replaced with the error message.Token cost: 2,746 tokens for all 6 tools + instructions combined. The tool definitions are tight.
The [all] install is ~100MB
The [all] extra pulls in onnxruntime + tokenizers + rapidocr (for the neural reranker and PDF OCR). You can install without it (pip install hound-mcp) and fetch + crawl + search still work, just no neural reranking or PDF OCR. Full install is the recommended path.
Links
GitHub: https://github.com/dondai1234/master-fetch (Star the repo if you like it π )
PyPI: hound-mcp
MIT licensed. If you try it, let me know what breaks.
r/opencodeCLI • u/afanasenka • Sep 30 '26
Google just released Gemini 4 Argon π₯
Pricing is $2 / $10 - same as the latest Sonnet 5.5 and GPT 6.1 Sol.
https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/
r/opencodeCLI • u/afanasenka • Oct 16 '26
π₯ GLM 5.3 Flash is FREE in OpenCode
Crazy things are happening :))))
r/opencodeCLI
•
u/Horror_Upstairs6198
•
May 13 '26
I just learned today that opencode zen have deepseek v4 flash for free
WTF, I could just use the expensive ai models of opencode go for planning, writing specs and then use opencode zen deepseek v4 flash max for implementation. I am loving this opencode, loving the freebies
r/opencodeCLI • u/Forward-Dig2126 • Jul 13 '26
OpenCode v2.0 now in beta
Pretty neat how it allows for seamless sync of the same session across OC Web, CLIβs, Mac app etc.
Iβll take it for a spin now. Are any of you using it?
r/opencodeCLI • u/Complete-Sea6655 • Jun 19 '26
why vibe coded projects fail.
"Bro, just read ijustvibecodedthis.com and you'll be fine"
Sure, but will I?
Vibe coders desperately want this to be false, and engineers desperately want it to be true.
r/opencodeCLI • u/afanasenka • Oct 06 '26
Mistral just released Large 4 "Le Chonk" π₯
Available to all via API today. Open weights release end of October.
r/opencodeCLI • u/CengaverOfTroy • Jun 21 '26
GLM 5.2 Added to DeepSWE Benchmark
As the title say.
r/opencodeCLI • u/Final_Initial • Aug 11 '26
Thank you, OpenCode! DeepSeek v4 Flash (Free) is just too good.
Used the DeepSeek v4 Flash (Free) model continuously for 5-6 hours before exhausting the limits. But it resets just after 7 hours so gotta get some sleep and come back to it.
Once again, thank you, OpenCode!
EDIT:
By the way, here's OpenCode referral code that gets you and me both $5: https://opencode.ai/go?ref=ESN9SA7S5J
r/opencodeCLI • u/AngelicBread • Apr 30 '26
Deepseek V4 is mindblowing
I've been having an amazing time using v4. I started out with pro and it genuinely feels like a perfectly capable frontier model. I spent 50 cents for an hour of very heavy use.
Then I decided to checkout flash for the speed gains. I'm speechless. When setting the thinking to max, it feels extremely capable and it's lighting fast. But that's table stakes at this point. What blew my mind is that it cost me only 5 CENTS for 4 whole hours of heavy heavy use that incorporated intensive subagent loops.
I'm genuinely not understanding the lack of market reaction happening right now. My theory is that people feel like they overreacted to R1 and now they're less jumpy. But I'm left wondering how a trillion dollar industry is gonna justify such premiums when you can let it rip on like a cent an hour with an open source harness like opencode.
Edit: Also, I'm on opencode go, so I'm not even getting the massive deepseek discount.
r/opencodeCLI • u/afanasenka • Oct 17 '26
π₯DeepSeek V4.1 Flash-1017 is on Hugging Face (see benchmarks inside)
https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017
Official release notes - https://api-docs.deepseek.com/updates/
r/opencodeCLI • u/afanasenka • Aug 28 '26
Kimi K3 and DeepSeek 4 Pro are FREE on NVIDEA NIM (60 req/min.)
Can't be used all day long of course, but enough for relaxed coding/chatting.
https://build.nvidia.com/moonshotai/kimi-k3
https://build.nvidia.com/deepseek-ai/deepseek-v4-pro-0813