Skip to content
Mikoshi

Docs

Developer docs

Mikoshi is an open-source AI pentesting engine you run on your own machine or infrastructure. These docs take you from install to a scan on every pull request.

Quickstart

You need Docker running and an API key for a model provider. Then:

shell
# 1. Install the CLI (and pull the sandbox image)
curl -sSL https://www.mikoshi.digital/install | bash

# 2. Choose a model
export MIKOSHI_LLM="openrouter/z-ai/glm-5.3"
export LLM_API_KEY="your-api-key"

# 3. Scan a codebase, headless, with a spend cap
mikoshi -n -t ./your-app --scan-mode quick --max-budget 10

Results land in mikoshi_runs/<run-name>/. Open them in a local dashboard with mikoshi view.

How it runs

  1. The CLI starts a sandbox. A Kali-based Docker container with the security tools the agents use: a browser, an intercepting proxy, recon and scanning tools, static analysers and secret detection. Commands run in the container, not on your host.
  2. A team of agents works the target. A root agent plans the test and hands tasks to sub-agents, each driven by the model you configure, through any provider LiteLLM supports, or a local model.
  3. Only proven findings are reported. Each finding carries a working proof of concept, its impact, and remediation steps.
  4. Findings become defences. At the end of a run Mikoshi writes a blue-team report: Sigma and YARA rules, SIEM queries and MITRE ATT&CK mappings for what it exploited.

Your code and scan context go to the model provider you configure, under your own account. Nothing else leaves your machine except traffic to your targets: the CLI sends no telemetry.

Ways to build it in

Rather we ran it?

If you’d rather not run the engine yourself, we run it for you and a person verifies every finding: see the Health Check, pricing, or self-hosted enterprise deployments.