Install
For users who want anyCode working fast, without building from source.
After this page, you will have:
anycodeinstalled- a successful
anycode --helpcheck - a clear fallback path if install fails
Recommended path
If you just want to use anyCode, use the one-line installer for your OS.
| OS | Command |
|---|---|
| macOS / Linux | `curl ... install.sh |
| Windows | `irm ... install.ps1 |
One-line installer (macOS / Linux)
Default repo is qingjiuzys/anycode:
curl -fsSL --proto '=https' --tlsv1.2 \
"https://raw.githubusercontent.com/qingjiuzys/anycode/main/scripts/install.sh" | bash -s -- --repo qingjiuzys/anycodeExpected output: installer downloads binary and runs anycode setup by default.
One-line installer (Windows PowerShell)
irm https://raw.githubusercontent.com/qingjiuzys/anycode/main/scripts/install.ps1 | iexExpected output: PowerShell installer completes and starts setup unless disabled.
With explicit repo / version (save then execute):
$tmp = Join-Path $env:TEMP "anycode-install.ps1"
irm https://raw.githubusercontent.com/qingjiuzys/anycode/main/scripts/install.ps1 -OutFile $tmp
& $tmp -Repo qingjiuzys/anycode -Version v0.1.0Or:
export ANYCODE_GITHUB_REPO="qingjiuzys/anycode"
bash scripts/install.shExpected output: install script uses the repository from env variable.
By default installer:
- installs from prebuilt binary
- shows download progress in interactive terminal
- runs
anycode setupafter install
Useful flags:
--version v0.1.0orlatest--bin-dir "$HOME/.local/bin"--no-setup(skip setup after install)--quiet(less download output)--method auto(allow source fallback)
Help:
curl -fsSL "https://raw.githubusercontent.com/qingjiuzys/anycode/main/scripts/install.sh" | bash -s -- --helpNext step: pick the flags you need, then rerun install.
Install v0.1.0 (pinned)
curl -fsSL --proto '=https' --tlsv1.2 \
"https://raw.githubusercontent.com/qingjiuzys/anycode/main/scripts/install.sh" | \
bash -s -- --repo qingjiuzys/anycode --version v0.1.0Expected output: installs pinned version v0.1.0.
Or install from Cargo with the release tag:
cargo install --git https://github.com/qingjiuzys/anycode --tag v0.1.0 anycode --forceRelease page: https://github.com/qingjiuzys/anycode/releases/tag/v0.1.0
Verify install
anycode --help
anycode setupExpected output: --help shows command list; setup opens onboarding flow.
If you see command not found, check PATH notes from the installer output and retry in a new shell.
Source build (advanced)
For contributors or custom builds:
git clone https://github.com/qingjiuzys/anycode.git
cd anycode
cargo build --release
# run directly: ./target/release/anycode --helpExpected output: release build succeeds and binary is available under target/release.
Install into PATH (recommended, avoids command not found):
./scripts/install.sh --source-dir "$(pwd)"
anycode --helpNext step: run anycode setup.
Local clone only
./scripts/install.sh --source-dir "$(pwd)" --bin-dir "$HOME/.local/bin"Optional features
Build with extra capabilities:
cargo build -p anycode --features tools-mcpExpected output: binary compiled with MCP capability.
Next
- Getting started —
setupand first task - Config & security —
~/.anycode/config.json
