Skip to main content

AegiLabs security audit agent — runs locally, metered via your AegiLabs key.

Project description

aegi — AegiLabs audit CLI

Runs the AegiLabs security-audit agent on your machine. Your code and targets stay local; only the agent's model calls are routed through the AegiLabs metering proxy using your issued key. Point it at a repo or a URL:

aegi ./path/to/repo          # static audit of a code repository
aegi http://localhost:3000   # authorized assessment of a live target

Install

pipx install aegi

Prerequisite: the Claude Code CLI (claude) must be installed — the agent drives it under the hood. aegi fails fast with a clear message if it's missing.

Configure

You need the Aegi key we issued you. Easiest: just run aegi and paste the key when prompted — it's stored in ~/.aegi/config.toml and reused after that. Or set it yourself:

export AEGI_KEY=aegi_live_...            # env var
# or ~/.aegi/config.toml:
#   key = "aegi_live_..."
# or per-run: aegi --key aegi_live_... ./repo

The proxy URL defaults to AegiLabs' — you don't set it. Precedence for both: flag → env → ~/.aegi/config.toml.

What each mode does

Target Mode Tools Notes
a directory repo Read/Grep/Glob/Bash (read-only) secrets, creds, vulnerable deps, injection/authz sinks
a URL url Bash active assessment — prompts for authorization first (skip with --yes)

Detection is automatic: an existing directory → repo; anything starting http(s):// (or a bare host:port / localhost:port) → url.

Output

Streams progress to the terminal, then writes (stem taken from --out, default aegi-report):

  • aegi-report.pdf — the branded, client-ready report, compiled from the vendored AegiLabs Typst template (report_assets/). Requires typst on PATH (winget install Typst.Typst). Without it, an HTML fallback (aegi-report.html) is written instead.
  • aegi-report.data.json — the structured findings (report-data.json schema); the only file you'd edit to tweak wording before sending.
  • aegi-report.transcript.md — the raw agent transcript (audit trail).

Finally prints tokens used against your quota. Reports are Swedish by default (--lang en for English).

Options

aegi <target> [--max-turns N] [--out report.pdf] [--lang sv|en] [--title T] [--key KEY] [--proxy URL] [--yes]

Prerequisites

Run aegi doctor any time to check these and get the exact install command for your OS (it flags what's required vs optional and whether your key is set).

  • Claude Code CLI (claude) — the agent drives it.
  • Typst (typst) — compiles the PDF. Optional; HTML fallback otherwise.
  • Scanners (optional, repo mode) — gitleaks, osv-scanner, semgrep, trufflehog. Any that are on PATH are run and used to ground findings; install the ones you want.
  • Python 3.11+.

Notes / limits (v0)

  • URL scope is prompt-enforced, not sandboxed — the agent is told to touch only the target host. Treat as a soft guard; only run against targets you're authorized to test. Hard scope enforcement is planned.
  • Repo mode runs any installed deterministic scanners (gitleaks, osv-scanner, semgrep, trufflehog) and feeds their real output to the agent as ground truth, then the agent triages and writes the report. With none installed it falls back to a read-only LLM review (CVE claims are then memory-based — install scanners to ground them). Scanners are optional: install the ones you want and they're used automatically.
  • Needs Python 3.11+ (uses stdlib tomllib).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aegi-0.1.2.tar.gz (137.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aegi-0.1.2-py3-none-any.whl (144.1 kB view details)

Uploaded Python 3

File details

Details for the file aegi-0.1.2.tar.gz.

File metadata

  • Download URL: aegi-0.1.2.tar.gz
  • Upload date:
  • Size: 137.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for aegi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 46de105be2cb28ed0357893890cef87cb19f32387eb63817a89ef6b4bd4700e3
MD5 0635de6ba4932b7c165f5df0fd90edbb
BLAKE2b-256 5c0106afa3a02d06acef34b4b427fc2640d43db13e8b277008f26d3eda878f33

See more details on using hashes here.

File details

Details for the file aegi-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aegi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 144.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for aegi-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 30c80828d2be41c9e854fc3375620a8dc31e7a18877b51041ded73d1d6f11aed
MD5 794c15e3915d097bdeede425044c5f35
BLAKE2b-256 2fea63a8fd28e5cbea06cf4d653e0a544635a8d5388f7ec20183d797df7b94cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page