<!-- 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&#x27;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&#x27;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&#x27;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 can't I log into OpenCode with my Claude Pro subscription anymore?

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 was the primary casualty since many users relied on Claude Pro login. You can still use Claude models in OpenCode, but only through a separate Anthropic API key, not Claude.ai subscription credentials.

_Developers tracking AI coding tool policy changes like this can follow updates on daily.dev._

### How many GitHub stars does OpenCode have compared to Claude Code?

OpenCode has surpassed Claude Code with over 160,000 GitHub stars versus Claude Code's 122,000+, making it the most starred open source coding agent. OpenCode also reports over 7.5 million monthly developers, reflecting rapid adoption driven largely by its model-agnostic design supporting 75+ LLM providers.

_Compare adoption trends across AI coding agents like OpenCode and Claude Code on daily.dev._

### What is the difference in pricing between OpenCode and Claude Code?

OpenCode has no subscription fee for the software itself; you pay providers directly, use OpenCode Zen pay-as-you-go, or subscribe to OpenCode Go for $10/month with access to models like GLM, Kimi K2, Qwen, DeepSeek, and MiniMax. Claude Code costs $100/month for Max 5x or $200/month for Max 20x, making OpenCode cheaper for individuals watching AI spend but potentially costlier per task for power users hitting limits.

_Weigh AI coding tool costs like these before committing to a plan, with insights on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@geniusatwork** · 1 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.

---

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-08-24T00:22:29.321Z","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":1}},{"@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 can't I log into OpenCode with my Claude Pro subscription anymore?","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 was the primary casualty since many users relied on Claude Pro login. You can still use Claude models in OpenCode, but only through a separate Anthropic API key, not Claude.ai subscription credentials. Developers tracking AI coding tool policy changes like this can follow updates on daily.dev."}},{"@type":"Question","name":"How many GitHub stars does OpenCode have compared to Claude Code?","acceptedAnswer":{"@type":"Answer","text":"OpenCode has surpassed Claude Code with over 160,000 GitHub stars versus Claude Code's 122,000+, making it the most starred open source coding agent. OpenCode also reports over 7.5 million monthly developers, reflecting rapid adoption driven largely by its model-agnostic design supporting 75+ LLM providers. Compare adoption trends across AI coding agents like OpenCode and Claude Code on daily.dev."}},{"@type":"Question","name":"What is the difference in pricing between OpenCode and Claude Code?","acceptedAnswer":{"@type":"Answer","text":"OpenCode has no subscription fee for the software itself; you pay providers directly, use OpenCode Zen pay-as-you-go, or subscribe to OpenCode Go for $10/month with access to models like GLM, Kimi K2, Qwen, DeepSeek, and MiniMax. Claude Code costs $100/month for Max 5x or $200/month for Max 20x, making OpenCode cheaper for individuals watching AI spend but potentially costlier per task for power users hitting limits. Weigh AI coding tool costs like these before committing to a plan, with insights on daily.dev."}}]}
```

