GLM 5.2: Set Up Local AI with Cursor/Codex etc

Greg Isenberg · · 23 min

Greg Isenberg and Amir walk through how to set up GLM 5.2, Google's open-source AI model, in coding tools to cut token costs by around 5x.

Watch the episode 23 min · YouTube

The gist

  1. GLM 5.2 scores 62% on long-horizon tasks versus Claude Opus 4.8's 69%, but costs $0.44 per run versus $2.38.
  2. You can add GLM 5.2 to Cursor or Codex in minutes by grabbing an API key and overriding the OpenAI endpoint.

What they recommend · 4 picks

OpenRouter Strong yes AI tools

“I highly highly recommend if you're starting to dabble with this and token usage is a thing for you, get one of these agnostic harnesses set up now — a lot of them are model agnostic.”

Amir ·10 creators recommend it·Amir's AI tools →
Cursor AI tools

“I personally started using this through Cursor using OpenRouter's API. In my opinion, the best way to get started with this is just go to OpenRouter and Cursor and get that set up through and through.”

Amir ·59 creators recommend it·Amir's AI tools →
Codex AI tools

“If you're using Codex, you can go to OpenRouter, get your OpenRouter key, and then go into the provider, get the endpoint, and then go into Codex, create a profile, and say, 'Hey, I want you to install this open-source model.'”

Amir ·100 creators recommend it·Amir's AI tools →

Get a Sunday email on what Greg and 5 other AI builders start using

Free. Paid ads left out. Unsubscribe in one click.

Also mentioned

2:10 Gemini · "Google came out with Gemini 5.2 and I think this was a big inflection point because we've typically seen..."
2:38 Llama · "With open-source model providers like OpenRouter or Llama being able to help you run these models in the..."
16:59 Claude Code · "You don't have to use Cursor. You can use Codex, Claude Code — use one of those to basically say, 'Okay,..."
19:35 Mac Studio · "When I'm on X, I see a lot of people being like, 'Buy a Mac Studio or buy these expensive devices.' Do..."

What do Greg and experts like them all swear by?

50 things in common

See