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
| Requirement | Details |
|---|---|
| Operating system | macOS (Apple silicon or Intel), Linux (x86_64 or arm64), or Windows x86_64 through Git Bash or WSL. |
| Docker | Installed and running. Docker Desktop, OrbStack, Colima and plain Docker Engine all work. The agents’ tools run inside the sandbox container. |
| A model | An 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. |
| Network | Access to your model provider and to the targets you test. The first run downloads the sandbox image. |
Install with the script (recommended)
curl -sSL https://www.mikoshi.digital/install | bashThe script:
- downloads the standalone
mikoshibinary for your platform from the latest GitHub release into~/.mikoshi/bin, - adds that directory to your shell’s
PATH(and toGITHUB_PATHin GitHub Actions), - replaces an older pipx install if it finds one, and
- pulls the sandbox image
ghcr.io/usemikoshi/mikoshi-sandbox:1.4.2if Docker is running.
Pin a version with VERSION. To read the script before running it, download it first:
# 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.shOpen 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:
pipx install mikoshi-agentInstall from source
To pin Mikoshi to a commit, patch it, or contribute, run it from a clone. The project uses uv.
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 quickThe 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:
docker pull ghcr.io/usemikoshi/mikoshi-sandbox:1.4.2Mikoshi 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
mikoshi --version
docker info > /dev/null && echo "Docker is running"Then configure a model and run your first scan.
Update
mikoshi --updateThe standalone binary updates itself. For pipx and source installs, --update prints the matching upgrade command instead.
Offline and air-gapped installs
- On a connected machine, download the release binary for the target platform and
docker savethe sandbox image. - Move both across,
docker loadthe image (or push it to an internal registry and setMIKOSHI_IMAGE), and put the binary on thePATH. - Point Mikoshi at a model inside your network with
LLM_API_BASE. See local models.
Uninstall
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.2Remove the # mikoshi PATH line the script added to your shell profile. ~/.mikoshi also holds your config and MCP settings; delete it to remove everything.