获取最强大脑连接:

# codex
npm i -g @openai/codex
 
# Claude
curl -fsSL https://claude.ai/install.sh | bash

登录自己的账号:

# codex
mkdir ~/.codex-l
CODEX_HOME=~/.codex-l codex login --device-auth
alias codex-l='CODEX_HOME=~/.codex-l codex'
echo "alias codex-l='VISUAL=vim CODEX_HOME=~/.codex-l codex --sandbox danger-full-access'" >> ~/.bashrc
 
# claude
mkdir ~/.claude-l
CLAUDE_CONFIG_DIR=~/.claude-l claude /login
alias cc-l='CLAUDE_CONFIG_DIR=~/.claude-l claude'
echo "alias cc-l='CLAUDE_CONFIG_DIR=~/.claude-l claude --dangerously-skip-permissions'" >> ~/.bashrc
 
# 取消其他中转站 API
unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN

网络端口:

export http_proxy=http://127.0.0.1:17890 
export https_proxy=http://127.0.0.1:17890
 
curl -X PUT 'http://127.0.0.1:19090/proxies/自动选择'     -H 'Content-Type: application/json'     -d '{"name":"🇹🇼台湾07 [Hinet家宽] [2x] [Anytls]"}'
 
ssh -R 17890:127.0.0.1:17890 hostname