TPToolPazar
Ana Sayfa/Rehberler/How To Use Opencode

How To Use Opencode

📖 Bu rehber ToolPazar ekibi tarafından hazırlanmıştır. Tüm araçlarımız ücretsiz ve reklamsızdır.

What OpenCode actually is

OpenCode is an open-source terminal AI coding agent from the sst team. It runs in your shell, reads and edits files in your repo, runs commands, and brings its own TUI so you can keep coding without leaving the terminal.

Installing

OpenCode is a standalone, model-agnostic agent. It is not a VS Code extension and it is not a wrapper around someone else’s CLI. You point it at a directory, give it a task, and it plans, edits files, and executes shell commands inside that working tree. It supports Anthropic, OpenAI, Google, and local providers via their own keys or a gateway, so you pay the model vendor directly instead of a middleman.

A first session

Multi-file refactors where you want the agent to grep the repo, edit five files, run tests, and iterate until green — all without leaving tmux. The TUI’s diff view is genuinely good, and because it is provider-agnostic you can keep your existing API keys. It also plays well with SSH sessions on a remote dev box, which is something most editor-bound agents handle poorly.

Configuration that matters

Where OpenCode shines

When not to reach for it