A new method allows developers to access Claude Opus 4.8 without cost through the OpenCode platform. By leveraging Agent Router, users can integrate the powerful AI model into both the OpenCode VS Code extension and OpenCode CLI.
To get started, sign up on Agent Router using a GitHub account that is at least one month old. New users receive $125 in initial credits, plus a $25 daily bonus that resets each day, effectively providing unlimited access to Claude's most advanced model.
Steps to set up:
- Install the OpenCode extension in VS Code.
- Edit the
opencode.jsoncconfiguration file. - Create a custom provider configuration for Agent Router, including the base URL and authentication headers.
- Generate an API token on Agent Router with custom expiration and model restrictions.
- Replace the token in the configuration file.
- Launch OpenCode and verify that Claude Opus 4.8 is active.
- Test with a live prompt to confirm functionality.
The same configuration also works with OpenCode CLI, making it a versatile solution for developers seeking free access to high-tier AI models.