Skip to main content

falcon-axi

Read CrowdStrike Falcon from the shell with compact, structured results for agents and the humans running them.

PyPI License: MIT Python Provenance AXI

Why • Quickstart • Agents • Coverage • Safety • Configuration • Output • Troubleshooting • Contributing • Security • License

Why this exists

Raw Falcon APIs leave agents stitching together routes, pagination, and large product-specific responses. falcon-axi provides verified read routes, bounded pages, compact TOON output, and actionable next-step hints. It is read-only by default, with explicit boundaries for search jobs and guarded response sessions. Synthetic offline checks verify local behavior and safety constraints; they do not claim live-tenant validation.

Quickstart

Requires Python 3.11 or newer and uv. Install globally, or use uvx falcon-axi without a permanent install:

uv tool install falcon-axi

Before credentials are configured, the home view reports (synthetic offline output excerpt):

$ falcon-axi
error: no Falcon profile configured
code: PROFILE_REQUIRED

Create a Falcon API client with the required permissions. Have your secret manager supply FALCON_AXI_CLIENT_ID and FALCON_AXI_CLIENT_SECRET in the environment. Keep credentials out of command arguments, shell history, and agent chat. For named profiles or secret files, see configuration.

Run falcon-axi setup for guidance, then falcon-axi auth status to check credentials.

Read a severity count; this empty result is replayed from a synthetic offline fixture:

$ falcon-axi detection summary --severity critical
detections: 0 detections matching critical severity

Use with your agent

Opt in to local session context after installing the CLI in a durable location:

falcon-axi setup hooks

Hooks provide profile status, region, version, and a command hint to Claude Code, Codex, and OpenCode without contacting Falcon. For on-demand guidance and the full command references, install the agent skill:

npx skills add knowttl/falcon-axi --skill falcon-axi

Start investigations with the compact agent guide, including one-call forms, output controls, safety boundaries, and failure recovery.

Choose either integration or both; neither grants Falcon permissions, and setup does not install the skill. See agent integration for targets, durable-install requirements, and hook removal.

What it covers

Names omit the falcon-axi prefix; every group links to its complete command reference. The generated leaf table owns the shipped command list. Run any command with --help for arguments, limits, and examples.

Groups Purpose Access Reference
detection, host, process Alerts, endpoint history, and process lineage Read; host usb starts a search Investigation
account, asset, application, login, iot, host-group Discover inventory and group membership Read Inventory
vuln, cve Spotlight findings and CVE intelligence Read Vulnerabilities
actor, report, malware, indicator, ioc, sandbox, quarantine Threat intelligence, observed indicators, and file metadata Read Intelligence
identity Directory risk, activity, assessment, sensors, and rules Read; activity starts a search Identity
search, malquery NG-SIEM jobs and bounded malware-pattern searches Read and search lifecycle Search, MalQuery
container, image, serverless, cloud-asset, iom, cloud-risk Workloads, cloud inventory, and misconfigurations Read Cloud
classification, data-policy, policy, exclusion, firewall, ioa, correlation-rule Security configuration and rule inventories Read Policies
shield, file-change, case, sensor-usage, recon-rule, recon-notification, recon-record Posture, change history, cases, usage, and Recon Read Posture
rtr Passive session history and guarded read-only commands Read; execution opens a session RTR
auth, profile, config, scopes, setup Credential diagnostics, permissions, and agent setup Read; setup hooks writes local agent settings Setup

Safety

falcon-axi is read-only by default: no containment, remediation, quarantine release, configuration changes, or arbitrary API passthrough. Tenant-side effects are limited to NG-SIEM jobs, bounded MalQuery searches, and guarded RTR sessions. RTR previews locally; execution requires profile opt-in, a fixed command allowlist, --execute, and exact --confirm. Set FALCON_AXI_READ_ONLY=1 to block search lifecycle commands, MalQuery search, and RTR execution. Passive history, local previews, and fixed read-only Identity GraphQL queries remain available. Identity GraphQL requires a write-labelled scope but accepts only registered read-only documents. Credentials use environment or file references; tokens stay in memory, and credentials and standalone tenant CIDs are redacted. Composite detection IDs retain embedded tenant CIDs, so treat investigation output as sensitive. See read-only enforcement for gates, data handling, and recovery.

Create an API client under Support and resources > API clients and keys in Falcon, granting only the domains you use. Run falcon-axi scopes offline or consult the permissions matrix; product licensing also controls availability.

Configuration

Run falcon-axi config path to inspect config and journal paths.

Platform Default config path
Linux / macOS ~/.config/falcon-axi/config.json, or absolute $XDG_CONFIG_HOME/falcon-axi/config.json
Windows %APPDATA%\falcon-axi\config.json, falling back to ~/AppData/Roaming/falcon-axi/config.json
Environment variable Purpose Default
FALCON_AXI_PROFILE Named profile; overridden by --profile Automatic selection
FALCON_AXI_CONFIG Config file; overridden by --config Platform path above
FALCON_AXI_REGION Environment profile cloud; --region overrides profiles us-1
FALCON_AXI_MEMBER_CID Environment profile child tenant; --member-cid overrides profiles None
FALCON_AXI_CLIENT_ID Environment profile client ID Unset
FALCON_AXI_CLIENT_SECRET Environment profile secret / default SecretRef Unset
FALCON_AXI_PROXY_URL HTTPS proxy URL Direct connection
FALCON_AXI_READ_ONLY Block search lifecycle, MalQuery search, and RTR execution false; enable with 1 / true
FALCON_AXI_WRITE_LOG Mandatory RTR execution journal State directory writes.log
XDG_CONFIG_HOME, XDG_STATE_HOME Absolute POSIX config / state roots ~/.config, ~/.local/state
APPDATA, LOCALAPPDATA Windows config / state roots ~/AppData/Roaming, ~/AppData/Local
HOME, PATH Home and hook executable discovery Process environment / OS home
CLAUDECODE, CODEX_THREAD_ID, CODEX_SESSION_ID, PI_CODING_AGENT, OPENCODE Detect the host for skill-install hints Unset
CLAUDE_CONFIG_DIR, PI_CODING_AGENT_DIR Host skill-discovery roots ~/.claude, ~/.pi/agent
FALCON_CLIENT_ID, FALCON_CLIENT_SECRET, FALCON_MEMBER_CID, FALCON_BASE_URL, FALCON_PROXY_URL Deprecated aliases; replacements win Unset

See configuration for profiles, precedence, regions, SecretRefs, and path defaults. --no-member-cid clears inherited child selection; --version, -v, and -V print the installed version.

Output and exit codes

Data and structured errors use TOON on stdout; debug logging and progress use stderr. Response-invalid errors include bounded diagnostics under the error translation contract. Lists have explicit empty states, small default schemas, and next-step hints. Supported detail commands preview long fields; use their --full flag for complete content. One invocation reads one page by default; pass emitted continuation_cursor values to --cursor where supported. Detection, host, account, and vulnerability lists support bounded --all walks; search jobs use CQL result bounds instead. See pagination and walks for caps and partial-result semantics.

Exit code Meaning
0 Success, including empty results
1 Authentication, permission, network, policy, or other failure
2 VALIDATION_ERROR, CONFIG_INVALID, or FQL_INVALID

Errors include a stable code and actionable help; unknown commands and flags fail loudly.

Troubleshooting

Symptom Action
PROFILE_REQUIRED / AUTH_REQUIRED / AUTH_FAILED Check the credential pair or SecretRef with falcon-axi auth status
CONFIG_INSECURE Fix ownership, permissions, or Windows DACL as the error directs
SCOPE_DENIED / TENANT_DENIED Check falcon-axi scopes, licensing, and Flight Control access
ORIGIN_NOT_ALLOWED / FQL_INVALID / RATE_LIMITED Follow structured help for the region, filter, or retry delay
Hook installation refused Use a durable installation and repair malformed agent configuration

Contributing

See CONTRIBUTING.md for development, offline verification, documentation generation, and releases, and AGENTS.md for repository constraints.

Security

See SECURITY.md for vulnerability reporting and sensitive-output handling.

License

MIT.

Metadata

Release files for falcon-axi 0.9.0

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

Source distribution (sdist)

Source distribution for falcon-axi 0.9.0
File Size Uploaded Provenance Actions
falcon_axi-0.9.0.tar.gz 147.9 kB With provenance Details for falcon_axi-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for falcon-axi 0.9.0
File Interpreter ABI Platform Actions
falcon_axi-0.9.0-py3-none-any.whl Python 3 none any Details for falcon_axi-0.9.0-py3-none-any.whl

Total release size: 347.7 kB

Release files / falcon_axi-0.9.0.tar.gz

Download URL falcon_axi-0.9.0.tar.gz
Size 147.9 kB
Tags Source
SHA-256 checksum
How to use checksums
002e55b1642bf4b59259f00cfa03072fdf3db7e2586ff540443c20c005afd4ba
BLAKE2b-256 checksum
How to use checksums
84602f663327db29e0b95aa8f2c60af76a601a148dd00a66daaa6200226966ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Release files / falcon_axi-0.9.0-py3-none-any.whl

Download URL falcon_axi-0.9.0-py3-none-any.whl
Size 199.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1d83f7302709fc0f5ead3c4688c3ce956fa03536cec4566925b760e3ee09ac6
BLAKE2b-256 checksum
How to use checksums
7330a572ec22f27fe8917ff6321d0050e6fb13ba1db26a3057ce18f43fb1f91d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 31, 2026.

Transparency log

Security for falcon-axi 0.9.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for falcon_axi-0.9.0.tar.gz

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 Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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