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

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.5.7
File Size Uploaded
oci_policy_analysis-6.5.7.tar.gz 2.9 MB Details

Built distribution (wheel)

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

Total release size: 5.7 MB

Release files / oci_policy_analysis-6.5.7.tar.gz

Download URL oci_policy_analysis-6.5.7.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
4cf9c8a03e5031b881ab454897b51d6044b981e826b7412802dedc03da2d0d96
BLAKE2b-256 checksum
How to use checksums
50fc62b304cd1d2791830119e8ca12b5833b7e21a5da049411945aaf084ae0b7
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 Oct 14, 2026.

Transparency log

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

Download URL oci_policy_analysis-6.5.7-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
56be3ddad2133dafe934a53d89cc06442da9d70d941daff901320308c592f21e
BLAKE2b-256 checksum
How to use checksums
f03d38869fd7eca1c9ac1219017c0939f0c94674d3e80111ddfae397df72fe9d
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 Oct 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

6.5.7 This release

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

6.4.0

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