~4 min read · 4 sections

Automated Setup via an AI Coding Assistant

If you already use Claude Code, Codex, or another AI coding tool with terminal access, copy this standard prompt to have it inspect your environment first and install safely.

On this page (4)▾
Runs Locally—Never Asks for Secrets

The official site only provides this text specification (see the standalone original at AGENT_INSTALL.zh-CN.md). All checks and downloads are executed locally in your own terminal by your own AI tool. Never paste any password, SSH private key, or model API Key into an AI assistant chat window.

Supported Tools and Ideal Use Cases

  • Compatible tools: Claude Code, OpenAI Codex CLI, Cursor Agent, Windsurf, or any local assistant that can execute commands in your Linux / WSL terminal.
  • Especially handy when: You are setting up a fresh Linux cloud server, or your machine already has an older instance and you want to avoid accidentally overwriting existing data—this prompt forces the AI to perform a read-only audit and report back before touching anything.

Prompt to Copy to Your AI Assistant

Click "Copy" in the top-right corner of the code block and paste it verbatim to your AI assistant:

text
Please help me install nyairo (v0.8.0) on this machine. Follow the specification at https://nyairo.com/AGENT_INSTALL.zh-CN.md strictly, explain what you are doing in English at each step, do not skip any checks, and never pretend a step succeeded:

1. [Read-Only Check — Do Not Install Yet] Inspect the OS environment (requires Linux or WSL 2), free disk space (≥ 3 GB recommended), and connectivity to github.com and astral.sh; check whether the current HOME already has ~/.nyairo, ~/.local/share/nyairo, or ~/.chiyo-v1, and whether any m0_writer_worker or gateway processes are currently running. If an existing instance is found, you must stop immediately, report it, and recommend using a separate Linux user or separate HOME—never overwrite existing data and never kill processes belonging to an existing instance.
2. [Ask for Confirmation] List the directories you plan to create (~/.local/share/nyairo/releases/v0.8.0, ~/.nyairo, ~/.local/bin/nyairo). Any action requiring sudo or creating a new system user must wait for my explicit approval.
3. [Verified Installation] Download nyairo-v0.8.0.zip and its matching .sha256 file from https://github.com/L1AN929/nyairo/releases/download/v0.8.0/ and verify with sha256sum -c before extracting, then run bash scripts/bootstrap.sh from the extracted bundle (add --no-setup --no-launch in non-interactive terminals).
4. [On-Machine Verification] Confirm ~/.local/state/nyairo/install.json reports version v0.8.0, run scripts/verify_manifest.py using the bundled Python to confirm "valid": true, run ~/.local/bin/nyairo -z "install self-check" once, and verify no stray processes remain for the new instance. Until I configure my own keys, honestly mark the model and external channels as "Not yet verified".
5. [Handoff Summary] In clear, concise English, tell me how to start (nyairo), configure a model (nyairo setup model), connect WeChat/Telegram, update, and back up. Never ask me to send API Keys or passwords in chat at any point.

Why These Four Guardrails Exist

  • Protect existing memories: Many AI assistants habitually delete and reinstall when they see a directory already exists. This prompt explicitly requires stopping as soon as ~/.nyairo or ~/.chiyo-v1 is detected and guiding you to isolate under a separate account.
  • Never kill live processes: If an instance is already running on the machine, the AI must not kill the existing instance's gateway or memory writer processes while cleaning up the environment.
  • Trust only official checksums and manifests: Enforces verification against the matching GitHub Release .sha256 file and the bundled MANIFEST.json, rather than pulling unreleased development branches.
  • Keep secrets local: Once the AI finishes installing the base environment, it hands control back to you. You run nyairo setup model yourself to write your API Key into a local config file with 0600 permissions, keeping secrets out of third-party chat logs.

What to Verify Yourself Afterward

After the AI reports "Installation complete", take a quick look at these three items to be sure nothing was glossed over:

  1. version in cat ~/.local/state/nyairo/install.json is indeed v0.8.0 (note: running nyairo --version directly prints the underlying host Hermes version; check install.json for nyairo's own version);
  2. SOUL.md, config.yaml, and chiyo/config.json have been created under ~/.nyairo;
  3. Run nyairo setup model to enter your own API Key, then run nyairo and send a greeting—once you get a normal reply back, you are all set.
Hit a setup snag or spot a doc issue?