opencode in PowerShell, CMD, or WSL and access models through TreeRouter.scoop install opencodechoco install opencodeOpenCode Token.Important: Select Copy Key, not Copy Connection Information.
My OpenCode.https://treerouter.com/v1.https://treerouter.com/v1. If a different endpoint is shown on the TreeRouter website or provided by customer support, use that endpoint instead.Important: After activating the configuration, close all open PowerShell, CMD, and WSL terminal windows, then open a new terminal. This ensures that OpenCode CLI reads the latest configuration written by CC Switch.
Confirm in one sentence that the connection is working./initAGENTS.md in the project root.opencode Is Not Recognized as a CommandPATH environment variable..env file with an old API key or base URL.OPENAI_API_KEY, OPENAI_BASE_URL, or related environment variables have not been set manually on the computer.opencode auth login, OpenCode may have stored credentials for an old provider. Run the following command to view the signed-in providers:opencode again.