Claude Code

Use uncensored models in Claude Code

Point Claude Code at Silk Compute with one settings file. Every model we serve then shows up in /model.

1. Install Claude Code

curl -fsSL https://claude.ai/install.sh | bash

2. Set your API key

Create a key on the API keys page, then export it. Add the line to ~/.zshrc or ~/.bashrc so new terminals have it too.

Shell
export SILK_API_KEY="sk-..."

3. Add Silk Compute

Paste this into ~/.claude/settings.json. If the file already has settings, add these keys to them.

~/.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-fast-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" },
      { "model": "hy4-uncensored", "label": "Hy4" }
    ]
  }
}

4. Run it

Shell
claude

Switch models with /model and effort with /effort.

Troubleshooting

Run this in the same terminal. A list of models means the key works. A 401 means SILK_API_KEY is empty or wrong there.

Shell
curl -s https://api.silkcompute.com/models -H "Authorization: Bearer $SILK_API_KEY"

Notes

Your account runs up to 8 requests at once, so subagents work in parallel. See Limits and errors.

Anthropic server tools such as web search are not available.