Disclaimer: This post reflects one developer’s evaluation of available tools at the time of writing. Model performance, pricing, and availability change quickly, so builders should verify current data before choosing a stack.


AI coding agents are becoming part of the developer workflow. For Starknet builders, the question is not only which model performs best.

It is which stack is powerful enough to build real applications, affordable enough to use often, and open enough to align with the values that brought many of us into crypto in the first place.

Recently, I started working on a new course on how to use coding agents to create Starknet apps. The first question was simple:

Which AI stack should we teach with?

In my day-to-day work, I use Claude Code with Opus 4.8 because the Starknet Foundation provides a subscription. It is a strong setup. But it has always bothered me how far removed many AI labs are from the values crypto builders usually care about: decentralization, transparency, privacy, and self-sovereignty.

So for this course, I wanted to evaluate an alternative stack that better fits those values while still being good enough for serious Starknet development.

This post is a snapshot of that evaluation.

Benchmarks, pricing, and model availability move quickly, so treat this as a point-in-time view of the trade-offs rather than permanent guidance.

Current recommendation

For now, the stack I am leaning toward is:

  • Model: GLM 5.2
  • Harness: OpenCode
  • Inference provider: Venice.ai

The reasoning is straightforward.

GLM 5.2 currently looks like one of the strongest open weight coding models available. It has a large context window, performs well in coding benchmarks, and is significantly cheaper than leading proprietary thinking models.

OpenCode looks like the strongest fit for the coding harness because it is open source, model-neutral, and performs well in harness benchmarks.

Venice.ai is the most crypto-aligned inference provider in this set because it supports crypto payments and has a strong privacy focus, including support for models running inside TEEs.

That does not mean this is the only good stack. It means this is the stack that currently best balances performance, cost, openness, and crypto alignment.

1. Large Language Model

The first decision is the model.

Open weight models align well with crypto values because they can be run locally, inspected, replaced, and self-hosted over time. That matters for self-sovereignty.

The trade-off is hardware cost. Most developers are not running large coding models locally today, so they still rely on third-party inference providers. That is not too different from how most people use crypto: many users interact with blockchains through hosted RPC providers before deciding whether to run their own node.

So the practical question is: Which open weight model is good enough for coding Starknet apps?

1.1 Coding performance

Coding Index

Artificial Analysis’ Coding Index benchmark currently places GLM 5.2 by Zhipu AI, DeepSeek V4 Pro by DeepSeek, and Kimi K2.6 by Moonshot AI among the leading open weight models for coding, with performance that appears broadly comparable to Claude Sonnet 4.6.

There are two important caveats.

First, Kimi K2.7 Code is not included in that benchmark yet because it is still very new.

Second, Fable 5 was removed from my comparison because it is not publicly available, and its future availability is unclear.

Another popular benchmark is DeepSWE by Datacurve.ai. This benchmark shows a larger gap between closed and open weight models, but it is also missing newer models such as GLM 5.2 and Kimi K2.7 Code.

Ranking

On DeepSWE, Kimi K2.6 is the leading open weight model, but its performance is closer to GPT 5.4 mini. The benchmark also places Sonnet 4.6 much higher than Opus 4.6, which is surprising given that Opus is generally positioned as the more capable model.

The takeaway is not that one benchmark should be treated as final.

The takeaway is that the strongest open weight models are now close enough to proprietary models that they are worth evaluating seriously for real developer workflows.

1.2 Context window

Context window measures how much information a model can hold in short-term memory. This matters for coding agents because long-running tasks and larger codebases require the model to read, remember, and reason across more files.

For reference, I included both open weight and proprietary models.

ModelOpen WeightContext Window
Fable 5No1M tokens
GPT 5.5No1M tokens
Opus 4.8No1M tokens
Sonnet 4.6No1M tokens
DeepSeek V4 ProYes1M tokens
MiMo-V2.5-ProYes1M tokens
MiniMax M3Yes1M tokens
GLM 5.2Yes1M tokens
Qwen 3.7 MaxNo1M tokens
Kimi K2.7 CodeYes260K tokens
Kimi K2.6Yes260K tokens
GLM 5.1Yes200K tokens

A 1 million token context window now appears to be becoming standard for newer frontier models. Kimi K2.7 Code is the main exception in this comparison, with a smaller 260K token window.

For Starknet app development, this matters. A coding agent needs to understand smart contracts, frontend code, tests, documentation, package files, and previous decisions. A larger context window gives the model more room to work before it starts losing important details.

1.3 Inference cost

Cost matters because coding agents are not something you use once. They become part of the workflow.

The table below shows the cost per million tokens for input and output, based on OpenRouter pricing at the time of writing. Input tokens are prompts, reads, searches, and other information sent to the model. Output tokens are generated code, explanations, and replies.

The table is ordered by output cost.

ModelOpen WeightInput Cost ($/1M tokens)Output Cost ($/1M tokens)Providers
MiMo-V2.5-ProYes$0.52$1.043
MiniMax M3Yes$0.30$1.204
DeepSeek V4 ProYes$1.64$3.2114
Kimi K2.7 CodeYes$0.95$4.0010
GLM 5.2Yes$1.40$4.407
Qwen 3.7 MaxNo$2.50$7.501
Sonnet 4.6No$3.00$15.001
Opus 4.8No$5.00$25.001
GPT 5.5No$10.00$45.001

This is where open weight models look especially compelling.

Even GLM 5.2, the most expensive open weight model in this table, is less than a third of the output cost of Sonnet 4.6, the cheapest proprietary thinking model listed here.

I have higher confidence that the cost of open weight model inference reflects a more competitive price. Independent infrastructure providers have less incentive to subsidize usage heavily. For proprietary models, it is harder to know whether current prices are fair, subsidized, or part of a longer-term strategy to capture market share before prices change.

That matters for developers.

You do not want to build your entire workflow around a model that becomes drastically more expensive once subsidies end or usage policies change.

1.4 Inference speed

Cost is not the only practical factor. Speed also matters.

A common problem with AI coding is the amount of human time wasted waiting for the model to complete a task. If the wait is too long, you may be tempted to start working on something else, which creates context switching and breaks flow.

Model speed is usually measured in tokens per second, or TPS. Another useful measure is end-to-end latency, which tracks how much time passes between sending a request and seeing the first token.

The table below uses OpenRouter stats.

ModelOpen WeightMedian TPSBest TPSE2E Latency
Opus 4.8No58588.87s
Qwen 3.7 MaxNo48488.20s
GPT 5.5No414114.28s
Sonnet 4.6No38385.99s
DeepSeek V4 ProYes37553.98s
Kimi K2.7 CodeYes35927.97s
MiMo-V2.5-ProYes294214.58s
MiniMax M3Yes27418.44s
GLM 5.2Yes23296.02s

Proprietary models look strong on median TPS. But the best TPS numbers show that some open weight model providers are already running highly optimized inference infrastructure that can compete with or exceed major proprietary providers in specific cases.

Latency also varies a lot. GPT 5.5 and MiMo-V2.5-Pro are outliers at almost 15 seconds before the first token appears. DeepSeek V4 Pro is the fastest in this table, with around 4 seconds of end-to-end latency.

The main downside of GLM 5.2 is speed. It looks strong on capability, context, and cost, but 23 to 29 tokens per second means a developer may spend more time waiting during complex implementation tasks.

That can be managed by running multiple agents in parallel using git worktrees, where each agent works on a separate feature or task. But it is still a trade-off to consider.

2. Coding harness

An LLM by itself is only a chat box.

To become a coding agent, it needs a harness: a tool that lets it interact with your computer, create and edit files, run tests, inspect errors, compile projects, and iterate on code.

The three most common coding harnesses I looked at are:

  • Claude Code by Anthropic
  • Codex CLI by OpenAI
  • OpenCode by Anomaly

Claude Code is strong, but it is closed source. For a course trying to align with crypto values, that is a major drawback.

Codex CLI and OpenCode are both open source. My assumption is that Codex CLI is likely optimized for OpenAI models, while OpenCode appears more model-neutral.

Artificial Analysis’ harness benchmark suggests OpenCode performs very well, even outperforming Claude Code when steering Opus 4.7 through a coding task. That is notable because Claude Code is purpose-built for Anthropic models.

Harness Comparison

For this reason, OpenCode currently looks like the best fit for a Starknet AI coding course.

  • It is open source.
  • It is not tied to one lab.
  • It works across different models.
  • It fits the ethos of builders being able to inspect and replace their tools.

3. Inference provider

The final piece is inference.

OpenAI and Anthropic both offer strong value through subscriptions, but they come with trade-offs. They are closed platforms, usage is governed by their policies, and subscriptions such as $200 per month can be out of reach for many developers around the world.

A cheaper and more flexible option is OpenCode Go. It costs $10 per month and provides a token allocation across several open weight models, including GLM 5.2, Kimi K2.7 Code, and DeepSeek V4 Pro.

For additional usage, OpenCode Zen lets users pay as they go with an API key. It also provides access to proprietary models such as Opus 4.8 and GPT 5.5, which makes it possible to mix and match models depending on the task.

OpenCode can integrate both: use the token allocation from OpenCode Go first, then switch to OpenCode Zen for extra usage or for models that are not available in Go.

The more crypto-aligned option, however, is Venice.ai.

Venice works similarly to OpenCode Zen: you get an API key and access to a broad catalog of AI models. The difference is that Venice supports crypto payments and has a stronger privacy posture, including models running inside TEEs.

For a Starknet course, that matters.

It means the AI stack can reflect more of the values we want developers to think about: privacy, accessibility, optionality, and crypto-native payment rails.

4. Decision guide

There is no single perfect stack. The right choice depends on what you care about most.

NeedStrong fit
Strong open weight coding modelGLM 5.2, DeepSeek V4 Pro, Kimi K2.7 Code
Lowest inference costMiMo-V2.5-Pro, MiniMax M3
Fastest practical responseDeepSeek V4 Pro
Large context windowGLM 5.2, DeepSeek V4 Pro, MiMo-V2.5-Pro, MiniMax M3
Open source coding harnessOpenCode
Crypto-aligned inferenceVenice.ai
Maximum proprietary model capabilityOpus 4.8, GPT 5.5, Sonnet 4.6

For the course, I care about four things:

  1. Performance good enough for serious Starknet development
  2. Low enough cost for frequent use
  3. Open tooling where possible
  4. A stack that aligns with crypto values

That points toward: GLM 5.2 + OpenCode + Venice.ai

5. Conclusion

Closed AI tools are powerful, and there is nothing wrong with using them. For many developers, they are still the easiest way to get started.

But crypto builders should care about the shape of their tooling.

If we care about self-sovereignty, transparency, privacy, and open systems, then we should at least evaluate AI stacks that move in that direction.

Open weight coding models are now strong enough to be taken seriously. Open source harnesses like OpenCode make it possible to use those models as real coding agents. Crypto-aligned inference providers like Venice.ai make the stack feel less dependent on closed subscription platforms.

For building Starknet apps with AI agents, my current recommendation is:

Use OpenCode as the harness.Use Venice.ai as the inference provider.Start with GLM 5.2 as the default model.

GLM 5.2 is not perfect. It is slower than some alternatives, and that may become annoying during larger tasks. But its combination of coding performance, context window, open weight availability, and lower cost makes it a strong default.

The broader point is more important than the specific model.

AI-assisted development is moving fast. Starknet builders should not only ask which model is most powerful today. They should ask which stack gives them capability, affordability, and control over time.