readλ‘ κ·Έ μ리μμ μ§μ μ
λ ₯λ°λλ€.| λ³μ | μ΄λμ | νμ μ¬λΆ |
|---|---|---|
| DeepSeek API ν€ | platform.deepseek.com β API Keys | νμ |
| GitHub μμ΄λ + κ°μΈ μ‘μΈμ€ ν ν° (ghp_...) | github.com β Settings β Developer settings (repo κΆν) | νμ |
| ν λ κ·Έλ¨ λ΄ ν ν° | ν λ κ·Έλ¨ @BotFather β /newbot | μ ν |
~ $)pkg update -y && pkg upgrade -y
pkg install -y proot-distro
proot-distro install ubuntu
proot-distro login ubuntu
root@localhost:~#λ‘ λ°λλ©΄ ν΅κ³Ό.proot-distro login ubuntuλ‘ λ°λ‘ λμ΄κ°λ©΄ λλ€.root@)apt update && apt install -y curl git nano nodejs npm python3 python3-venv
npm install -g @anthropic-ai/claude-code
claude --version
2.x.x) μ°νλ©΄ ν΅κ³Ό.read -p "DeepSeek API ν€ μ
λ ₯: " DEEPSEEK_API_KEY
cat >> ~/.bashrc << EOF
export DEEPSEEK_API_KEY="$DEEPSEEK_API_KEY"
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=\$DEEPSEEK_API_KEY
export ANTHROPIC_MODEL=deepseek-v4-pro
EOF
grep -E 'DEEPSEEK_API_KEY|ANTHROPIC_' ~/.bashrc >> ~/.profile
source ~/.bashrc
echo $ANTHROPIC_BASE_URL
https://api.deepseek.com/anthropic μΆλ ₯λλ©΄ ν΅κ³Ό.deepseek-v4-pro κ³ μ . deepseek-chatμ 2026λ
7μ 24μΌλΆλ‘ μμ ν νκΈ°λ μ΄λ¦μ΄λΌ μ λ μ°μ§ μλλ€.mkdir -p ~/.claude
cat > ~/.claude/settings.json << 'EOF'
{
"env": {
"CLAUDE_CODE_ATTRIBUTION_HEADER": "0",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"ENABLE_TOOL_SEARCH": "true",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-v4-pro"
}
}
EOF
python3 -c "
import json, os
p = os.path.expanduser('~/.claude.json')
try:
with open(p) as f: d = json.load(f)
except FileNotFoundError:
d = {}
d['hasCompletedOnboarding'] = True
d['primaryApiKey'] = os.environ.get('DEEPSEEK_API_KEY','')
with open(p,'w') as f: json.dump(d, f, indent=2)
print('patched:', p)
"
patched: /root/.claude.json μΆλ ₯λλ©΄ ν΅κ³Ό.mkdir -p ~/work && cd ~/work
IS_SANDBOX=1 claude --dangerously-skip-permissions
deepseek-v4-pro νμλλ©΄ ν΅κ³Ό. heyμ²λΌ μ무 λ§μ΄λ μ³μ μλ΅+Cost νμκΉμ§ λμ€λ©΄ μμ νμΈ.cc μ리μμ€ λ±λ‘/exitλ‘ λ¨Όμ λμ€κ³ exit ν λ² λ β ν둬ννΈκ° ~ $μΈμ§ λ°λμ νμΈ"proot-distro should not be executed under PRoot" μλ¬κ° λλ€ β μ€λ λ λ² κ²ͺμλ μ¬κ³ λ€.echo "alias cc='proot-distro login ubuntu -- bash -lc \"cd ~/work && IS_SANDBOX=1 claude --dangerously-skip-permissions\"'" >> ~/.bashrc
source ~/.bashrc
cc
~ $)μμ cc λ κΈμλ‘ λ°λ‘ Claude Code λ¨λ©΄ μλ£.proot-distro login ubuntu
read -p "GitHub μμ΄λ: " GITHUB_USER
read -sp "GitHub ν ν°(ghp_...): " GITHUB_TOKEN; echo
read -p "μ λ ν¬ μ΄λ¦: " REPO_NAME
git config --global user.name "$GITHUB_USER"
git config --global user.email "$GITHUB_USER@users.noreply.github.com"
git config --global credential.helper store
curl -s -X POST -H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/user/repos -d "{\"name\":\"$REPO_NAME\"}"
cd ~/work
git init 2>/dev/null
git remote remove origin 2>/dev/null
git remote add origin "https://$GITHUB_USER:$GITHUB_TOKEN@github.com/$GITHUB_USER/$REPO_NAME.git"
git branch -M main
echo "<!DOCTYPE html><html><body><h1>Workstation Live</h1></body></html>" > index.html
git add -A && git commit -m "init: workstation"
git push -u origin main
curl -s -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/$GITHUB_USER/$REPO_NAME/pages" \
-d '{"source":{"branch":"main","path":"/"}}'
https://<μμ΄λ>.github.io/<λ ν¬>/ μ μ νμΈ.read -sp "ν
λ κ·Έλ¨ λ΄ ν ν°: " TG_TOKEN; echo
TG_CHAT=$(curl -s "https://api.telegram.org/bot$TG_TOKEN/getUpdates" \
| grep -o '"chat":{"id":[0-9-]*' | head -1 | grep -o '[0-9-]*$')
echo "export TG_TOKEN=\"$TG_TOKEN\"" >> ~/.bashrc
echo "export TG_CHAT=\"$TG_CHAT\"" >> ~/.bashrc
source ~/.bashrc
cat > ~/work/tg.sh << 'EOF'
#!/bin/bash
curl -s -X POST "https://api.telegram.org/bot$TG_TOKEN/sendMessage" \
-d chat_id=$TG_CHAT -d text="$1" >/dev/null
EOF
chmod +x ~/work/tg.sh
bash ~/work/tg.sh "π’ μν¬μ€ν
μ΄μ
κ°ν΅ μλ£"
CONSTITUTION.md λ§λ€μ΄μ€. μ΅μ 3μμΉλ§:
1) 루ν
/Shizuku κΈμ§
2) ν ν°μ μ λ λν λ‘κ·Έμ νλμ½λ©νμ§ λ§ κ² β read ν둬ννΈλ
νκ²½λ³μ νμΌμμλ§ μ½μ κ²
3) μ μΈμ
μ μ΄ λ¬ΈμλΆν° μ½κ³ μμν κ²
39μ»€λ° Β· 102νμΌ Β· 15,874μ€μ§λ¦¬ μ½μ§μ΄ μ 10λ¨κ³λ‘ μμΆλλ€. λ€μ ν°λΆν°λ μ΄κ±° νλλ©΄ λλλ€.