---
title: "OpenCode"
description: "Configure OpenCode providers, AI SDK packages, multiple connections, and OMO."
version: "en"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ochub.org/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenCode

OpenCode stores providers under `provider.<id>` in `opencode.json`, so several
connections coexist in one configuration. Choose a guide below.

- **Configure OpenCode** — Add providers under unique IDs, pick the right AI SDK package, and manage OMO
configuration.

[Read the guide](/opencode/configure)

- **Advanced OpenCode pitfalls** — Understand merged configuration, provider credentials, AI SDK protocol
adapters, rules, sharing, and local state.

[Read the guide](/opencode/advanced)

Source: https://docs.ochub.org/opencode/index.mdx
