{
  "_readme": [
    "Purpose: a project-scoped Claude Code settings file that points the tool at a local",
    "Anthropic-compatible endpoint, names the three model aliases, keeps non-essential",
    "network traffic off, and denies reads of credential files. Platform: all (spark,",
    "strix, mac, nvidia). Minimum memory: 16 GB for the model behind the endpoint.",
    "Assumes: saved as .claude/settings.json in the project, or ~/.claude/settings.json",
    "for every project. Every key is from the Claude Code settings, environment-variable",
    "and permissions documentation read on 2026-09-09. Read the lesson first: Anthropic's",
    "own gateway documentation states that routing Claude Code to non-Claude models",
    "through a gateway is not supported, so this configuration is an experiment you run",
    "with your eyes open, not a supported deployment.",
    "Delete this _readme key if your editor's schema validation objects to it."
  ],
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "env": {
    "ANTHROPIC_BASE_URL": "http://127.0.0.1:4000",
    "ANTHROPIC_AUTH_TOKEN": "${GATEWAY_KEY}",
    "ANTHROPIC_MODEL": "local/coder",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "local/coder",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "local/chat",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "local/coder",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "8192",
    "MAX_MCP_OUTPUT_TOKENS": "8000",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
    "BASH_DEFAULT_TIMEOUT_MS": "300000"
  },
  "permissions": {
    "defaultMode": "default",
    "allow": [
      "Bash(python3 -m pytest *)",
      "Bash(git diff *)",
      "Bash(git status)"
    ],
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(~/.ssh/**)",
      "Read(~/.aws/**)"
    ]
  }
}
