GLM-5.2 binds to a port and opens a shell
Unsloth Studio runs GLM-5.2 on a local port with built-in Python and Bash execution, plus a Cloudflare tunnel option that can expose that shell online.
Unsloth Studio, the web UI Unsloth recommends for running GLM-5.2 on your own hardware, listens on 127.0.0.1:8888 and lists Python and Bash code execution among its built-in features. Load the model and a browser tab becomes the front end to a 744-billion-parameter model that can run commands on the host.
GLM-5.2 is Z.ai’s new open model: 744B total parameters, 40B active, a 1,048,576-token context window. Unsloth shipped day-zero GGUF quants, which is what makes local inference realistic without a datacenter. The 2-bit UD-IQ2_M quant is 239GB on disk and fits a 256GB unified-memory Mac, or a single 24GB GPU with 256GB of system RAM using MoE offloading. The 1-bit quant fits in 223GB of RAM, and the 8-bit wants 810GB. The 2-bit quant keeps about 82% top-1 agreement with the full model and the 1-bit about 76.2%, so even the small quants track the baseline closely. Unsloth and Z.ai put the full model on par with Claude 4.8 Opus, GPT-5.5 and Gemini 3.1 Pro.
Studio’s feature list also includes self-healing tool calling, web search, and code execution in Python and Bash. Z.ai pitches GLM-5.2 for long-horizon coding and agentic work, and the benchmark suite it ships with includes Terminal Bench 2.1, a measure of how well a model completes real terminal tasks. The runner hands a model built for terminal work an actual terminal. The security consequence is that any client reaching port 8888 can ask it to run a command.
By default that port is bound to 127.0.0.1, so it answers only from the host, which is the right default for single-user local use. Unsloth also added a one-command option to launch Studio over HTTPS through a free Cloudflare tunnel, which turns the local-only service into a public HTTPS endpoint. The gate Studio documents is the password it asks you to create on first launch. Assembled fully, that is an internet-reachable endpoint that executes Bash, behind one password.
The risk is in how you deploy it:
- Keep the bind on localhost unless you have a specific reason not to. If you need remote access, put it behind your own authenticated proxy or VPN rather than exposing Studio’s account password to the open internet.
- Treat the Cloudflare tunnel as publishing a shell. The password you set on first launch is the only thing the docs put between the internet and
bashon your box. Make it strong, and do not run the tunnel on a machine holding anything you would mind the model, or whoever reaches the endpoint, touching. - Run Studio as an unprivileged user, ideally in a container or VM, if you are going to let it execute code at all. Commands the model runs execute as whoever launched Studio.
- If you only want inference, the same GGUFs run under llama.cpp with
llama-cli. The doc covers both paths; the llama.cpp path gives you a model and a prompt, without Studio’s Python and Bash tool-calling.
Keep Reading
AI securityAI labs skipped decades-old containment, models escaped
Cybersecurity experts say the recent 'rogue AI' incidents came from misconfigured sandboxes and absent monitoring, not clever models.
LMCacheLMCache Exposes Remote Code Execution
CVE-2026-105192 lets unauthenticated attackers run code on exposed LMCache multiprocess servers, with no patched release available.
AI securityDeepSeek 4.1 Flash Looks Boring
DeepSeek 4.1 Flash matters because cheap long coding sessions change agent governance more than they introduce a new exploit.
Latest on the Wire
Full wire →- Bending Spoons Destroys Harvest With 10x Price Hike and LLM SupportHacker News
- CISA Flags SonicWall MFA Bypass Amid Exploitation ReportsThe Hacker News
- Claude Opus Ports 3D Models from Three.js to Vanilla WebGLSimon Willison
- Collapsing AI PR descriptions with HTML details tagsSimon Willison
New signal daily · RSS
Stay in the loop
New writing delivered when it's ready. No schedule, no spam.