Skip to main content

OCI Policy Analysis

Analyze OCI IAM policies, compartments, identity domains, groups, users, and dynamic groups from a desktop app, web app, CLI, or MCP server. The tool is read-only: it analyzes data but does not change your tenancy.

Quick start

Choose the path that fits you:

  • Desktop: local, single-user visual analysis.
  • Web: browser-based access, locally or for a team.
  • CLI: scripting, exports, and automation.
  • MCP: use OCI policy data with an MCP client.

Easiest: download an application

Download the latest macOS or Windows application from the Releases page. If your operating system asks for approval, allow the downloaded application to run.

Install with pip

You need Python 3.12 or later. Create and activate a virtual environment:

python -m venv .venv

# macOS/Linux
source .venv/bin/activate

# Windows PowerShell
.venv\Scripts\Activate.ps1

Install only the mode you intend to use:

# Desktop application (requires a working Tkinter installation)
python -m pip install oci-policy-analysis

# Browser-based web server
python -m pip install "oci-policy-analysis[web]"

# Command-line interface
python -m pip install oci-policy-analysis

# MCP server
python -m pip install "oci-policy-analysis[mcp]"

Start the selected mode:

oci-policy-analysis-ui                 # Desktop
oci-policy-analysis-web                # Web: open http://127.0.0.1:8000
oci-policy-analysis-cli --help         # CLI
oci-policy-analysis-mcp --help         # MCP

NOTE: For the desktop app, confirm Tkinter works before starting if needed - one time test:

python -m tkinter

If this fails, collect your python version and then install TK for that version. For example, on Mac:

((.venv) ) agregory@agregory-mac oci-policy-analysis % python -V
Python 3.12.13
((.venv) ) agregory@agregory-mac oci-policy-analysis % python -m tkinter
(fails)
((.venv) ) agregory@agregory-mac oci-policy-analysis % brew install python-tk@3.12
...
==> Installing python-tk@3.12
==> Pouring python-tk@3.12--3.12.14.arm64_tahoe.bottle.tar.gz
...
((.venv) ) agregory@agregory-mac oci-policy-analysis % python -m tkinter
(works)

Choose your data source

You do not have to connect this tool to a live tenancy.

  • Live OCI load: requires an OCI user/API-key profile, session token, instance principal, or resource principal and IAM permissions granted to that principal. Before loading a tenancy, complete Authentication and principals and Permissions required.

  • Offline CIS compliance import: import the directory of OCI CIS Compliance output files instead. This lets you analyze the supplied data without the tool connecting to your tenancy. In the desktop or web app, choose Load Compliance Data; from the CLI, use:

    oci-policy-analysis-cli --load-from-compliance /path/to/compliance_csv_output
    

    See the CLI guide for expected files and options.

More help

The full documentation covers mode-specific setup, OCI authentication and permissions, CIS compliance imports, web hosting, CLI and MCP usage, troubleshooting, architecture, and API reference.

License and support

Licensed under UPL-1.0.

This is not an Oracle-supported application. It uses supported OCI Python SDK calls and is designed to request the minimum access needed to read and analyze the selected data.

Metadata

Release files for oci-policy-analysis 6.4.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 oci-policy-analysis 6.4.0
File Size Uploaded
oci_policy_analysis-6.4.0.tar.gz 802.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oci-policy-analysis 6.4.0
File Interpreter ABI Platform
oci_policy_analysis-6.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / oci_policy_analysis-6.4.0.tar.gz

Download URL oci_policy_analysis-6.4.0.tar.gz
Size 802.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ed392c1e99bddc93df4cf855a7c9b7dd805c091bf2724c7db05bc634b5575980
BLAKE2b-256 checksum
How to use checksums
51296888d6255bafac6f3b22d871c2468fc6abd443d054396307c3b319b0d28e
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 2, 2026.

Transparency log

Release files / oci_policy_analysis-6.4.0-py3-none-any.whl

Download URL oci_policy_analysis-6.4.0-py3-none-any.whl
Size 766.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a9e4494ef525891b4e92629d779bb464a4aae474877644f0314e4f31eb3257e
BLAKE2b-256 checksum
How to use checksums
a22b496132667843c48c3dde9d524de286c420cf8ebed3420a0c816e8713e392
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 2, 2026.

Transparency log

Release history Release notifications | RSS feed

6.5.7

2 release files

6.5.6

2 release files

6.5.5

2 release files

6.5.4

2 release files

6.5.3

2 release files

6.5.2

2 release files

6.5.1

2 release files

6.5.0

2 release files

This release

6.4.0 This release

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.2

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.0

2 release files

6.0.0

2 release files

5.3.0

2 release files

5.2.1

2 release files

5.2.0

2 release files

5.1.2

2 release files

5.1.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