---
title: "Getting started"
description: "Install openaudit, run your first audit and read the report. openaudit needs Bun 1.4 or newer; scanners are optional."
url: https://openaudit.se/docs/
---

# Getting started

Code, websites, running apps, APIs, containers, infrastructure, cloud accounts and mobile builds, from your terminal, your CI or your AI agent.

openaudit runs 40 built-in auditors and wraps 53 established open-source scanners, linters and type checkers when they're installed. Ten agent **playbooks** cover the judgment-heavy work no rule can do, such as authorisation review, keyboard and screen-reader journeys, and privacy data flows. Everything lands in one report with a 0–100 score and an A–F grade per area.

## Quick start

```bash
bunx @openaudit/cli .                            # a codebase
bunx @openaudit/cli https://example.com          # a live site (add --browser for Playwright + axe-core)
bunx @openaudit/cli ./app-release.apk            # a mobile build (.apk, .aab, .ipa)
bunx @openaudit/cli image:nginx:1.27             # a container image
bunx @openaudit/cli cloud:aws --only cloud       # a live cloud account (Prowler)

bunx @openaudit/cli . -f html -o report          # write the interactive report to report/
bunx @openaudit/cli doctor                       # which optional scanners are installed
```

openaudit needs [Bun](https://bun.sh) 1.4 or newer. Scanners are optional: an auditor whose tool is missing is skipped with an install hint, and the rest of the audit runs normally. To run from source, see [Contributing](https://openaudit.se/docs/contributing/).

## Install

Requires [Bun](https://bun.sh) 1.4 or later. Install globally with `bun add -g @openaudit/cli`, or run it on demand with `bunx @openaudit/cli`. `npx @openaudit/cli` also works when Bun is on PATH; without Bun it prints how to install it. External scanners (gitleaks, TruffleHog, Semgrep, Trivy, zizmor, pa11y and the others listed by `openaudit list`) are optional. When one is missing, the auditor that wraps it is skipped and tells you how to install it. Run `openaudit doctor` to see what is available.

## How it works

```
 CLI · MCP server · HTTP API · GitHub Action
                    │
                    ▼
 target detection ─► engine: select auditors, run them in parallel, isolate failures
                    │
        built-in · wrapped scanners · agent playbooks
                    │
                    ▼
 merge duplicates ─► score each area ─► terminal · JSON · SARIF · Markdown · HTML
```

| Path | What |
|---|---|
| `packages/core` | Report model (the public contract), engine, cross-tool correlation, diff mode, target detection, reporters |
| `packages/auditors` | Built-in and external-tool auditors: `codebase`, `web`, `infra`, `mobile`, `cloud` |
| `packages/agent` | Playbooks, agentic auditors (Claude Agent SDK), AI insights |
| `packages/mcp` | MCP server |
| `apps/cli` | The `openaudit` binary |
| `apps/server`, `packages/api` | Hono + oRPC HTTP API (`/api-reference` for OpenAPI docs) |
| `apps/web` | Website: landing page, live URL audit, report viewer, docs |
| `docs/` | Images for the README and site, and a local architecture overview: `bun docs/architecture.ts` writes `docs/architecture.html` (gitignored) |

## Next

- [CLI reference](https://openaudit.se/docs/cli/): Every openaudit command and flag: targets, output formats, auditor selection, baselines, diff mode, exit codes and agent mode.
- [Configuration](https://openaudit.se/docs/configuration/): openaudit.config.json: suppressions, auditor selection and per-auditor settings, with the full key reference and what a config inside the audited target may change.
- [CI and integrations](https://openaudit.se/docs/ci/): Run openaudit in GitHub Actions, GitLab CI, pre-commit or the Docker image, upload SARIF to code scanning and fail builds on new findings.
- [MCP and agents](https://openaudit.se/docs/agents/): Connect Claude Code, Cursor, Codex or a remote agent to openaudit over MCP, run the ten judgment-heavy playbooks, or run them headless with --agentic.
- [HTTP API](https://openaudit.se/docs/api/): The self-hosted HTTP API in apps/server: URL audits and the auditor and playbook catalogue over REST, with its OpenAPI document.
- [Sandbox](https://openaudit.se/docs/sandbox/): Where to try openaudit without touching real data: the public read-only MCP endpoint, your own local MCP server and HTTP API, and safe audit targets.
- [Report and scoring](https://openaudit.se/docs/report/): How openaudit scores each area from 0 to 100, how grades and severities are defined, and what the interactive HTML, JSON, SARIF and Markdown reports contain.
- [Safety](https://openaudit.se/docs/safety/): openaudit treats every target as hostile: confined file reads, origin-scoped HTTP, opt-in for tools that run project code, and agents without a shell.
- [Contributing](https://openaudit.se/docs/contributing/): Set up the openaudit monorepo, add an auditor or wrap a scanner safely, and open a pull request that passes the full check.
- [Auditor catalogue](https://openaudit.se/auditors/)
