Skip to content

DongHyunnn/openrtk-opencode-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openrtk-opencode-plugin

Use RTK automatically inside OpenCode by installing a local openrtk plugin.

This package installs a user-level OpenCode plugin in ~/.config/opencode/plugins/openrtk. It does not modify your application repositories.

Install

One-command install

After you publish this repo, users can install it with one command:

curl -fsSL https://raw.githubusercontent.com/DongHyunnn/openrtk-opencode-plugin/main/install.sh | bash -s -- --install-rtk

If rtk is already installed:

curl -fsSL https://raw.githubusercontent.com/DongHyunnn/openrtk-opencode-plugin/main/install.sh | bash

Clone and run

Clone the repo and run the installer:

git clone https://github.com/DongHyunnn/openrtk-opencode-plugin.git
cd openrtk-opencode-plugin
./install.sh --install-rtk

If rtk is already installed, you can skip the RTK bootstrap step:

./install.sh

What the installer does:

  • optionally installs rtk into ~/.local/bin
  • installs the openrtk plugin into ~/.config/opencode/plugins/openrtk
  • patches ~/.config/opencode/opencode.json
  • creates a timestamped backup before editing config

Verify

Restart OpenCode, then run:

git status
rtk gain --history

Success looks like this:

  • git status prints RTK-style compact output
  • rtk gain --history shows a fresh rtk git status entry

Supported Commands

Common wrappers included by default:

  • git, gh
  • cat, rg, grep, ls, tree, find, diff
  • npm, pnpm, vitest, tsc, vue-tsc, eslint, prettier, playwright, prisma
  • docker, kubectl, curl, wget
  • pytest, ruff, pip, uv, go, golangci-lint, cargo, mix, iex

Behavior depends on which underlying tools are installed on the machine.

Uninstall

Remove the plugin directory and the plugin entry from ~/.config/opencode/opencode.json, then restart OpenCode:

rm -rf ~/.config/opencode/plugins/openrtk

Repo Layout

  • plugin/ - the OpenCode plugin files
  • install.sh - installer for end users

About

Rust Token Killer(RTK)[https://github.com/rtk-ai/rtk?tab=readme-ov-file] plugin for OpenCode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors