OpenCode
Connect OpenCode to XycAi through an OpenAI-compatible provider for terminal-based coding workflows.
One-click setup with our desktop client
Download the XycAi client to install and configure everything automatically — no manual steps needed.
Connection values
Create or edit opencode.json in your project and add XycAi as a custom provider:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"xycai": {
"npm": "@ai-sdk/openai-compatible",
"name": "XycAi",
"options": {
"baseURL": "https://apicdn.xyc.ai/v1",
"apiKey": "sk-xxxxxxxx"
},
"models": {
"deepseek-v4-pro": { "name": "deepseek-v4-pro" }
}
}
},
"model": "xycai/deepseek-v4-pro"
}
Verify the connection
Start opencode, select xycai/deepseek-v4-pro, and send a test prompt.
Troubleshooting
- Model names must match the model square exactly.
- Keep the key in a local file and never commit it to Git.