Subsections of AI

ClaudeCode

Mar 7, 2024

Subsections of ClaudeCode

Linux

CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1" ANTHROPIC_BASE_URL="https://v2.qixuw.com" ANTHROPIC_AUTH_TOKEN="sk-ssss" claude
Mar 7, 2026

Windows

PowerShell

$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"
$env:ANTHROPIC_BASE_URL="https://v2.qixuw.com"
$env:ANTHROPIC_AUTH_TOKEN="sk-sss" # Replace with your API key
claude

One Line Command

$env:CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="1"; $env:ANTHROPIC_BASE_URL="https://v2.qixuw.com"; $env:ANTHROPIC_AUTH_TOKEN="sk-sss"; claude

Save to Environment Variables

[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL","https://v2.qixuw.com","User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN","sk-sss","User") # Replace!
[System.Environment]::SetEnvironmentVariable("CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","1","User")
Mar 7, 2026

OpenCode

Mar 7, 2024

Subsections of OpenCode

OpenCode + GPT

  1. create default configurtion file ~/.config/opencode/opencode.json
vim ~/.config/opencode/opencode.json

Copt Paster This Opencode Config

{
  "provider": {
    "openai": {
      "options": {
        "baseURL": "https://v2.qixuw.com/v1",
        "apiKey": "sk-sss"
      },
      "models": {
        "gpt-5-codex": {
          "name": "GPT-5 Codex",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {}
          }
        },
        "gpt-5.1-codex": {
          "name": "GPT-5.1 Codex",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {}
          }
        },
        "gpt-5.1-codex-max": {
          "name": "GPT-5.1 Codex Max",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {}
          }
        },
        "gpt-5.1-codex-mini": {
          "name": "GPT-5.1 Codex Mini",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {}
          }
        },
        "gpt-5.2": {
          "name": "GPT-5.2",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {},
            "xhigh": {}
          }
        },
        "gpt-5.4": {
          "name": "GPT-5.4",
          "limit": {
            "context": 1050000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {},
            "xhigh": {}
          }
        },
        "gpt-5.3-codex-spark": {
          "name": "GPT-5.3 Codex Spark",
          "limit": {
            "context": 128000,
            "output": 32000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {},
            "xhigh": {}
          }
        },
        "gpt-5.3-codex": {
          "name": "GPT-5.3 Codex",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {},
            "xhigh": {}
          }
        },
        "gpt-5.2-codex": {
          "name": "GPT-5.2 Codex",
          "limit": {
            "context": 400000,
            "output": 128000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {},
            "xhigh": {}
          }
        },
        "codex-mini-latest": {
          "name": "Codex Mini",
          "limit": {
            "context": 200000,
            "output": 100000
          },
          "options": {
            "store": false
          },
          "variants": {
            "low": {},
            "medium": {},
            "high": {}
          }
        }
      }
    }
  },
  "agent": {
    "build": {
      "options": {
        "store": false
      }
    },
    "plan": {
      "options": {
        "store": false
      }
    }
  },
  "$schema": "https://opencode.ai/config.json"
}

K8s Manifest

kubectl -n opencode apply -f - <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata:
  name: opencode-config
  namespace: opencode
data:
  opencode.json: |
    {
    "provider": {
        "openai": {
        "options": {
            "baseURL": "https://v2.qixuw.com/v1",
            "apiKey": "sk-sdf"
        },
        "models": {
            "gpt-5-codex": {
            "name": "GPT-5 Codex",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {}
            }
            },
            "gpt-5.1-codex": {
            "name": "GPT-5.1 Codex",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {}
            }
            },
            "gpt-5.1-codex-max": {
            "name": "GPT-5.1 Codex Max",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {}
            }
            },
            "gpt-5.1-codex-mini": {
            "name": "GPT-5.1 Codex Mini",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {}
            }
            },
            "gpt-5.2": {
            "name": "GPT-5.2",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {},
                "xhigh": {}
            }
            },
            "gpt-5.4": {
            "name": "GPT-5.4",
            "limit": {
                "context": 1050000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {},
                "xhigh": {}
            }
            },
            "gpt-5.3-codex-spark": {
            "name": "GPT-5.3 Codex Spark",
            "limit": {
                "context": 128000,
                "output": 32000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {},
                "xhigh": {}
            }
            },
            "gpt-5.3-codex": {
            "name": "GPT-5.3 Codex",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {},
                "xhigh": {}
            }
            },
            "gpt-5.2-codex": {
            "name": "GPT-5.2 Codex",
            "limit": {
                "context": 400000,
                "output": 128000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {},
                "xhigh": {}
            }
            },
            "codex-mini-latest": {
            "name": "Codex Mini",
            "limit": {
                "context": 200000,
                "output": 100000
            },
            "options": {
                "store": false
            },
            "variants": {
                "low": {},
                "medium": {},
                "high": {}
            }
            }
        }
        }
    },
    "agent": {
        "build": {
        "options": {
            "store": false
        }
        },
        "plan": {
        "options": {
            "store": false
        }
        }
    },
    "$schema": "https://opencode.ai/config.json"
    }
EOF

If you need to switch from different models, you can edit the ~/.bashrc

# 使用 MiniMax M2.5
alias oc-minimax='OPENCODE_CONFIG=~/.config/opencode/minimax.json opencode'

# 使用 OpenAI GPT-5.2-codex
alias oc-gpt='OPENCODE_CONFIG=~/.config/opencode/gpt.json opencode'

# 使用默认配置
alias oc='opencode'

And the source ~/.bashrc

Mar 7, 2026

OpenCode + MiniMax

Opencode Config

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "minimax": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MiniMax M2.5",
      "options": {
        "baseURL": "http://10.200.92.41:31551/v1",
        "apiKey": "sk-x"
      },
      "models": {
        "minimax-m2.5": {
          "name": "MiniMax M2.5",
          "id": "MiniMaxAI/MiniMax-M2.5",
          "limit": {
            "context": 196608,
            "output": 8192
          }
        }
      }
    }
  },
  "model": "minimax/minimax-m2.5"
}

K8s Manifest

kubectl -n opencode apply -f - <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata:
  name: opencode-config
  namespace: opencode
data:
  opencode.json: |
    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "minimax": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "MiniMax M2.5",
          "options": {
            "baseURL": "http://10.200.92.41:31551/v1",
            "apiKey": "sk-s"
          },
          "models": {
            "minimax-m2.5": {
              "name": "MiniMax M2.5",
              "id": "MiniMaxAI/MiniMax-M2.5",
              "limit": {
                "context": 196608,
                "output": 8192
              }
            }
          }
        }
      },
      "model": "minimax/minimax-m2.5"
    }
EOF
Mar 7, 2026

OpenCode + Sonset

{ “$schema”: “https://opencode.ai/config.json", “plugin”: [ ], “provider”: { “zzz”: { “name”: “中转站”, “npm”: “@ai-sdk/openai-compatible”, “models”: { “claude-sonnet-4-5-20250929-thinking”: { “name”: “Claude Sonnet 4.5 Thinking”, “reasoning”: true, “limit”: { “context”: 200000, “output”: 32000 }, “modalities”: { “input”: [“text”, “image”], “output”: [“text”] }, “options”: { “interleaved”: { “field”: “reasoning_content” } } } }, “options”: { “baseURL”: “http://154.37.218.75:3000/v1”, “apiKey”: “sk-sssss” } } }, “model”: “zzz/claude-sonnet-4-5-20250929-thinking”, “small_model”: “zzz/claude-sonnet-4-5-20250929-thinking”, “disabled_providers”: [] }