OpenCode
An open-source coding agent for your terminal that runs on your ChatGPT Plus plan.

About OpenCode
OpenCode is an open-source AI coding agent that works in your terminal, IDE or as a desktop app, with LSP support, multiple sessions and shareable links. It can use your ChatGPT Plus or Pro subscription with zero setup. (Claude Pro/Max is not supported: OpenCode removed it at Anthropic's request.)
Can you use your ChatGPT plan in OpenCode?
Yes. ChatGPT Plus or Pro, via your ChatGPT sign-in. OpenCode's own page says: "you can use the following subscriptions in OpenCode with zero setup: ChatGPT Plus"
How to connect your plan
ChatGPT Plus or Pro
- Run /connect and log in with your ChatGPT Plus or Pro account.
Made for
Questions
Can I use my Claude subscription in OpenCode?
No. OpenCode removed Claude Pro and Max sign-in at Anthropic's request, and its provider docs say Anthropic "explicitly prohibits" the plugins that add it back. To use your Claude plan in a terminal agent, see apps that use your Claude subscription.
Can I use my Gemini subscription in OpenCode?
No. Google stopped serving Google AI Pro and Ultra through Gemini CLI on 18 June 2026 and calls borrowing that login a violation of its terms. Use a Gemini API key, or see the Gemini guide.


