OpenCode

OpenCode

Configure AnyRouter as the OpenCode backend.

OpenCode is an open-source AI coding assistant with terminal and Web interfaces.

Switch an existing install to AnyRouter

  1. Run opencode upgrade to make sure the version is >= v1.14.24.
  2. Run opencode.
  3. Type /connect in the input box and choose openai.
  4. Enter your AnyRouter API Key.
  5. Choose the gpt-5.5 model.

Install OpenCode from scratch

1. Install OpenCode

Install or upgrade from the official page (version >= v1.14.24 recommended).

2. Run and configure

  • Run opencode.
  • Type /connect and choose openai.
  • Enter your API Key.
  • Choose the gpt-5.5 model.