opencode

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package opencode is the OpenCode client. Unlike the other clients, OpenCode has a single abstract routing flavor: the real protocol (OpenAI Responses, OpenAI Chat, Anthropic Messages, Bedrock, Vertex, Gemini) is decided at launch time from the chosen provider's compatibility map. The Menu flow goes straight from provider selection to launch; model selection happens inside OpenCode itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

Client is the OpenCode client.

func (*Client) BinaryName

func (c *Client) BinaryName() string

BinaryName implements clients.Client.

func (*Client) CommonPaths

func (c *Client) CommonPaths() []string

CommonPaths implements clients.Client.

func (*Client) Install

func (c *Client) Install(_ *config.Global) clients.InstallPlan

Install implements clients.Client.

func (*Client) IsInstalled

func (c *Client) IsInstalled() bool

IsInstalled implements clients.Client.

func (*Client) Menu

func (c *Client) Menu(g *config.Global) menu.MenuItem

Menu implements clients.Client.

func (*Client) Name

func (c *Client) Name() string

Name implements clients.Client.

func (*Client) QuickSelectLabel

func (c *Client) QuickSelectLabel(g *config.Global) string

QuickSelectLabel implements clients.Client.

func (*Client) Replay

func (c *Client) Replay(g *config.Global) tea.Cmd

Replay implements clients.Client.

func (*Client) Uninstall

func (c *Client) Uninstall() clients.UninstallPlan

Uninstall implements clients.Client.

Jump to

Keyboard shortcuts

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