pycti
Python API client for OpenCTI.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, permissively licensed, has no known vulnerabilities, and is widely used (top 5000 PyPI). Install it if you need to integrate with OpenCTI; the main consideration is ensuring your OpenCTI instance is accessible and that the 18 runtime dependencies align with your environment's constraints.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- An accessible OpenCTI API instance (URL and valid authentication token) is required; the client cannot function without a running OpenCTI server to connect to.
- Low friction installation with a pure-Python wheel distribution.
- The package is actively maintained with a recent release and 9810 repository stars, indicating stable community adoption.
License · maintenance · safety
Apache (permissive) — Licensed under Apache (permissive), allowing commercial and private use with minimal restrictions—suitable for most deployment scenarios.
last release 2026-08-11 (3 days) · last repo commit 2026-08-14 · 9,810 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,917,186 downloads/mo, #3,433 on PyPI
Alternatives
Verify before relying
pip install pycti
from pycti import OpenCTIApiClient
client = OpenCTIApiClient(
url="http://opencti-instance:4000",
token="your-api-token"
)
# Query indicators
indicators = client.indicator.list()- Whether the package's 18 runtime dependencies (including boto3, fastapi, stix2) are all required for basic usage or if some are optional for specific features.
- Whether OpenCTI API server availability is a hard requirement or if the client can operate in offline/mock modes for testing.
What it is and what it does
Pycti is the official Python client for OpenCTI, a threat intelligence platform developed by Filigran. It abstracts the OpenCTI REST API into Python methods and utilities, allowing developers to query, create, and manage threat intelligence objects (indicators, malware, campaigns, etc.) programmatically. The client is used both by external integrations and by OpenCTI's own internal components.
The package brings together a substantial dependency graph—including boto3 for cloud storage, pika for message queuing, fastapi and uvicorn for async web operations, stix2 for standards-based threat data, and observability tools like prometheus-client and opentelemetry—suggesting it is designed for production environments where threat data flows through multiple systems. It requires Python 3.7 or later and is actively maintained, with its last release 3 days old.
Use it for
- Automate threat intelligence ingestion by querying OpenCTI for indicators, malware profiles, or campaigns and feeding them into your security tools.
- Build custom connectors or enrichment workflows that read from OpenCTI and write results back, leveraging the client's standardized API methods.
- Integrate OpenCTI threat data into SOAR platforms or incident response systems via programmatic API calls rather than manual exports.
- Develop monitoring dashboards or reporting scripts that pull live threat statistics and entity relationships from an OpenCTI instance.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, permissively licensed, has no known vulnerabilities, and is widely used (top 5000 PyPI). Install it if you need to integrate with OpenCTI; the main consideration is ensuring your OpenCTI instance is accessible and that the 18 runtime dependencies align with your environment's constraints.
Install
pycti on PyPI
Before you install
Low friction installation with a pure-Python wheel distribution. The package is actively maintained with a recent release and 9810 repository stars, indicating stable community adoption.
An accessible OpenCTI API instance (URL and valid authentication token) is required; the client cannot function without a running OpenCTI server to connect to.
License in practice
Licensed under Apache (permissive), allowing commercial and private use with minimal restrictions—suitable for most deployment scenarios.
Quickstart
pip install pycti
from pycti import OpenCTIApiClient
client = OpenCTIApiClient(
url="http://opencti-instance:4000",
token="your-api-token"
)
# Query indicators
indicators = client.indicator.list()
Verify before relying
- Whether the package's 18 runtime dependencies (including boto3, fastapi, stix2) are all required for basic usage or if some are optional for specific features.
- Whether OpenCTI API server availability is a hard requirement or if the client can operate in offline/mock modes for testing.
Package facts
| License | Apache permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 18 packagesboto3datefinderpikapydanticpython_json_loggerPyYAMLrequestssetuptoolscachetoolsprometheus-clientopentelemetry-apiopentelemetry-sdkdeprecationfastapiuvicornpyjwtfiligran-sseclientstix2 |
| Maintenance | Actively maintained 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,917,186 / month, #3,433 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishNatural Language :: FrenchOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: SecurityTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pycti-7.260811.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opencti python client”
- pyctiProvides a Python client library for the OpenCTI API, enabling…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- openapi-python-clientGenerates type-annotated Python HTTP clients from OpenAPI 3.0 and 3.1…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also taxii2-client · stix2 · OTXv2 · vt-py · kubernetes · stix · mixbox · docker-py · boschshcpy · alibabacloud-sas20181203