Remix.run Logo
hnrodey 6 hours ago

OpenCode

tshaddox 6 hours ago | parent | next [-]

Yes, although OpenCode works great with official Claude API keys that are on normal API pricing.

What Anthropic blocked is using OpenCode with the Claude "individual plans" (like the $20/month Pro or $100/month Max plan), which Anthropic intends to be used only with the Claude Code client.

OpenCode had implemented some basic client spoofing so that this was working, but Anthropic updated to a more sophisticated client fingerprinting scheme which blocked OpenCode from using this individual plans.

nullbyte 6 hours ago | parent | prev | next [-]

Protip for Mac people: If OpenCode looks weird in your terminal, you need to use a terminal app with truecolor support. It looks very janky on ANSI terminals but it's beautiful on truecolor.

I recommend Ghostty for Mac users. Alacritty probably works too.

mayhemducks 5 hours ago | parent [-]

Thank you for this comment! I knew it was something like this. I've been using it in the VSCode terminal, but you're right, the ANSI terminal just doesn't work. I wasn't quite sure why!

stevejb 6 hours ago | parent | prev [-]

Is this still the case? Is Anthropic still not allowing access to OpenCode?

cedws 6 hours ago | parent [-]

Officially, it's against TOS. I'm told you can still make it work by adding this to ~/.config/opencode/opencode.json but it risks a ban and you definitely shouldn't do it.

  {
    "plugin": [
      "opencode-anthropic-auth@latest"
    ]
  }
stevejb 6 hours ago | parent | next [-]

Ah interesting. I have been using OpenCode more and more and I prefer it to Claude Code. I use OpenCode with Sonnet and/or Opus (among other models) with Bedrock, but paying metered rates for Opus is a way to go bankrupt fast!

fc417fc802 5 hours ago | parent | prev [-]

Just like I shouldn't use an unofficial play store client, right? No one would ever do that.