Xai Extras
OpenCode V2 plugin: xAI SuperGrok web search, X search, Grok Imagine, speech-to-text, and text-to-speech.
0
179
23 in 7 days
33.4
Multi-signal model
14 days ago
2026-09-20
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-xai-extras@0.0.2"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-xai-extras@0.0.2"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-xai-extrasOpenCode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
OpenCode V2 plugins.
| Package | Plugin id | What it adds |
|---|---|---|
| opencode-xai-extras | ferspective07.xai-extras |
xAI SuperGrok web search, X search, Grok Imagine, speech-to-text, text-to-speech |
Each package has its own README (install, /connect, tools, options).
Development
pnpm install
pnpm check
Requires pnpm. pnpm check runs typecheck (every packages/*), oxlint, oxfmt, and Vitest.
New plugin:
pnpm new-plugin session-foo
That creates packages/session-foo (npm opencode-session-foo, plugin id ferspective07.session-foo). Add a row to the table above. Each package versions and publishes independently through Changesets.
After a user-facing change, record it:
pnpm changeset
On GitHub, pushing user-facing changes to main opens a Version packages PR. CI must pass; that PR is then merged automatically. That bump updates CHANGELOG, creates git tags plus GitHub Releases (opencode-xai-extras@x.y.z), and publishes to npm via trusted publishing.
Similar plugins
Open Grok Build
open-grok-build
Grok Build provider, OAuth, multi-account rotation, quota tracking and Imagine image generation for OpenCode v2.
Grok Imagine
opencode-grok-imagine-plugin
opencode plugin for xAI Grok Imagine image and video generation (grok-imagine-image, grok-imagine-image-quality, grok-imagine-video, grok-imagine-video-1.5-preview) via a CLIProxyAPI/OpenAI-compatible endpoint.
Feishu
opencode-feishu-plugin
Feishu/Lark plugin for OpenCode V2 — single-user topics as sessions, in-card permission approvals, streaming cards. Minimal permissions, no public endpoint.