Skip to content
Mikoshi

Docs

Installation

Mikoshi is a single command-line tool plus a Docker sandbox image. Install it on a laptop for local testing, or on a CI runner or server to scan continuously.

Requirements

RequirementDetails
Operating systemmacOS (Apple silicon or Intel), Linux (x86_64 or arm64), or Windows x86_64 through Git Bash or WSL.
DockerInstalled and running. Docker Desktop, OrbStack, Colima and plain Docker Engine all work. The agents’ tools run inside the sandbox container.
A modelAn API key for a hosted provider, or a local model server. See Configuration.
Python 3.12+Only for the pipx and from-source installs. The install script ships a standalone binary.
NetworkAccess to your model provider and to the targets you test. The first run downloads the sandbox image.

Install with the script (recommended)

shell
curl -sSL https://www.mikoshi.digital/install | bash

The script:

  • downloads the standalone mikoshi binary for your platform from the latest GitHub release into ~/.mikoshi/bin,
  • adds that directory to your shell’s PATH (and to GITHUB_PATH in GitHub Actions),
  • replaces an older pipx install if it finds one, and
  • pulls the sandbox image ghcr.io/usemikoshi/mikoshi-sandbox:1.4.2 if Docker is running.

Pin a version with VERSION. To read the script before running it, download it first:

shell
# Pin a release
curl -sSL https://www.mikoshi.digital/install | VERSION=1.8.0 bash

# Or review it first
curl -sSL https://www.mikoshi.digital/install -o install-mikoshi.sh
less install-mikoshi.sh
bash install-mikoshi.sh

Open a new terminal (or source your shell profile) so the new PATH applies.

Install with pipx

If you manage Python tools with pipx, install the package instead:

shell
pipx install mikoshi-agent

Install from source

To pin Mikoshi to a commit, patch it, or contribute, run it from a clone. The project uses uv.

shell
git clone https://github.com/usemikoshi/mikoshi.git
cd mikoshi
make dev-install          # or: uv sync
uv run mikoshi --version
uv run mikoshi -n -t ./path/to/app --scan-mode quick

The sandbox image

The first scan pulls the sandbox image automatically. Pull it ahead of time (on a CI runner image, for example) so scans start immediately:

shell
docker pull ghcr.io/usemikoshi/mikoshi-sandbox:1.4.2

Mikoshi connects to the same Docker daemon as the docker CLI: your current docker context, then the default socket. Set DOCKER_HOST to use a remote daemon, and MIKOSHI_IMAGE to use an image from your own registry.

Check the install

shell
mikoshi --version
docker info > /dev/null && echo "Docker is running"

Then configure a model and run your first scan.

Update

shell
mikoshi --update

The standalone binary updates itself. For pipx and source installs, --update prints the matching upgrade command instead.

Offline and air-gapped installs

  1. On a connected machine, download the release binary for the target platform and docker save the sandbox image.
  2. Move both across, docker load the image (or push it to an internal registry and set MIKOSHI_IMAGE), and put the binary on the PATH.
  3. Point Mikoshi at a model inside your network with LLM_API_BASE. See local models.

Uninstall

shell
rm -rf ~/.mikoshi/bin            # the binary (keep ~/.mikoshi for your config)
pipx uninstall mikoshi-agent     # if installed with pipx
docker rmi ghcr.io/usemikoshi/mikoshi-sandbox:1.4.2

Remove the # mikoshi PATH line the script added to your shell profile. ~/.mikoshi also holds your config and MCP settings; delete it to remove everything.