<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf" -->

---
title: OpenCode: The Open Source Coding Agent That Doesn't Lock...
description: OpenCode is an open source, model-agnostic AI coding agent built in Go by the SST team, supporting 75+ LLM providers including Claude, GPT, Gemini, and local...
canonical: https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: OpenCode: The Open Source Coding Agent That Doesn't Lock You In | daily.dev
og:description: OpenCode is an open source, model-agnostic AI coding agent built in Go by the SST team, supporting 75+ LLM providers including Claude, GPT, Gemini, and local...
og:url: https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf
og:image: https://api.daily.dev/og/posts/YRJi1QwKF.png
og:image:alt: OpenCode: The Open Source Coding Agent That Doesn't Lock You In
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode: The Open Source Coding Agent That Doesn't Lock You In

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · 7 min read · 2 upvotes · 2 comments

## Summary

OpenCode is an open source, model-agnostic AI coding agent built in Go by the SST team, supporting 75+ LLM providers including Claude, GPT, Gemini, and local Ollama models. It surpassed Claude Code in GitHub stars (160K+ vs 122K+) and has over 7.5 million monthly users. Key differentiators include a nicer terminal UX, no subscription lock-in, and true model-switching mid-session, though it lags Claude Code in orchestration features (Agent View, /goal mode) and has a known issue with unauthorized code reformatting. In January 2026, Anthropic blocked OpenCode users from authenticating via Claude.ai credentials, forcing API key usage and pushing many users toward Gemini and open models instead. The piece weighs pros, cons, and use cases for choosing between OpenCode and Claude Code.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/open-code-open-source-agent>

## Questions this post answers

### Why did OpenCode stop working with my Claude Pro login?

Anthropic changed its OAuth policy on January 9, 2026 to block third-party applications from authenticating users through Claude.ai accounts, citing security and ToS compliance. OpenCode users who relied on Claude Pro login lost access overnight. You can still use Claude models in OpenCode, but only through a separate Anthropic API key, not Claude.ai subscription credentials.

_Track shifts like this one before an agent workflow breaks overnight by following coding-agent news on daily.dev._

### How does OpenCode compare to Claude Code in terms of model support and pricing?

OpenCode supports 75+ LLM providers including Claude, GPT, Gemini, and local Ollama models, letting you switch mid-session, while Claude Code only talks to Anthropic's own models. OpenCode has no software subscription; options include bring-your-own-key, a pay-as-you-go OpenCode Zen gateway, or OpenCode Go at $10/month, versus Claude Code's $100 or $200 monthly Max plans.

_Compare agent pricing and model flexibility before locking into a monthly plan, right on daily.dev._

### What is the known issue with OpenCode reformatting code without permission?

Multiple testers reported that OpenCode, across all tested models, reformats existing code without authorization, which creates noisy diffs and erodes trust on mature codebases with established style guides. This is tracked in an open GitHub issue and is described as the most common complaint in real-world use of the tool.

_Weigh known agent quirks like this before trusting one with a production codebase, on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@geniusatwork** · 2 upvotes

> For a while Anthropic had the best models. Dario thought users can't switch. Now the tables have turned.

**@dmytriis** · 0 upvotes

> “Switch models mid-session” is not the same thing as session portability.
>
> Fresh example: Ollama emits reasoning as `reasoning`; OpenCode’s OpenAI-compatible path expects `reasoning_content`, so the answer can disappear.
>
> The UI can switch providers long before the accumulated conversation becomes semantically portable.

## Similar posts on daily.dev

- [OpenCode: An Open-Source Claude Code Alternative](https://daily.dev/posts/opencode-an-open-source-claude-code-alternative-bhgmsi3uq) · DigitalOcean Community · 1 upvotes · 0 comments
- [I stopped paying for multiple AI coding tools and built one setup that can use Claude, GPT, Gemini, and local models](https://daily.dev/posts/i-stopped-paying-for-multiple-ai-coding-tools-and-built-one-setup-that-can-use-claude-gpt-gemini--4a44dlugk) · XDA Developers · 0 upvotes · 0 comments
- [Open-source coding agents like OpenCode, Cline, and Aider are solving a huge headache for developers](https://daily.dev/posts/open-source-coding-agents-like-opencode-cline-and-aider-are-solving-a-huge-headache-for-developers-77xyw8rmy) · The New Stack · 4 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#anthropic](https://daily.dev/tags/anthropic), [#claude-code](https://daily.dev/tags/claude-code), [#opencode](https://daily.dev/tags/opencode)

[View this post on daily.dev](https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"OpenCode: The Open Source Coding Agent That Doesn't Lock You In","url":"https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf"},"datePublished":"2026-08-24T00:22:04.886Z","dateModified":"2026-09-14T08:25:38.092Z","description":"OpenCode is an open source, model-agnostic AI coding agent built in Go by the SST team, supporting 75+ LLM providers including Claude, GPT, Gemini, and local...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb62a8dbe11d621ad37cd2f1d3c2b36d?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb62a8dbe11d621ad37cd2f1d3c2b36d?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Playful Programming","logo":"https://media.daily.dev/image/upload/s--WoGOmY81--/f_auto,q_auto/v1773697582/logos/playfulprogramming?_a=BAMAMiiu0","url":"https://daily.dev/sources/playfulprogramming"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"ai-agents,anthropic,claude-code,opencode","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"OpenCode: The Open Source Coding Agent That Doesn't Lock You In"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf","comment":[{"@type":"Comment","text":"For a while Anthropic had the best models. Dario thought users can’t switch. Now the tables have turned.","datePublished":"2026-08-25T06:32:19.292Z","url":"https://daily.dev/posts/YRJi1QwKF#c-RfTfVKXVF","author":{"@type":"Person","name":"Sam Dolin","url":"https://daily.dev/geniusatwork","image":"https://media.daily.dev/image/upload/s--nUhoZxKm--/f_auto/v1787434895/avatars/avatar_75QyPrL3BZgArSo6aFWuZ?_a=BAMAMicg0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"“Switch models mid-session” is not the same thing as session portability.\nFresh example: Ollama emits reasoning as reasoning; OpenCode’s OpenAI-compatible path expects reasoning_content, so the answer can disappear.\nThe UI can switch providers long before the accumulated conversation becomes semantically portable.","datePublished":"2026-08-31T18:14:27.408Z","url":"https://daily.dev/posts/YRJi1QwKF#c-jOfE43vHz","author":{"@type":"Person","name":"Dmytrii S.","url":"https://daily.dev/dmytriis","image":"https://avatars.githubusercontent.com/u/946519?v=4"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/opencode-the-open-source-coding-agent-that-doesn-t-lock-you-in-yrji1qwkf#faq","mainEntity":[{"@type":"Question","name":"Why did OpenCode stop working with my Claude Pro login?","acceptedAnswer":{"@type":"Answer","text":"Anthropic changed its OAuth policy on January 9, 2026 to block third-party applications from authenticating users through Claude.ai accounts, citing security and ToS compliance. OpenCode users who relied on Claude Pro login lost access overnight. You can still use Claude models in OpenCode, but only through a separate Anthropic API key, not Claude.ai subscription credentials. Track shifts like this one before an agent workflow breaks overnight by following coding-agent news on daily.dev."}},{"@type":"Question","name":"How does OpenCode compare to Claude Code in terms of model support and pricing?","acceptedAnswer":{"@type":"Answer","text":"OpenCode supports 75+ LLM providers including Claude, GPT, Gemini, and local Ollama models, letting you switch mid-session, while Claude Code only talks to Anthropic's own models. OpenCode has no software subscription; options include bring-your-own-key, a pay-as-you-go OpenCode Zen gateway, or OpenCode Go at $10/month, versus Claude Code's $100 or $200 monthly Max plans. Compare agent pricing and model flexibility before locking into a monthly plan, right on daily.dev."}},{"@type":"Question","name":"What is the known issue with OpenCode reformatting code without permission?","acceptedAnswer":{"@type":"Answer","text":"Multiple testers reported that OpenCode, across all tested models, reformats existing code without authorization, which creates noisy diffs and erodes trust on mature codebases with established style guides. This is tracked in an open GitHub issue and is described as the most common complaint in real-world use of the tool. Weigh known agent quirks like this before trusting one with a production codebase, on daily.dev."}}]}
```

