Updated
Abliterated API in Claude Code
Claude Code runs on an abliterated model once ~/.claude/settings.json points ANTHROPIC_BASE_URL at a provider that serves the Messages format. Every model then shows up in /model.
- 1
Install Claude Code
Or keep the copy you have.
macOS and Linuxcurl -fsSL https://claude.ai/install.sh | bashWindowsirm https://claude.ai/install.ps1 | iex - 2
Set your key
Create a key on Silk Compute's API keys page and add credits from $5. Keep it in an environment variable. Add the line to
~/.zshrcor~/.bashrc, andapiKeyHelperpasses it to Claude Code.Shellexport SILK_API_KEY="sk-..." - 3
Add the settings
Merge the file below into
~/.claude/settings.json. The opus and fable aliases map to the priciest model, haiku to the lowest. - 4
Run it
Switch models with
/modeland effort with/effort. An account runs 8 requests at once, so subagents work in parallel.RunclaudeCheck the keycurl -s https://api.silkcompute.com/models -H "Authorization: Bearer $SILK_API_KEY"
settings.json
~/.claude/settings.json{
"apiKeyHelper": "echo $SILK_API_KEY",
"env": {
"ANTHROPIC_BASE_URL": "https://api.silkcompute.com",
"ANTHROPIC_DEFAULT_MODEL": "deepseek-v4.1-flash-1017-uncensored",
"ANTHROPIC_DEFAULT_FABLE_MODEL": "kimi-k3.1-pro-uncensored",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3.1-pro-uncensored",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-v4.1-flash-1017-uncensored",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash-1017-uncensored",
"CLAUDE_CODE_MAX_CONTEXT_TOKENS": "1048576"
},
"modelPicker": {
"replaceBuiltInOptions": true,
"options": [
{ "model": "kimi-k3.1-pro-uncensored", "label": "Kimi K3.1 Pro" },
{ "model": "deepseek-v4.1-flash-1017-uncensored", "label": "DeepSeek V4.1 Flash 1017" },
{ "model": "deepseek-v4.1-flash-1017-fast-uncensored", "label": "DeepSeek V4.1 Flash 1017 Fast" },
{ "model": "glm-5.3-uncensored", "label": "GLM-5.3" },
{ "model": "glm-5.3-flash-uncensored", "label": "GLM-5.3 Flash" }
]
}
}Example output
/model
Kimi K3.1 Pro
DeepSeek V4.1 Flash 1017
DeepSeek V4.1 Flash 1017 Fast
GLM-5.3
GLM-5.3 Flash