This guide was tested on April 16th, 2026. If it’s not working, please check other alternatives in the Opencode setup guide.
Setup Steps
Create a Gateway Token
Before configuring Claude Code, you need a Gateway Token from Zylon.See Token Management for detailed instructions on creating Gateway tokens.
Set Environment Variables
Add the following to your shell configuration file (Replace
~/.zshrc or ~/.bashrc):your-host with your Zylon instance URL and your-gateway-token with your actual Gateway token. The model defaults to default.Confirm the variables are set correctly:Limitations
- Images are not supported
Troubleshooting
Connection Errors
- Verify
ZYLON_BASE_URLis correct and accessible - Ensure your Gateway token is valid and not expired
- Check network connectivity to your Zylon instance
Authentication Failures
- Confirm the token is copied correctly without extra whitespace
- Regenerate the token if it may have been compromised
- Verify the token has appropriate permissions