OpenCode
Add Veil as an OpenCode provider.
Add a custom provider to opencode.json in the project, or to ~/.config/opencode/opencode.json for every project.
Use a separate account for each tool. A key in a tool's config can spend that account's whole balance. Model ids are exact: deepseek-v4.1-flash-1017-abliterated is the default, deepseek-v4.1-flash-1017-abliterated:thinking is slower and better on hard problems.
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"veil": {
"npm": "@ai-sdk/openai-compatible",
"name": "Veil",
"options": {
"baseURL": "https://veil.st/openai/v1",
"apiKey": "{env:VEIL_API_KEY}"
},
"models": {
"deepseek-v4.1-flash-1017-abliterated": { "name": "DeepSeek V4.1 Flash 1017 Abliterated" }
}
}
},
"model": "veil/deepseek-v4.1-flash-1017-abliterated"
}Export the key and start OpenCode:
export VEIL_API_KEY=ak_...
opencodePick veil/deepseek-v4.1-flash-1017-abliterated with /models if the default is not selected.
Reasoning variants
On the :thinking id OpenCode shows default, low, medium and high. Only three levels exist here: default sends no effort and the server uses high; low is cheaper;high is the explicit default. medium is not a server level and falls back to high. Values above high are max, which OpenCode may not offer.