opencode

package
v0.21.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 10 Imported by: 0

README

OpenCode App

Installs and configures OpenCode — a terminal-based AI code editor.

After Installation

Start OpenCode:

opencode

View configuration:

ls ~/.config/opencode/

Provider

Use OpenRouter — one API key, access to all models below.

export OPENROUTER_API_KEY="your-key-here"

Models

Model Role
anthropic/claude-opus-4 Hardest reasoning
qwen/qwen3-coder Daily coding (default)
moonshotai/kimi-k2 Agents + large repos
qwen/qwen3.5-coder-480b Deep review + architecture
minimax/minimax-m1 Cheap bulk tasks
When to switch
  • claude-opus-4 — when nothing else solves it
  • qwen3-coder — everyday coding, bug fixes, PR reviews
  • kimi-k2 — large codebases, multi-file refactors, long agent workflows
  • qwen3.5-coder-480b — architecture decisions, hard debugging, critical reviews
  • minimax-m1 — background or non-critical automation

Documentation

Index

Constants

View Source
const DEFAULT_THEME_NAME = "default"

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenCode

type OpenCode struct {
	Cmd  cmd.Command
	Base cmd.BaseCommandExecutor
}

func New

func New() *OpenCode

func (*OpenCode) ExecuteCommand

func (o *OpenCode) ExecuteCommand(args ...string) error

func (*OpenCode) ForceConfigure

func (o *OpenCode) ForceConfigure() error

func (*OpenCode) ForceInstall

func (o *OpenCode) ForceInstall() error

func (*OpenCode) Install

func (o *OpenCode) Install() error

func (*OpenCode) Kind added in v0.8.0

func (o *OpenCode) Kind() apps.AppKind

func (*OpenCode) Name added in v0.8.0

func (o *OpenCode) Name() string

func (*OpenCode) SoftConfigure

func (o *OpenCode) SoftConfigure() error

func (*OpenCode) SoftInstall

func (o *OpenCode) SoftInstall() error

func (*OpenCode) Uninstall

func (o *OpenCode) Uninstall() error

func (*OpenCode) Update

func (o *OpenCode) Update() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL