koi
Documentation / koi

Install

For Koi 1.0 alpha. Install the koi CLI with the shell installer, then run koi setup to add the Junji skill to your coding agent and, optionally, yokai. Check with koi doctor; update with koi update.

These instructions are for Koi 1.0 alpha. Earlier versions were installed from a clone with ./install.sh; see Migrate from the Koi CLI if you used the old project-setup koi command.

What you install

One installer puts the koi command on your machine. koi setup then installs the rest at the same version:

  • The Junji skill goes into your coding agent. It is all you need to plan and run phases yourself with /junji next. Its board commands are koi board status and koi board move, so Junji needs koi on your PATH.
  • The optional Yokai helper skill (sensors, tier assessment, sandbox images).
  • The optional yokai binary, which runs prepared phases unattended. koi setup asks before installing it.

koi doctor checks all of it, and koi update moves everything to a newer release together.

One installer, one setup
Installing koi The koi installer puts the koi binary on your PATH. koi setup then copies the Junji skill into your coding agent and, optionally, installs the yokai binary from the same release. koi doctor checks both. koi-installer.sh koi binary koi setup Coding agent Junji skill yokai binary optional

1. Install a coding agent

Install and sign in to one of the agents Yokai supports: Claude Code, Codex, Cursor CLI or OpenCode. If you only use Junji, any agent that loads skills works; koi setup also knows Gemini CLI.

For Yokai, Claude Code and Codex also need Node.js. Yokai starts their ACP adapter (claude-agent-acp or codex-acp) from your PATH if it is installed, and otherwise through npx -y. Yokai commands lists how each agent signs in.

2. Install koi

On macOS or Linux, run the shell installer for this release:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/getkoi/koi/releases/download/v1.0.0-alpha.6/koi-installer.sh | sh

The installer puts koi in $CARGO_HOME/bin, which is ~/.cargo/bin unless you changed it, and ends by telling you to run koi setup. Make sure that directory is on your PATH.

3. Run koi setup

koi setup

The setup finds the coding agents on your machine (Claude Code, Codex, Cursor, OpenCode, Gemini CLI) and asks:

  1. Which agents get the Junji skill. Detected agents are preselected.
  2. Whether to add the optional Yokai helper skill.
  3. Where the skills come from: the koi-skills.tar.gz archive of this koi's release (the default, so the skills always match the binary), or npx skills add getkoi/koi when Node is installed.
  4. Whether to install yokai (default yes). It runs the same release's yokai-installer.sh, so yokai lands next to koi at the same version.

Restart your agent, or reload its skills, if it was already open. Type /junji in the agent to confirm it sees the skill.

For scripts and CI, accept the defaults without questions: koi setup --yes. Choose agents with --agent claude --agent codex, skip parts with --no-helper-skill or --no-yokai, and point at a local archive with --skills-archive <path>. Without a terminal, koi setup refuses to guess and asks for --yes. Setup only installs for agents it detected or that you named: if it finds none (no ~/.claude, ~/.codex, ~/.cursor, ~/.config/opencode or ~/.gemini, and no agent program on PATH), the wizard still lets you pick, while koi setup --yes stops and asks for --agent, for example koi setup --yes --agent claude.

In Claude Code you can still install the skills as plugins. Junji, Yokai and this site all live in one repository, getkoi/koi, which is also the plugin marketplace:

/plugin marketplace add getkoi/koi
/plugin install junji@getkoi

npx skills add getkoi/koi --skill junji (or --skill yokai) also works for any agent. Junji still needs koi for its board commands: when koi is missing, the skill stops and shows you the install command above, and edits the board by hand only if you decline.

4. Check the setup

koi doctor

It reports the koi and yokai versions and whether they match, every agent's installed skills and their versions against koi, and PATH problems such as an older copy shadowing the new one. Inside a Junji project it also shows the board's progress and runs yokai doctor, which checks Git, the agent and its adapter, the run files and the gate review. Nothing is changed. Add a sign-in check with:

yokai doctor --probe

In a repository with no Junji run yet, koi doctor skips the project checks. Run /junji begin in your agent first.

Updates

koi update

koi update installs the newest release of koi and yokai, the same version for both, and re-copies the skills koi setup installed so they match. While Koi is in alpha, beta or release candidate, it follows prereleases. koi and yokai mention a newer release at most once a day ("koi X available — run koi update"); they never update on their own, and stay quiet in CI, headless runs and the sandbox.

Sandbox mode

Sandbox mode needs nothing extra from you. On the first sandbox launch, Yokai downloads the Linux yokai for its own version from the GitHub release, checks its sha256 and caches it. yokai doctor shows which copy it will use. See Sandbox mode.

What can go wrong

  • koi: command not found after the shell installer. Add ~/.cargo/bin to your PATH and open a new terminal.
  • The agent does not recognize /junji. The skill was installed for a different agent, or the agent was not restarted. koi doctor lists where each agent's skills are.
  • koi doctor says a skill's version differs from koi. Run koi update, or koi setup --sync to re-copy the skills at the current version.
  • yokai doctor --probe fails for Claude Code or Codex with an adapter error. Install Node.js so npx is available, then try again.
  • The doctor says the agent is not configured. Sign in through the agent itself, for example claude auth login or /connect in OpenCode. Yokai has no login of its own.

Next: First run.