跳到主要内容

AI 远程开发环境配置指南

Termux

pkg install mosh

rtk

rtk compresses command outputs before they reach the context window. Better reasoning. Longer sessions. Lower costs.

curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

OS

sudo apt install -y mosh jq ripgrep fd-find

防火墙开放 60000/61000

rg ripgrep

https://github.com/BurntSushi/ripgrep?tab=readme-ov-file#installation

fd find

It is a simple, fast and user-friendly alternative to find.

https://github.com/sharkdp/fd?tab=readme-ov-file#installation

deno

Deno (/ˈdiːnoʊ/, pronounced dee-no) is a JavaScript, TypeScript, and WebAssembly runtime with secure defaults and a great developer experience. It's built on V8, Rust, and Tokio.

curl -fsSL https://deno.land/install.sh | sh

Github CLI

Installing gh on Linux and BSD

(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y

Installing gh on macOS

Font

Zsh

Tmux

Termux

Font

Node JavaScript TypeScript

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install --lts

# Verify the Node.js version:
node -v

# Download and install pnpm:
corepack enable pnpm

# Verify pnpm version:
pnpm -v

Python

uv

curl -LsSf https://astral.sh/uv/install.sh | sh

pyright

Golang

gopls

Rust

rust-analyzer

Claude Code CLI

curl -fsSL https://claude.ai/install.sh | bash

claude --dangerously-skip-permissions

Codex CLI

npm i -g @openai/codex

codex --yolo

Kiro CLI

OpenCode CLI

Kimi Code API

https://www.kimi.com/code/console

OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash