modelgrep

Best models for Claude Code

Match · Updated July 2026

The best model for Claude Code right now is GPT-5.6 Sol, with a 77.4 Artificial Analysis Coding Index; GPT-5.6 Terra (76.7) and Claude Fable 5 (76.5) follow. Claude Code runs long agentic sessions with heavy tool use — the Agentic and Coding indexes matter most, and prompt caching sharply cuts session cost.

Ranked by the Artificial Analysis Coding Index, filtered to models with the tool-calling support agentic editors require. Speed, context and price are shown per row — claude Code runs long agentic sessions with heavy tool use — the Agentic and Coding indexes matter most, and prompt caching sharply cuts session cost.

  1. 1openai logo
    gpt-5.6-sol
    ReasoningToolsJSON+1$5.00/M · 1.1M ctx
    77.4
    Coding
  2. 2openai logo
    gpt-5.6-terra
    ReasoningToolsJSON+1$2.50/M · 1.1M ctx
    76.7
    Coding
  3. 3anthropic logo
    claude-fable-5
    ReasoningToolsJSON+1$10.00/M · 1M ctx
    76.5
    Coding
  4. 4moonshotai logo
    kimi-k3
    ReasoningToolsJSON+1$3.00/M · 1.0M ctx
    76.2
    Coding
  5. 5openai logo
    gpt-5.5
    ReasoningToolsJSON+1$5.00/M · 1.1M ctx
    74.9
    Coding
  6. 6anthropic logo
    claude-opus-4.8
    ReasoningToolsJSON+1$5.00/M · 1M ctx
    74.3
    Coding
  7. 7anthropic logo
    claude-opus-4.7
    ReasoningToolsJSON+1$5.00/M · 1M ctx
    73.6
    Coding
  8. 8x-ai logo
    grok-4.5
    ReasoningToolsJSON+1$2.00/M · 500K ctx
    72.4
    Coding
  9. 9anthropic logo
    claude-sonnet-5
    ReasoningToolsJSON+1$2.00/M · 1M ctx
    71.5
    Coding
  10. 10openai logo
    gpt-5.6-luna
    ReasoningToolsJSON+1$1.00/M · 1.1M ctx
    71.4
    Coding
  11. 11M
    muse-spark-1.1
    ReasoningToolsJSON+2$1.25/M · 1.0M ctx
    71.3
    Coding
  12. 12openai logo
    gpt-5.4
    ReasoningToolsJSON+1$2.50/M · 1.1M ctx
    71.1
    Coding
  13. 13google logo
    gemini-3.5-flash
    ReasoningToolsJSON+2$1.50/M · 1.0M ctx
    70.1
    Coding
  14. 14google logo
    gemini-3.6-flash
    ReasoningToolsJSON+2$1.50/M · 1.0M ctx
    69.2
    Coding
  15. 15z-ai logo
    glm-5.2
    ReasoningToolsJSON$0.818/M · 1.0M ctx
    68.8
    Coding
  16. 16google logo
    gemini-3.1-pro-preview
    ReasoningToolsJSON+2$2.00/M · 1.0M ctx
    68.8
    Coding
  17. 17qwen logo
    qwen3.7-max
    ReasoningToolsJSON$1.48/M · 1M ctx
    66.0
    Coding
  18. 18moonshotai logo
    kimi-k2.6
    ReasoningToolsJSON+1$0.684/M · 262K ctx
    61.8
    Coding
  19. 19moonshotai logo
    kimi-k2.7-code
    ReasoningToolsJSON+1$0.710/M · 262K ctx
    60.8
    Coding
  20. 20xiaomi logo
    mimo-v2.5-pro
    ReasoningToolsJSON$0.435/M · 1.1M ctx
    60.2
    Coding

Frequently asked

What is the best model for Claude Code?

GPT-5.6 Sol leads on the Coding Index (77.4) among models with the tool-calling support Claude Code requires. Claude Code runs long agentic sessions with heavy tool use — the Agentic and Coding indexes matter most, and prompt caching sharply cuts session cost.

What's a cheaper model to use in Claude Code?

GPT-5.6 Terra (76.7 coding, $2.50/M) and Kimi K3 (76.2 coding, $3.00/M) give most of the leader's capability at a lower per-token price.

Other tools