跳到正文
DEV Community· Ben Weller·· 4 小時前AI 評分49

Poor Man's Claude Pro:每月 $20 用手機編寫所需程式碼

Poor Man's Claude Pro

AI 導讀

作者分享以每月 $20 的 Claude Pro,透過手機連接自設伺服器,遠端使用 Claude 編寫程式碼、研究及設計文件。做法包括設定網頁伺服器和手機終端機,再以 SSH 和 tmux 啟動 Claude;如需建立程式碼儲存庫,可設定 GitHub CLI。

正文

Ben Weller

Poor Man's Claude Pro

Write all the code you'll ever need from your phone for $20 per month

A Yeti water bottle + a Nike T-shirt + Irish Spring 5 in 1: Body, Face, Shampoo, Conditioner, and 24 Hour Deodorant, or an AeroPress Go Portable Coffee Maker + a three-pack of the Field Notes memo books + the classic Swiss Army Knife, or The Power Broker + Graza Drizzle Extra Virgin Olive Oil + a Patagonia snapback.

That's how much more you're missing out per month by spending on the Claude Max plan vs. just the Pro plan.

My coworkers bragged about how much they could code on the go via the Claude Max plan that allows them to run Claude remotely on a server Anthropic provides and push to a GitHub repo by default....jokes on them, I can now attempt to carry around my three Yeti water bottles while layered under three layers of shirts, but I don't have to worry about any BO from sweat because I used my Irish Spring 5 in 1 magic serum today; all while doing the same exact thing.

To get started with using Claude to write code/research/design documents on the go:

function claudeonserver() {
  local ts
  ts="$(date +%Y%m%d-%H%M%S)"
  ssh <username@server> -i <keyfile> \
    "mkdir -p ~/<project_path>/${ts} && tmux new-session -d -s claude-${ts} -c ~/<project_path>/${ts} '/home/<username>/.local/bin/claude --remote-control'"
}

Then it's as simple as opening your terminal and launching a new Claude session per project. If you want Claude to have the ability to create repositories to host these projects in, you could install/set up the GitHub CLI and ask it to push (or just do it manually, you animals).

Now enjoy your coffee while staring at the blank pages of your Field Notes memo book while playing five-finger fillet with your Swiss Army knife; or whatever else you're into.

來源:DEV Community · dev.to