跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    fosterbarnes

    Open Sidebar

    v1.2.15界面与主题
    open-sidebar

    Directory browsing and pinned project scripts for the OpenCode TUI

    GitHub 星标

    0

    月装机量

    808

    近 7 天 808

    综合评分SCORE

    37.9

    生态多维模型

    最近提交

    8 小时前

    2026-08-20

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["open-sidebar@1.2.15"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    Sidebar customization plugin for OpenCode.

    NOT COMPLETE - tested only on Windows 10 LTSC IoT. Linux/Mac planned but not guaranteed to work. PRs/forks welcome.

    Features

    Header buttons

    > Switch Session : clicking here invokes the 'switch session' command

    > model : brings up the 'select model' menu. the label shows the current model

    > weight : toggle through model weight / variant options

    Usage Meter

    Supported subscriptions

    • Codex
    • OpenCode Go
    • Cursor

    Supported API services

    • OpenRouter

    Files / Scripts

    Scripts

    Quickly run or reference project scripts. Left-click a script to run it, right-click to drop the path into chat. Runs go through the configured shell/language runner.

    Files

    Browse files right in the sidebar. Folders expand on left-click. Left-click a file, or right-click anything, to paste its quoted path into chat. Current directory tries to auto-set based on how the OpenCode session was started, but this can also be manually entered by clicking on the files header.

    Built in search leverages Everything by Void Tools to quickly search files/folders in your active OpenCode session directory.

    Install

    opencode plugin -g open-sidebar
    

    Restart OpenCode.