Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OpenCode Introduction

OpenCode Introduction

More Decks by NearMeの技術発表資料です

Transcript

  1. 1 • https://opencode.ai • https://github.com/anomalyco/opencode • OpenCode is an open

    source AI coding agent. It’s available as a terminal-based interface, desktop app, or IDE extension. What is OpenCode?
  2. 2 • Not coupled to any provider. ◦ OpenCode can

    be used with Claude, OpenAI, Google, or even local models. ◦ Why is provider-agnostic important? ▪ License, cost, capability and availability for each provider and model currently may vary in the future. • 100% open source. • Very rich terminal user interface (TUI). • Built-in LSP support. • Client/server architecture. ◦ Run on computer, connect from somewhere else (mobile, other PC). ◦ Extension flexibility (third-party UI). Why OpenCode? (vs Claude Code etc.)
  3. 3 • Still under development, not so stable. ◦ I

    often encounter a bug where the changes preview becomes empty • Provider-agnostic is good, but what is the cost? ◦ Deal with lots of adapters ◦ Losing exclusive features due to abstractions, for example: ▪ native Google search for grounding in Gemini API ▪ native web-search-tool in Claude ◦ New model/provider support might be slower • No longer compatible with Claude subscriptions. ◦ This is rather a limitation on Anthropic’s side. OpenClaw is affected too. Limitations of OpenCode
  4. 4 • Use with Anthropic API keys. ◦ Currently we

    are already using Claude Code through API keys instead of subscriptions. • Use with GitHub Copilot. ◦ This is a wow moment. We already have subscriptions, it will be a waste if we don’t utilize them before the start of the next month. ◦ Check monthly usage and quota at https://github.com/settings/copilot/features Using OpenCode in NearMe
  5. 5 • ~/.config/opencode/opencode.json • I referenced our claude options •

    If you want to use custom providers (local llama.cpp), you can specify it in the config file OpenCode Config
  6. 6 OpenCode Demo • Create a simple chat UI that

    runs Gemma 4 E2B natively in browser using WebGPU with transformers.js.