OpenCode is an open-source AI coding assistant that runs in your terminal.Documentation Index
Fetch the complete documentation index at: https://docs.ollama.com/llms.txt
Use this file to discover all available pages before exploring further.
Install
Install the OpenCode CLI:OpenCode requires a larger context window. It is recommended to use a context window of at least 64k tokens. See Context length for more information.
Usage with Ollama
Quick setup
ollama launch opencode passes its configuration to OpenCode inline via the OPENCODE_CONFIG_CONTENT environment variable. OpenCode deep-merges its config sources on startup, so anything you declare in ~/.config/opencode/opencode.json is still respected and available inside OpenCode. Models declared only in opencode.json won’t appear in ollama launch’s model-selection menu.
