███████╗███████╗███╗ ██╗ ╚══███╔╝██╔════╝████╗ ██║ ███╔╝ █████╗ ██╔██╗ ██║ ███╔╝ ██╔══╝ ██║╚██╗██║ ███████╗███████╗██║ ╚████║ ╚══════╝╚══════╝╚═╝ ╚═══╝
Zen
Open-source offensive security agents. Autonomous pentesting that discovers, exploits, and remediates vulnerabilities in running code.
What is Zen
Zen dispatches a fleet of autonomous agents that execute your application, observe its runtime behavior, and confirm each defect by exploiting it. Nothing is reported until it has been reproduced, so the output is a set of demonstrated attacks rather than a queue of suspicions. It targets engineering organizations that need security validation at a cadence manual assessment cannot sustain, and at a precision static analysis does not reach.
Core capabilities:
- Complete offensive tooling — reconnaissance, exploitation, and verification in one runtime, with nothing to assemble
- Multi-agent execution — specialized agents partition the target and scale horizontally across it
- Proof-carrying findings — every report ships with a proof-of-concept that executes against the live target
- Terminal-native workflow — output written for the engineer who has to land the fix, remediation context included
- Automated remediation and reporting — generated patches, plus assessment documents formatted for audit
Where it fits
- Application Security Testing — locate exploitable defects across an application and confirm each one is reachable
- Rapid Penetration Testing — compress a full engagement, compliance documentation included, from weeks into hours
- Bug Bounty Automation — automate the reconnaissance and exploitation loop, then submit against generated proof-of-concepts
- CI/CD Integration — enforce a security gate in the pipeline so exploitable code never reaches production
🚀 Get started
Requirements:
- A running Docker daemon
- One of:
- Claude Code installed and signed in, with the Zen bridge running — no API key required
- A DeepSeek API key
See supported providers for the full list.
Install and run an assessment
# Install Zen
curl -sSL https://zenney.uk/install | bash
# Option A — Claude via the bridge
npm install -g @anthropic-ai/claude-code
claude # sign in once, then exit
python -m zen.bridge # starts the bridge; connects the session automatically
export ZEN_LLM="claude/claude-opus-4-8"
# Option B — DeepSeek API key
export ZEN_LLM="deepseek/deepseek-v4-pro"
export DEEPSEEK_API_KEY="your-deepseek-api-key"
# Run your first security assessment
zen --target ./app-directory
☁️ Managed platform
app.zenney.uk hosts the same engine as a managed service. Register an account, attach your repositories and domains, and assessments dispatch without any local infrastructure.
- Validated findings with PoCs — a reproducible exploit and its reproduction sequence accompany every reported vulnerability
- One-click autofix — model-generated security patches delivered as reviewable pull requests
- Continuous pentesting — assessment on a persistent schedule, tracking your deployment velocity
- DevSecOps integrations — GitHub, GitLab, Bitbucket, Slack, Jira, Linear, and CI/CD pipelines
- Continuous learning — prior findings inform subsequent runs; the system adapts to your codebase and suppresses recurring false positives
✨ Architecture
Agent tooling
Every agent operates the same instrumentation a professional penetration tester would reach for:
- HTTP Interception Proxy — Caido, integrated for complete request and response manipulation and analysis
- Browser Exploitation — an instrumented browser covering XSS, CSRF, clickjacking, and authentication bypass flows
- Shell & Command Execution — an interactive terminal for exploit development and post-exploitation activity
- Custom Exploit Runtime — a Python sandbox in which proof-of-concept code is authored and verified
- Reconnaissance & OSINT — automated attack surface mapping, subdomain enumeration, and service fingerprinting
- Static & Dynamic Code Analysis — SAST and DAST in combination, so both the code and its running form are covered
- Vulnerability Knowledge Base — findings held in structured form, with CVSS scoring and OWASP classification
Vulnerability coverage
Detection, validation, and exploitation span the OWASP Top 10 and extend well past it:
- Broken Access Control — IDOR, horizontal and vertical privilege escalation, authorization bypass
- Injection Attacks — SQL and NoSQL injection, OS command injection, SSTI
- Server-Side Vulnerabilities — SSRF, remote code execution, insecure deserialization, XXE
- Client-Side Attacks — stored, reflected, and DOM-based XSS, prototype pollution, CSRF
- Business Logic Flaws — workflow bypass, payment manipulation, race conditions
- Authentication & Session — credential stuffing vectors, session fixation, JWT attacks
- Infrastructure & Cloud — misconfiguration, unintentionally exposed services, cloud security weaknesses
- API Security — broken authentication, mass assignment, rate limit bypass
Agent graph (distributed execution)
Coordination between agents is what makes that breadth tractable:
- Distributed Pentesting — reconnaissance, exploitation, and post-exploitation each assigned to a specialist agent
- Scalable Security Testing — targets assessed concurrently, so coverage does not trade against wall-clock time
- Dynamic Coordination — agents propagate discoveries between themselves and chain vulnerabilities the way a red team does
🖥️ Local result viewer
Artifacts are written to disk as the assessment proceeds. A single command renders them in a local dashboard:
# Open the most recent run
zen view
# ...or open a specific run by name
zen view my-run-name
# Expose the viewer on all IPv4 interfaces at a fixed port
zen view --host 0.0.0.0 --port 8080 --no-open
zen view binds a lightweight server to 127.0.0.1 on an ephemeral port and opens a private, token-scoped URL in your browser. Nothing transits the network: the dashboard reads run files directly from the filesystem, with no account provisioning and no upload step. The interface is compiled into the distribution, so there is no additional dependency and no JavaScript build to run.
To reach the viewer from another host, pass --host 0.0.0.0 and substitute a resolvable hostname or address for the 0.0.0.0 in the emitted URL. Handle that URL as a credential: its token authorizes access to the selected run's scan data, history, and steering interface, so restrict distribution and firewall the port accordingly. Requests that carry no token-derived session are refused.
Viewer surfaces
- Overview: current run state, the configured target, and a severity distribution across findings so far.
- Vulnerabilities: each validated finding with severity, supporting detail, and a reproduction sequence.
- Agent graph: a live topology of the agent fleet, showing the task assigned to each node.
- Steering: inject instructions into an in-flight assessment and redirect the agents without restarting.
- History: every prior run recorded on this host, addressable directly.
- Reports: compile a distributable report and dispatch it by email.
Usage patterns
Common invocations
# Scan a local codebase
zen --target ./app-directory
# Security review of a GitHub repository
zen --target https://github.com/org/repo
# Black-box web application assessment
zen --target https://your-app.com
Assessment from an API specification (OpenAPI / Swagger / Postman)
Supply a contract and Zen exercises every endpoint the specification declares, instead of inferring the surface by crawling. Pair the specification with the live base URL so requests are routed correctly:
# OpenAPI / Swagger file (.json / .yaml)
zen --target ./openapi.yaml --target https://api.your-app.com
# Postman collection export
zen --target ./collection.postman_collection.json --target https://api.your-app.com
# Postman collection pulled live by id (no manual export)
export POSTMAN_API_KEY="PMAK-..."
zen --target postman://<collection-uuid>
# ...with a Postman environment to resolve {{baseUrl}} / token variables
zen --target "postman://<collection-uuid>?env=<environment-uuid>"
Advanced invocations
# Grey-box authenticated testing
zen --target https://your-app.com --instruction "Perform authenticated testing using credentials: user:pass"
# Multi-target testing (source code + deployed app)
zen -t https://github.com/org/app -t https://your-app.com
# Targets from a file, one target per non-empty, non-comment line
zen --target-list ./targets.txt
# White-box source-aware scan (local repository)
zen --target ./app-directory --scan-mode standard
# Focused testing with custom instructions
zen --target api.your-app.com --instruction "Focus on business logic flaws and IDOR vulnerabilities"
# Provide detailed instructions through file (e.g., rules of engagement, scope, exclusions)
zen --target api.your-app.com --instruction-file ./instruction.md
# Force PR diff-scope against a specific base branch
zen -n --target ./ --scan-mode quick --scope-mode diff --diff-base origin/main
Headless execution
-n/--non-interactive disables the terminal UI, which is the correct mode for servers and scheduled jobs. Findings stream to stdout as they are validated, the final report follows, and the process terminates with a non-zero status when anything was found.
zen -n --target https://your-app.com
GitHub Actions integration
A minimal workflow is sufficient to assess every pull request:
name: zen-penetration-test
on:
pull_request:
jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Zen
run: curl -sSL https://zenney.uk/install | bash
- name: Run Zen
env:
ZEN_LLM: ${{ secrets.ZEN_LLM }}
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
run: zen -n -t ./ --scan-mode quick
Environment configuration
# Model selection — pick one
export ZEN_LLM="claude/claude-opus-4-8" # Claude, via the bridge
export ZEN_LLM="claude/claude-opus-4-6" # Prior Claude generation, same path
export ZEN_LLM="deepseek/deepseek-v4-pro" # DeepSeek V4 Pro, API key required
export ZEN_LLM="deepseek/deepseek-v4-flash" # DeepSeek V4 Flash, API key required
# API keys — only required for DeepSeek
export DEEPSEEK_API_KEY="your-deepseek-api-key"
# Optional
export LLM_API_BASE="your-api-base-url" # if using a local model (Ollama, LMStudio)
export PERPLEXITY_API_KEY="your-api-key" # for search capabilities
export ZEN_REASONING_EFFORT="high" # thinking effort (default: high, quick scan: medium)
Sign in with a ChatGPT subscription
Instead of a metered API key, you can run Zen on your ChatGPT Plus/Pro subscription:
zen auth login chatgpt # sign in with your ChatGPT account
export ZEN_LLM="chatgpt/gpt-5.4" # chatgpt/<model> runs on the subscription
zen auth status # show the active sign-in, or logout to forget it
Claude via the bridge
Zen has no Claude login of its own. Install Claude Code, sign in there once, then start the bridge — it picks up that session automatically and serves it to Zen for the duration of the run.
# One-time setup
npm install -g @anthropic-ai/claude-code
claude # sign in on first run, then exit
# Start the bridge (leave it running)
python -m zen.bridge
# In another shell
export ZEN_LLM="claude/claude-opus-4-8"
zen --target ./app-directory
The bridge is a long-running local process: start it before a scan and leave it up. No API key is stored, and no credentials are copied into Zen's own configuration. If the Claude Code session expires, run claude again to sign back in — the bridge reconnects without a restart.
Use the DeepSeek API key path instead if you need a metered, non-subscription setup, if you plan to run at concurrency that exceeds subscription rate limits, or if you are running in CI where an interactive sign-in is not possible.
MCP server integration
Zen can attach to Model Context Protocol (MCP) servers and expose their tools to the agents during a run. Declare them in ~/.zen/mcp-servers.json as a JSON array. Each entry is either a stdio server that Zen launches as a local subprocess, or a remote http endpoint:
[
{
"name": "local_fs",
"transport": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/project"]
},
{
"name": "github",
"transport": "http",
"url": "https://api.githubcopilot.com/mcp/",
"auth": { "kind": "bearer", "token": "your-token" },
"allowed_tools": ["list_issues"]
}
]
Tool identifiers are namespaced under the server's name — local_fs_read_file, for example. Omitting allowed_tools exposes the server's full tool set; supplying a list constrains the agents to those entries. The file itself is optional, and a server that fails to connect is skipped without aborting the run. Set ZEN_MCP_CONFIG to load the declaration from another path.
Recommended model configurations:
- Anthropic Claude Opus 4.8 —
claude/claude-opus-4-8(via the bridge, no API key) - Anthropic Claude Opus 4.6 —
claude/claude-opus-4-6(via the bridge, prior generation) - DeepSeek V4 Pro —
deepseek/deepseek-v4-pro(API key) - DeepSeek V4 Flash —
deepseek/deepseek-v4-flash(API key, faster and cheaper tier)
Locally hosted models are supported through the LLM_API_BASE override; the LLM Providers documentation enumerates every configuration option.
Enterprise
The same engine under organizational controls: enterprise-grade SSO via SAML or OIDC, custom penetration testing reports mapped to SOC 2, ISO 27001, and PCI DSS, dedicated support under SLA, flexible deployment topologies including VPC and self-hosted, BYOK model access, and agents tuned against your environment. Learn more.
Reference documentation
The complete reference lives at docs.zenney.uk, covering usage, CI/CD integration, skills, and advanced configuration.
Development and contributions
Code, documentation, and new skills are all in scope. Start from the Contributing Guide, or go directly to a pull request/issue.
Community
Questions, defect reports, and design discussion happen on Discord.
Support
If Zen earns a place in your toolchain, a ⭐ on GitHub helps others find it.
License and attribution
Zen is licensed under the Apache License, Version 2.0. See LICENSE for the full text and NOTICE for attribution.
Zen is a derivative work of Strix, Copyright 2025 OmniSecure Inc., licensed under Apache-2.0. Files throughout this distribution have been modified from the original Strix sources. Our thanks to the Strix team for the foundation this builds on.
Upstream projects
Zen and Strix both build on LiteLLM, Caido, Nuclei, Playwright, and Bubble Tea. Our thanks to the teams maintaining them.
Release files for zen-agent 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| zen_agent-1.2.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| zen_agent-1.2.1-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| zen_agent-1.2.1-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| zen_agent-1.2.1-py3-none-macosx_11_0_x86_64.whl | Python 3 | none | macOS 11.0+ x86-64 | Details |
| zen_agent-1.2.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
Total release size: 21.7 MB
Release files / zen_agent-1.2.1-py3-none-win_amd64.whl
| Download URL | zen_agent-1.2.1-py3-none-win_amd64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
1159b8aa31177294118bdece04ce0987ad621af805a92f77f064c9d76d1a1da5
|
|
BLAKE2b-256 checksum How to use checksums |
34bc2217b1370f7407eb922f36f95281bd2b5c62cb4b989c6c119defe75410fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / zen_agent-1.2.1-py3-none-manylinux_2_17_x86_64.whl
| Download URL | zen_agent-1.2.1-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
7b4a030172052ad59451d0ec8d7b2fefbb966a9a579972abb37da8743cc09e49
|
|
BLAKE2b-256 checksum How to use checksums |
11040dea85dda3968704f33fc2fff9c3ca25156134d7f209d2d3ca9172e19dfa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / zen_agent-1.2.1-py3-none-manylinux_2_17_aarch64.whl
| Download URL | zen_agent-1.2.1-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 4.2 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
14484a0dac0bc65c01864d43727b6304ee4a803b27ee473a6550f7b082d5ed92
|
|
BLAKE2b-256 checksum How to use checksums |
b2254562c82e8731ae88d7ec01e56e70c58a6e9dfe521ee48668b6744d434244
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / zen_agent-1.2.1-py3-none-macosx_11_0_x86_64.whl
| Download URL | zen_agent-1.2.1-py3-none-macosx_11_0_x86_64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | Python 3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
5a9db5e7d9f5f10a6f316ea397ad600d0f6bd31b567c72590544aca4b5d0f6eb
|
|
BLAKE2b-256 checksum How to use checksums |
973467f3fa3bfb038bc64760ef9554d5c2cc2198150332c758bd6b17757e48b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / zen_agent-1.2.1-py3-none-macosx_11_0_arm64.whl
| Download URL | zen_agent-1.2.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5425ec6145959191a4151514dea3e214922d4b4e68951836d572c7843121c3d4
|
|
BLAKE2b-256 checksum How to use checksums |
762287760699e565fc27a42bfe19ff8d3d63a47ebeff809e8922ed74c8104412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log