Skip to main content

Primr

CI PyPI Python 3.12-3.14 License: Apache 2.0 OpenSSF Scorecard

Company name + website → evidence-grounded, long-form strategic reports. Built for agent hosts and the CLI: structured research, strategic insight, confidence labels, and durable Word and Markdown artifacts, not a free-form chat essay.

Primr gathers public site pages, DNS/recon, hiring signals, and other open sources, develops a strategic view of the company, then produces a consultant-style Strategic Overview and selected YAML-defined strategy documents with citations and Confirmed / Reported / Estimated / Hypothesis labels. Point an agent at the repo, or run the CLI. Both paths use the same evidence, uncertainty, and long-form artifact contract, but their execution, model ownership, and assurance are different.

Illustrative primr CLI session for ExampleCo: estimate, then report artifacts

Placeholder demo data (ExampleCo), not a live company capture.

primr "ExampleCo" https://example.co

In an agent chat, that request defaults to Primr Zero: keyless evidence collection in Primr, research and writing in the host (when the host plan does not bill API usage). When a human runs the command directly in a terminal, it retains the provider-backed CLI path after a dry-run estimate and approval.

What it is for

Use Primr when you need a serious first draft for discovery, account planning, diligence, competitive analysis, or strategy work, not a two-paragraph pre-call blurb (use normal web search for that).

  • Structured brief with uncertainty labels, not scattered notes
  • Research grounded in public evidence, not only search summaries
  • Cost-aware local execution: dry-run before billable work
  • Reusable Markdown/DOCX artifacts for humans, agents, and downstream tools

Primr is not a generic crawler, a SaaS collaboration app, a model-serving platform, or a tool for bypassing authentication, paywalls, or site restrictions.

Start here

Where you run it Default path Spend Result
Agent chat pointed at Primr Primr Zero No Primr model API spend; verify host plan allowance Evidence bundle + host-written sourced dossier
Terminal or script Provider-backed Billable after a fresh quote and explicit approval Primr Strategic Overview + strategy artifacts

Both paths can deliver a Strategic Overview and AI Strategy as Markdown and DOCX (on the Zero path, primr render <file>.md converts host Markdown to DOCX at $0). The provider-backed path additionally owns its measured synthesis, cross-validation, usage accounting, and recovery stages. A configured API key is capability, not consent to spend.

Primr prefers a validated zero-incremental-cost route when the current agent host or local environment can support the full artifact contract honestly. When provider APIs are required, the Standard recipe targets the best complete report and default strategy artifacts it can produce for approximately $1; the exact dry-run estimate remains authoritative and execution still requires explicit approval.

Agent path

Point a capable agent at this repository:

primr "ExampleCo" https://example.co

The agent uses Primr Zero unless you explicitly request paid, metered, provider-backed, or premium execution. Its primr prep collection is already noninteractive and needs no approval flag. Routing, confirmation rules, MCP setup, and host handoff live in Agent Integration and Zero-Cost / Primr Zero.

Terminal path

primr "ExampleCo" https://example.co --dry-run --budget 10
primr "ExampleCo" https://example.co                  # foreground, then approve
primr "ExampleCo" https://example.co --skip-confirm   # automation, after approval

--skip-confirm is the approval signal for a noninteractive or background launch of the standard provider-backed commands. Use it only after a person has reviewed and approved the fresh quote. The experimental primr orchestrate command is the exception: its noninteractive approval and spend ceiling is --max-cost <usd> after the exact dry run is approved.

Mode matrix, platforms, strategy types, and cost controls: Run Modes and Costs.

Install

  • Python 3.12 through 3.14; see the installation guide for the 3.15 preview lane
  • No API key or GPU for primr recon / primr prep
  • Keys only for provider-backed research (measured default: xAI + Gemini; optional OpenRouter preview)
  • primr init installs browser deps for scrape tiers
pipx install primr
primr --version

Plain pip install primr also works. Download and inspect convenience installers before running them. For those scripts, upgrades, PATH troubleshooting, and source-checkout setup, see Installation and Upgrades.

Provider-backed setup only when you want billable runs:

primr init
primr doctor

Keys and full config: API Key Setup · OpenRouter Preview · Configuration.

Common commands

Need Command
Agent-host dossier (Zero by default) primr "Company" https://company.com
Keyless evidence bundle primr prep "Company" https://company.com
Estimate a paid run with a ceiling primr "Company" https://company.com --dry-run --budget 10
Strategic Overview only primr "Company" https://company.com --no-ai-strategy
Site corpus only primr "Company" https://company.com --mode scrape
DNS only (no keys) primr recon company.com
Skills pack primr skills "Company" https://company.com
Markdown → DOCX/TXT ($0) primr render "output/report.md"
Strategy on existing report primr --ai-strategy-only "output/report.md" --dry-run
Check or install an update primr update --check / primr update

Focused help: primr --help. Everything: primr --help-all.

Cost gate

Billable runs need a fresh --dry-run estimate and explicit approval. A --budget 10 cap sets a $10 ceiling for that Primr run, not a $10 target or permission to launch. The preview reports whether the estimate fits, and an oversized plan is not launch-ready. Unattended execution stays fail closed unless it carries the command-specific approval signal. See Run Modes and Costs for the complete policy.

Outputs

Default: customer-facing files under output/, diagnostics under working/.

  • <Company>_Strategic_Overview_<date>.md / .docx
  • <Company>_AI_Strategy_<date>.md / .docx (unless --no-ai-strategy)
  • run_manifest.json (estimate, approval, audit)

Agent inventory (paths/roles only, no report body): primr://output/artifacts/by_job/{job_id}. Full artifact and recovery guides: Artifacts · Recovery.

Docs

Topic Guide
Product and delivery contract COMPANY_ANALYST_PRODUCT_CONTRACT
Installation and upgrades INSTALLATION
Run modes and costs RUN_MODES
Primr Zero / host-assisted ZERO_COST
Agent / MCP / A2A AGENT_INTEGRATION · API
API keys API_KEYS
Optional OpenRouter gateway OPENROUTER
Configuration CONFIG
Artifacts ARTIFACTS
Skill packs SKILL_PACK
Security SECURITY
Contributing / architecture CONTRIBUTING · ARCHITECTURE
Roadmap ROADMAP

Docs site index: docs/README.md.

Disclaimer

Primr retrieves and analyzes public web content. You are responsible for site terms, provider costs, output accuracy, and legal fit. AI-generated analysis can be wrong or outdated. Verify important findings before acting on them.

License

Apache 2.0. See LICENSE.

Metadata

Release files for primr 1.39.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for primr 1.39.13
File Size Uploaded
primr-1.39.13.tar.gz 2.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for primr 1.39.13
File Interpreter ABI Platform
primr-1.39.13-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 MB

Release files / primr-1.39.13.tar.gz

Download URL primr-1.39.13.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
820ed28fe236fa6301275e14c2118940e5ed8efa42cc6add278d3ee097f30353
BLAKE2b-256 checksum
How to use checksums
e9e1c3b92f89aaa0703c3a70b9f0cc3cdbd658886992a254f68e35f805ceda2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 2, 2026.

Transparency log

Release files / primr-1.39.13-py3-none-any.whl

Download URL primr-1.39.13-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2a3b7c7318782a2a039566d375fd0a6ea660b9e1bb861137115c6796d3c1da6e
BLAKE2b-256 checksum
How to use checksums
847b156b173bd7c50fb2a5f86a73173344f52f7ae7275bfcc8f0e509d345cb13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.39.13 This release

2 release files

1.39.9

2 release files

1.39.8

2 release files

1.39.7

2 release files

1.39.6

2 release files

1.39.5

2 release files

1.39.4

2 release files

1.39.3

2 release files

1.38.0

2 release files

1.37.2

2 release files

1.37.1

2 release files

1.37.0

2 release files

1.36.1

2 release files

1.36.0

2 release files

1.35.2

2 release files

1.35.1

2 release files

1.35.0

2 release files

1.34.9

2 release files

1.34.8

2 release files

1.34.7

2 release files

1.34.6

2 release files

1.34.5

2 release files

1.34.4

2 release files

1.34.3

2 release files

1.34.2

2 release files

1.34.1

2 release files

1.34.0

2 release files

1.33.4

2 release files

1.33.3

2 release files

1.33.2

2 release files

1.33.1

2 release files

1.33.0

2 release files

1.32.8

2 release files

1.32.7

2 release files

1.32.6

2 release files

1.32.5

2 release files

1.32.4

2 release files

1.32.3

2 release files

1.32.2

2 release files

1.32.1

2 release files

1.32.0

2 release files

1.31.0

2 release files

1.30.0

2 release files

1.27.1

2 release files

1.26.0

2 release files

1.25.2

2 release files

1.25.1

2 release files

1.25.0

2 release files

1.24.4

2 release files

1.24.3

2 release files

1.24.2

2 release files

1.24.1

2 release files

1.24.0

2 release files

1.21.2

2 release files

1.21.1

2 release files

1.21.0

2 release files

1.20.4

2 release files

1.20.3

2 release files

1.20.2

2 release files

1.20.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page