Skip to content

Conversation

@konard
Copy link
Contributor

@konard konard commented Jan 25, 2026

Summary

This PR resolves the issue where the default model opencode/grok-code is no longer available after xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January 2026.

Changes Made

  1. Default model changed from opencode/grok-code to opencode/gpt-5-nano in:

    • JavaScript implementation (js/src/index.js)
    • Rust implementation (rust/src/cli.rs)
    • Task tool default model (js/src/tool/task.ts)
    • Provider priority list (js/src/provider/provider.ts)
  2. Documentation updated:

    • MODELS.md - Marked grok-code as discontinued free model, updated default model section
    • README.md - Updated example commands and OpenCode compatibility note
    • js/README.md - Updated all references to the default model
    • rust/README.md - Updated CLI options documentation
    • EXAMPLES.md - Updated all example commands
  3. Test files updated - All 30 test files updated to use new default model

  4. Case study updated - docs/case-studies/issue-133/README.md marked as resolved

Test Results

  • All 52 Rust tests pass, including the test_args_defaults test that verifies the new default model
  • JavaScript linting and formatting not available locally (eslint/prettier not installed)

User Impact

  • Users running agent without specifying --model will now use opencode/gpt-5-nano instead of opencode/grok-code
  • Both models are free on OpenCode Zen
  • The grok-code model remains selectable via --model opencode/grok-code but users will receive an API error since it's no longer supported

Test plan

  • Verify Rust tests pass with new default model
  • Verify CI checks pass
  • Test manually with echo "hi" | agent to confirm new default model works

Closes #133

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #133
@konard konard self-assigned this Jan 25, 2026
This case study documents the "Model grok-code not supported" error that
occurred on 2026-01-25 when xAI ended the free tier for Grok Code Fast 1
on OpenCode Zen.

Key findings:
- Root cause: xAI business decision to end free tier (not a technical bug)
- Impact: All users relying on default grok-code model are affected
- Solutions: Use alternative free models (gpt-5-nano, big-pickle) or paid models

The case study includes:
- Complete timeline of events
- Root cause analysis
- Immediate workarounds
- Long-term solution recommendations
- Related external and internal references

Fixes #133

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title [WIP] Model grok-code not supported docs: add case study for grok-code model not supported error Jan 25, 2026
@konard konard marked this pull request as ready for review January 25, 2026 18:34
@konard
Copy link
Contributor Author

konard commented Jan 25, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $2.745355 USD
  • Calculated by Anthropic: $2.000032 USD
  • Difference: $-0.745323 (-27.15%)
    📎 Log file uploaded as Gist (519KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

Ok, let's switch default model in our code and docs to opencode/gpt-5-nano.

Update all code and docs for grok-code model and don't treat it as free anymore.

@konard konard marked this pull request as draft January 26, 2026 10:15
@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

🤖 AI Work Session Started

Starting automated work session at 2026-01-26T10:15:40.262Z

The PR has been converted to draft mode while work is in progress.

This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback.

xAI ended the free tier for Grok Code Fast 1 on OpenCode Zen in January
2026. This change:

- Updates default model from opencode/grok-code to opencode/gpt-5-nano
  in JavaScript and Rust implementations
- Marks grok-code as discontinued free model in MODELS.md
- Updates all documentation (README, EXAMPLES, etc.)
- Updates test files to use new default model
- Updates provider priority to put free models first
- Marks issue #133 case study as resolved

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title docs: add case study for grok-code model not supported error fix: change default model from grok-code to gpt-5-nano (#133) Jan 26, 2026
@konard konard marked this pull request as ready for review January 26, 2026 10:23
@konard
Copy link
Contributor Author

konard commented Jan 26, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $9.368180 USD
  • Calculated by Anthropic: $4.968937 USD
  • Difference: $-4.399243 (-46.96%)
    📎 Log file uploaded as Gist (1422KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model grok-code not supported

2 participants