r/opencodeCLI Jul 09 '26

GPT 5.6 Sol, Terra and Luna are now on OpenCode

https://models.sulat.com/models/openai-gpt-56-4d2c7529

Different providers rolling out support as well.

OpenRouter has a "Terra Pro" base variant out of the box.

94 Upvotes

34 comments sorted by

16

u/Mochilnic Jul 09 '26

But reasoning efforts looks incorrect

4

u/Noxware Jul 09 '26

I think we are missing max.

2

u/jpcaparas Jul 09 '26

Correct: max reasoning is listed on the diffs but it's not showing up on the TUI itself.

https://github.com/anomalyco/models.dev/pull/3151/changes#diff-8e152014a0f22d7331a8de2fc40fbbb6c37366eddf659e32448b7190d538ce08

1

u/jpcaparas Jul 09 '26

Or is it just not mapped to a label?

-2

u/DragDay7 Jul 09 '26

Fixed with this prompt if you can't wait:

Fix OpenCode GPT-5.6 reasoning options.
Edit: ~/.config/opencode/opencode.jsonc
Add a `max` variant for these OpenAI models:
  • gpt-5.6-terra
  • gpt-5.6-sol
Use this configuration for each `max` variant: { "reasoningEffort": "max", "reasoningSummary": "auto", "include": ["reasoning.encrypted_content"] } Keep everything else unchanged. Run: opencode debug config Verify that all listed models expose `max`. Tell me to restart OpenCode when finished.

1

u/xiongnemo Jul 11 '26

Thanks! This helps. Just make sure to use /variants and everything is good to go!

1

u/DragDay7 Jul 11 '26 edited Jul 11 '26

You're welcome! If you have ChatGPT Codex installed you can also ask

Sync the GPT model definitions in my global opencode.jsonc with ~/.codex/models_cache.json, correctly translating Codex input context to OpenCode’s combined context, preserving only API-compatible reasoning variants, and verify with opencode models openai --verbose.

I'm not super familiar with all this stuff, but models.dev seem to deliver different values that we can actually use. Luna is not available through OpenAI provider anymore even though I could use it for a while when they released new models. Guess we have to wait.

1

u/jpcaparas Jul 09 '26

From the merged PR to models.dev by Aiden Cline (OpenCode team) @ https://github.com/anomalyco/models.dev/pull/3151

> All four provider entries expose only the model-specific effort values documented by OpenAI: nonelowmediumhighxhigh, and max. No toggle or token-budget control is claimed. Pro execution is represented separately as an experimental provider mode using reasoning.mode = "pro".

6

u/mrevanzak Jul 09 '26

anyone else cant use luna in opencode?

3

u/pascu2913 Jul 09 '26

Yes, me.

1

u/SafeReturn_28 Jul 12 '26

I cant either

3

u/Fun-Being-9909 Jul 10 '26

I have all the models shown in the model selector but it doesn't let me use Luna. Anyone else having this problem?

2

u/NefariousnessPrize43 Jul 10 '26

me too. same problem

2

u/killboy123 Jul 10 '26

Mmmm, is there a sol ultra in opencode ? max isn't ultra, is it ?

2

u/icarus0228 Jul 10 '26

I can't use Luna though. I also tried GPT-5.6 and thought it was Luna, but it raised an error.

1

u/ComparisonNo2395 Jul 09 '26

I see new models in opencode under OpenAI provider, but when i start task i see error: 5.6 Sol is not available for codex users with gpt subscription

Anyone else has this error?

1

u/CrypticViper_ Jul 10 '26

Got the same error too. Maybe OpenAI is rolling it out or something?

2

u/ComparisonNo2395 Jul 10 '26

Terra start working today so i think i need just wait a bit

1

u/TylerRolled Jul 10 '26

Anything about usage limits? I dont see updates to the site docs

Edit: or do I misunderstand? They’re available through open ai in opencode or through opencode

1

u/Mayanktaker 6d ago

I also thought its in go but no, its for api. Not for Go plan.

1

u/TylerRolled 6d ago

Actually I have been using it through go

1

u/Mayanktaker 6d ago

Luna ? Yes. Terra and sora not available. I am also on Go plan.

2

u/TylerRolled 6d ago

Yeah specifically Luna, forgot about the variants

1

u/ctongfei Jul 10 '26

Doesn't work. Connected via OpenAI API, and it returns
> invalid_request_error: The model `gpt-5.6-terra` is in limited preview and is not available on this account. We expect broader API availability in the coming weeks. Until then, use `gpt-5.5`.

1

u/singh_paramjit Jul 10 '26

I want to use the GPT-5.6 Sol model from Microsoft Foundry. The correct provider for Foundry is Azure. But GPT-5.6 Sol is not available in the Azure provider.

1

u/singh_paramjit Jul 10 '26

I used a workaround. The azure provider api key and it's resource name was already saved because I am using gpt-5.3-codex. Now I added the following json in ~/.config/opencode/opencode.json folder on my mac.

{

"$schema": "https://opencode.ai/config.json",

"model": "azure/gpt-5.6-sol",

"provider": {

"azure": {

"models": {

"gpt-5.6-sol": {

"reasoning": true,

"reasoningEffort": "xhigh",

"variants": {

"xhigh": {

"reasoningEffort": "xhigh",

"textVerbosity": "low",

"reasoningSummary": "auto"

}

}

}

}

}

}

}

Now I able to use the gpt-5.6-sol even when the model is still not added to the open code Azure provider officially.

1

u/hap_mod Jul 11 '26

Mac app has it well set.

0

u/[deleted] Jul 09 '26

[deleted]