Skip to content

Conversation

@ben-vargas
Copy link
Contributor

Description

This PR adds documentation for the ai-sdk-provider-opencode-sdk community provider, which enables using multiple AI providers through the OpenCode SDK.

What does this PR do?

  • Adds documentation for the OpenCode provider at content/providers/03-community-providers/102-opencode-sdk.mdx
  • Updates the community providers list in content/docs/02-foundations/02-providers-and-models.mdx

Key Features

The OpenCode provider offers a unified interface to multiple AI backends:

  • Multi-Provider Support - Access Anthropic Claude, OpenAI GPT, and Google Gemini through one interface
  • Model Shortcuts - Convenient OpencodeModels export for common model references
  • Server Management - Automatic server lifecycle with configurable startup timeout
  • Agent Modes - Support for 'build', 'plan', 'general', and 'explore' agent types
  • Version Compatibility - Works with AI SDK v6 and v5

Notes

OpenCode is a terminal-based AI coding assistant that provides a unified interface to various AI models. This provider is useful for developers who want to switch between AI backends without changing their code.

Testing

  • Documentation follows the existing community provider format
  • All installation methods (npm, pnpm, yarn, bun) are documented
  • Model capabilities table accurately reflects the provider's features
  • Links to the provider repository are working

@vercel-ai-sdk vercel-ai-sdk bot added ai/provider documentation Improvements or additions to documentation provider/community labels Jan 3, 2026
@ben-vargas ben-vargas force-pushed the docs/opencode-sdk-provider branch from 7b1f058 to 4b0850f Compare January 3, 2026 00:18
Add documentation for ai-sdk-provider-opencode-sdk, which enables using
multiple AI providers (Anthropic, OpenAI, Google) through the OpenCode SDK.
OpenCode is a terminal-based AI coding assistant with a unified interface.

Features:
- Multi-provider support (Anthropic Claude, OpenAI GPT, Google Gemini)
- Model shortcuts via OpencodeModels export
- Server management with auto-start capability
- Version compatibility for AI SDK v6 and v5
@ben-vargas ben-vargas force-pushed the docs/opencode-sdk-provider branch from 4b0850f to 16d01b5 Compare January 3, 2026 00:22
@lgrammel lgrammel merged commit f5ab4c1 into vercel:main Jan 5, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider documentation Improvements or additions to documentation provider/community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants