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

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

Built distribution (wheel)

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

Total release size: 5.7 MB

Release files / oci_policy_analysis-6.5.5.tar.gz

Download URL oci_policy_analysis-6.5.5.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
920675d1f68b7d86c9f3f015011f8326caa1389a3070e66f17345cc61aacf886
BLAKE2b-256 checksum
How to use checksums
a5ca7620e4ca9b0d222c57a78a11e482f34547193703512091067aeda906eab3
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 29, 2026.

Transparency log

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

Download URL oci_policy_analysis-6.5.5-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e222c504a7fd88f8784ce4fea357c0c7995d3bc3c5baeee77def1879043d51ed
BLAKE2b-256 checksum
How to use checksums
5839a641062a40e57ca74c8446b98b8025278fb2bec547c52aeb40f55e1b4a14
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 29, 2026.

Transparency log

Release history Release notifications | RSS feed

6.5.7

2 release files

6.5.6

2 release files

This release

6.5.5 This release

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