Force Input
OpenCode TUI plugin that interrupts the active run and submits the prompt with Ctrl+Enter.
3
近 30 天 +2
1,857
近 7 天 928
48.3
生态多维模型
47 分钟前
2026-10-05
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@mynameistito/opencode-force-input@1.1.9"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@mynameistito/opencode-force-input@1.1.9"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @mynameistito/opencode-force-inputOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Personal OpenCode V2 (@opencode/cli) Plugins.
Packages
@mynameistito/opencode-force-input
Interrupts the active run and force-submits the current prompt with Ctrl+Enter.
Install it with OpenCode's plugin command:
opencode2 plugin add "@mynameistito/opencode-force-input@latest" -g
See the force-input README for manual configuration and Windows Terminal key bindings.
@mynameistito/opencode-usage-limits
Shows provider usage limits in the sidebar and prompt footer.
Supported providers:
- Alibaba Token Plan
- ChatGPT
- Command Code
- DeepSeek
- Novita AI
- OpenCode GO
- MiniMax Token Plan
- Synthetic
- Qwen
- ZAI Coding Plan
Install it with:
opencode2 plugin add "@mynameistito/opencode-usage-limits@latest" -g
See the usage-limits README for provider credentials, configuration, and troubleshooting.
Local Development
Build the workspace and load the source entrypoints from ~/.config/opencode/cli.json:
{
"$schema": "https://opencode.ai/v2/cli.json",
"plugins": [
"/path/to/opencode-plugins/packages/opencode-force-input/src/index.ts",
"/path/to/opencode-plugins/packages/opencode-usage-limits/src/index.ts",
],
}
Development
bun install --frozen-lockfile
bun run typecheck
bun run check
bun run test
bun run build
Use the root Changesets helper for user-facing changes:
bun run changeset-add -- docs patch "Describe the documentation change"
bun run changeset-add -- force-input patch "Describe the change"
bun run changeset-add -- usage-limits minor "Describe the change"
Packages are independently publishable. Build output is generated during packaging and is not committed.
同类生态推荐
Usage Limits
@mynameistito/opencode-usage-limits
OpenCode TUI plugin that shows Codex, Command Code, OpenCode GO, ZAI, Synthetic, MiniMax Token Plan, and Qwen usage limits in the sidebar and prompt footer.
Model Fallback
@smart-coders-hq/opencode-model-fallback
OpenCode plugin for ordered model fallback chains, preemptive redirect, and automatic rate limit recovery.
Autopilot
opencode-autopilot
Autonomous task orchestration for OpenCode — centralized backlog, auto-dispatch, session lifecycle, telemetry