> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build a custom framework

> Learn how to create a custom governance framework from scratch

Most organizations have internal AI standards and policies that every initiative must
follow — responsible AI guidelines, model review processes, documentation requirements, and similar practices that don't map to a single external standard.

Custom frameworks let you codify these into a set of enforceable rules that your projects track alongside any regulatory frameworks you've activated.

![Adding rules to a framework](https://openlayer-static-assets.s3.us-west-2.amazonaws.com/images/add_rules.gif)

**1. Create the framework**

Navigate to **Governance > Frameworks** and click **Create framework**.

Provide a name (e.g., "Internal Responsible AI Policy"), an optional description, and an icon to identify the framework at a glance.

**2. Add platform rules**

Select the platform rules your framework should enforce. Platform rules require teams to take specific actions within Openlayer — such as enabling [monitoring mode](https://docs.openlayer.com/monitoring/overview.md), capturing production traces, or running [tests in CI/CD](https://docs.openlayer.com/development/overview.md).

Your selections appear in the sidebar as you go. See [Platform rules](https://docs.openlayer.com/governance/platform-rules.md) for the full list of available rules.

**3. Add evidence-based rules**

Select the evidence-based rules your framework should enforce. These require teams to upload documents or provide links as proof of compliance — security policies, model cards, risk assessments, and similar artifacts.

Openlayer provides a library of common rules, including AI use case declarations, security guidelines, technical documentation, and responsible disclosure policies.

To create a custom rule, click **New rule** and define:

* A name and description
* **Scope** — workspace-wide (completed once for the whole org) or per-project (each project must satisfy it individually)
* **Renewal cadence** — for policies that need periodic review, such as annual security audits

See [Evidence-based rules](https://docs.openlayer.com/governance/evidence-based-rules.md) for details on scope and renewal.

**4. Review and create**

Click **Configure rules** to edit the rules you selected, including where a required test has to be set up; finishing or skipping the remaining rules opens the review. Hover **Configure** on a row to edit one rule — configuring it also selects the rule.

Review the summary of your framework: its name, description, and all selected rules grouped by type. Click **Create framework** when ready.

Your framework is ready. The next step is activating it and scoping it to projects — the process is the same as for built-in frameworks. See [Activate a built-in framework](https://docs.openlayer.com/governance/activate-framework.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.