Skip to content

Instantly share code, notes, and snippets.

@gracefullight
Last active September 13, 2026 13:39
Show Gist options
  • Select an option

  • Save gracefullight/5b55250afb9b8a2fea1589d0f61ad84b to your computer and use it in GitHub Desktop.

Select an option

Save gracefullight/5b55250afb9b8a2fea1589d0f61ad84b to your computer and use it in GitHub Desktop.
Qwen Code ~/.qwen/settings.json (tokens redacted)
{
"env": {
"MODELSCOPE_API_TOKEN": ""
},
"modelProviders": {
"openai": [
{
"id": "Qwen/Qwen3.8-27B",
"name": "Qwen/Qwen3.8-27B",
"baseUrl": "https://api-inference.modelscope.ai/v1",
"envKey": "MODELSCOPE_API_TOKEN",
"generationConfig": {
"timeout": 300000
}
},
{
"id": "deepseek-ai/DeepSeek-V4-Pro-0813",
"name": "deepseek-ai/DeepSeek-V4-Pro-0813",
"baseUrl": "https://api-inference.modelscope.ai/v1",
"envKey": "MODELSCOPE_API_TOKEN",
"generationConfig": {
"timeout": 300000
}
}
]
},
"$version": 4,
"security": {
"auth": {
"selectedType": "openai"
}
},
"model": {
"name": "Qwen/Qwen3.8-27B",
"baseUrl": "https://api-inference.modelscope.ai/v1"
},
"mcpServers": {
"modelscope-image": {
"command": "npx",
"args": [
"-y",
"@gracefullight/modelscope-image-mcp",
"--model",
"krea-community/Krea-2-Turbo"
],
"env": {
"MODELSCOPE_API_TOKEN": "$MODELSCOPE_API_TOKEN"
},
"timeout": 660000
}
},
"permissions": {
"deny": [
"Bash(sudo *)",
"Bash(rm -rf *)",
"Bash(git push --force *)",
"Bash(git push -f *)",
"Bash(git reset --hard *)",
"Read(~/.ssh/**)",
"Read(~/.aws/**)",
"Read(~/.qwen/settings.json)"
]
},
"tools": {
"approvalMode": "yolo"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment