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 10Results land in mikoshi_runs/<run-name>/. Open them in a local dashboard with mikoshi view.
How it runs
- 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.
- 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.
- Only proven findings are reported. Each finding carries a working proof of concept, its impact, and remediation steps.
- 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
- InstallInstall script, pipx, or from source. Requirements and the Docker sandbox.
- Configure a modelHosted providers, gateways, local models, config files and cost controls.
- Run scansCode, web apps, APIs and hosts. Scan modes, credentials, scope and results.
- Scan every pull requestGitHub Actions, GitLab, Jenkins, CircleCI. Severity gates, PR comments, SARIF.
- Agents and integrationsClaude Code, Cursor and Codex skills, your own MCP servers, JSON and SARIF output.
- ReferenceEvery command, flag, environment variable, exit code and output file.
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.