Setup
Just want to try it? The site's Quick start is the short version. This page also covers optional extras and setting up a clone to work on PolicyForge itself. Go to the Quick start →
Installing the command (macOS and Linux)
brew install rdazzleman/tap/policyforge
That installs the policyforge command from the
rdazzleman/homebrew-tap tap,
with the core providers; the optional extras (bedrock, vertex, litellm,
mcp) are not included. Without Homebrew, pipx install git+https://github.com/rdazzleman/policyforge@v1.8.0 does the same, and
takes extras as policyforge[mcp] @ git+….
An installed command has no clone around it, and every command reads
config/ and data/frameworks/ relative to where it runs. So start a
project directory first:
policyforge init my-policies --provider anthropic && cd my-policies— writes the public-domain catalogs (NIST 800-53, 800-171 and CSF 2.0, the AI RMF and its Playbook, FedRAMP, ARC-AMPE, the HIPAA Security, Privacy and Breach Notification Rules, 42 CFR Part 2, Information Blocking and ONC 170.315), a starterconfig/config.yamlnaming your provider, model and the name of the environment variable holding your API key (never the key itself), a starterconfig/topics.yaml, a README for each bring-your-own catalog, and a.gitignorethat keeps your config, topic registry, licensed exports and working files (output/) out of version control. Drafted documents go todocs/, which it leaves in version control. Leave--provideroff for a local model that needs no key. Declare your scope facts too (--personal-data phi,--baseline 800-53,--builds-software,--own-facilities,--ai):initchooses the topics from them, and an undeclared fact counts as off.initnever overwrites a file that is already there; after an upgrade,policyforge init --refreshbrings the catalogs and examples up to date and lists what changed.export ANTHROPIC_API_KEY=sk-...(or whatever env var name your config names)policyforge llm-check— confirms your API key and model work.
From a clone, to work on PolicyForge itself
python -m venv .venv && source .venv/bin/activatepip install --upgrade pip setuptools— a fresh venv’s own pip/setuptools are often a version behind, which otherwise shows up as a confusing false-alarm-feeling failure the first time you runpip-audit(see “Running the quality checks” below).pip install -e ".[dev]"— for local work. CI installs fromrequirements/ci.txtinstead, a hashed lock resolved for its Linux and Python 3.12 rather than for whatever the machine running it has. Change a dependency inpyproject.tomland the lock needs regenerating with theuv pip compilecommand written in its header; Dependabot bumps it otherwise. semgrep is not in the dev extra:scripts/check.pyruns it from a pinned container image, so it needs Docker (without Docker the step is skipped with a note; CI always runs it).cp config/config.example.yaml config/config.yamland fill in your model choice and the name of the environment variable holding your API key (not the key itself).export ANTHROPIC_API_KEY=sk-...(or whatever env var name you configured)pre-commit install— sets up the secrets/dependency scanner to run before every commit.policyforge llm-check— confirms your API key and model work.