opencode/packages/docs
2026-07-23 21:13:31 +00:00
..
api
assets docs: rebuild v2 documentation 2026-07-06 00:58:00 -04:00
build refactor(tools): unify tool APIs and result handling (#38367) 2026-07-23 21:13:31 +00:00
script
snippets/generated
AGENTS.md docs: add v2 configuration reference 2026-07-06 20:09:35 -04:00
agents.mdx
attachments.mdx
commands.mdx
compaction.mdx
config.mdx
docs.json
formatters.mdx
index.mdx
instructions.mdx
lsp.mdx
mcp-servers.mdx
migrate-v1.mdx
models.mdx
openapi.json
package.json
permissions.mdx
providers.mdx
README.md
references.mdx
sharing.mdx
skills.mdx
snapshots.mdx
themes.mdx
troubleshooting.mdx
warming.mdx

OpenCode documentation

The V2 documentation is a Mintlify site deployed from packages/docs on the dev branch.

Local preview

From this directory, run:

bun dev

The preview opens at http://localhost:3333 and reloads when MDX or docs.json changes.

Validate changes before opening a pull request:

bun validate
bun broken-links

The V2 theme token reference is generated from packages/tui/src/theme/v2/schema.ts. Regenerate it after schema changes:

bun run generate

bun validate checks that the committed snippet is current. The repository's generation workflow also refreshes it on pushes to dev, so Mintlify always receives the generated MDX as part of the published docs tree.

The hosted preview is available at opencode.mintlify.site.