Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

1.8 KB
Raw Blame

OpenCode Example

Use OpenCode as the LLM provider for Repowise wiki generation. OpenCode handles its own auth and model selection; Repowise does not store OpenCode API keys.

Unlike Codex, there is no repowise init --opencode editor-integration flag today — this example covers the provider path documented in docs/agent/OPENCODE.md.

Prerequisites

curl -fsSL https://opencode.ai/install | bash
opencode                 # first run: configure provider + auth
opencode --version

Confirm Repowise sees the provider name:

repowise init --help | grep opencode

Setup

Index with OpenCode as the page-generation provider:

cd /path/to/your-repo
repowise init --provider opencode --yes

Fast smoke without LLM wiki generation (index + graph/git/health only):

repowise init --yes --no-prose

Then upgrade pages later with OpenCode:

repowise generate --provider opencode
# or:
REPOWISE_PROVIDER=opencode repowise update

Optional model selection (bare slug or opencode/ prefix):

repowise init --provider opencode --model opencode/default --yes
opencode models            # list models OpenCode knows about

Smoke Checks

opencode --version
opencode models
repowise status

Expected: OpenCode CLI responds, and repowise status shows an indexed repo after init completes.

What This Does Not Set Up

OpenCode has no Repowise project-file / hooks / plugin integration yet (see the comparison table in OPENCODE.md). For MCP + hooks + skills in an agent CLI, use the Codex example instead.

Related docs