Available Now in AdaL CLI

    Code with GLM-5.2
    in AdaL CLI

    Z.ai's flagship model for long-horizon tasks — a solid 1M-token context, flexible coding effort levels, and MIT open-source weights.

    No credit card required

    Built for Long-Horizon Tasks

    Source-backed capabilities from Z.ai's official release

    Solid 1M-Token Context

    A stable 1M-token context engineered for sustained long-horizon work — not just a larger window, but reliable quality across messy coding-agent trajectories.

    Advanced Coding with Flexible Effort

    Multiple thinking effort levels let you balance performance against latency. Max effort unlocks additional compute for challenging tasks.

    IndexShare Architecture

    Every 4 sparse attention layers share a lightweight indexer, reducing per-token FLOPs by 2.9× at 1M context without quality loss.

    MIT Open-Source License

    Pure open — no regional limits, no technical borders. Weights available on HuggingFace and ModelScope for local deployment.

    Anti-Hack RL Training

    Rule-based + LLM-judge pipeline blocks reward hacking during agentic RL, ensuring real task-solving — not shortcut exploitation.

    Highest-Ranked Open-Source Model

    Top open-source model across FrontierSWE, PostTrainBench, and SWE-Marathon — trailing only the Opus 4.8 series on long-horizon benchmarks.

    GLM-5.2 Benchmark Results

    As published by Z.ai

    BenchmarkGLM-5.2Context
    Terminal-Bench 2.1 (Terminus-2)81.0Strongest open-source model; within 4 pts of Opus 4.8
    SWE-bench Pro62.1Up from 58.4 in GLM-5.1; ahead of GPT-5.5 (58.6)
    FrontierSWE Dominance74.4Trails Opus 4.8 by only 1%; top open-source model
    PostTrainBench34.32nd overall, ahead of Opus 4.7 and GPT-5.5
    AIME 202699.2Near-perfect math reasoning
    GPQA-Diamond91.2Graduate-level science QA

    Full Benchmark Comparison

    GLM-5.2 vs. GLM-5.1 and frontier closed-source models

    Reasoning

    BenchmarkGLM-5.2GLM-5.1Opus 4.8GPT-5.5Gemini 3.1 Pro
    HLE40.531.049.8*41.4*45.0
    HLE w/ Tools54.752.357.9*52.2*51.4*
    AIME 202699.295.395.798.398.2
    GPQA-Diamond91.286.293.693.694.3

    Coding

    BenchmarkGLM-5.2GLM-5.1Opus 4.8GPT-5.5Gemini 3.1 Pro
    SWE-bench Pro62.158.469.258.654.2
    Terminal-Bench 2.1 (Terminus-2)81.063.585.084.074.0
    FrontierSWE74.430.575.172.639.6
    PostTrainBench34.320.137.228.421.6
    SWE-Marathon13.01.026.012.04.0

    Agentic

    BenchmarkGLM-5.2GLM-5.1Opus 4.8GPT-5.5Gemini 3.1 Pro
    MCP-Atlas (Public Set)76.871.877.875.369.2
    Tool-Decathlon48.240.759.955.648.8

    * Scores from full set evaluation. Source: Z.ai — GLM-5.2: Built for Long-Horizon Tasks

    How to use GLM-5.2 in AdaL CLI

    Get started in minutes

    1

    Install AdaL CLI

    Install globally with npm. Works on macOS, Linux, and Windows.

    2

    Sign up (free)

    Create your account — takes less than a minute.

    3

    Select GLM-5.2

    Use /model to pick GLM-5.2 from the model selector. Use GLM-5.2[1m] for 1M context.

    Ready to test GLM-5.2 on real engineering workflows?

    Run GLM-5.2 in AdaL CLI with 1M-token context, flexible effort levels, and production-ready coding workflows.

    Get Started with AdaL
    1M token contextMIT open-sourceFlexible effort levels