> For the complete documentation index, see [llms.txt](https://docs.orkestra.online/orkestra-online/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orkestra.online/orkestra-online/okpy/overview.md).

# OkPy

OkPy lets you build your own tools for Revit, Civil 3D, AutoCAD, Navisworks and Rhino: describe them to OkPy Agent or write them in C# or Python, then share them with your team through Orkestra.

OkPy is where you build your own tools for your design apps. A tool can be as small as "renumber these rooms", or a full dashboard that stays open next to your model. You build it inside Revit, Civil 3D, AutoCAD, Navisworks or Rhino, try it on your open model, and publish it to Orkestra so your whole team can run it from their ribbon.

OkPy ships with Orkestra. You don't install anything else.

{% hint style="success" %}
**OkPy builds tools.** OkPy Agent doesn't change your model for you: it builds a tool that does the job, which you test, keep and share. The next time the job comes up, you, or anyone on your team, run the tool in seconds, with no AI involved. So ask for "a tool that renames sheets in bulk", not "rename my sheets".
{% endhint %}

<figure><img src="https://705252832-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6wDJF-clP9xeoy68-u%2Fuploads%2F1xc6uyXeR868OylVqy5U%2Fdiagrams-okpy-overview.png?alt=media" alt="Diagram of OkPy: you describe a tool to OkPy Agent or write it in the OkPy editor; you try it safely in Test Mode on your open model; you save it on your computer or publish it to an Orkestra workspace; your team then runs it from the Orkestra pane, a ribbon button or a HotKey."><figcaption><p>Build, test, share: the life of an OkPy tool.</p></figcaption></figure>

## Two ways to build

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Describe it to OkPy Agent</strong></td><td>No code. Say what you need in your own words, watch the tool take shape, test it on your model, then save or publish it.</td><td><a href="https://docs.orkestra.online/orkestra-online/okpy/get-started/first-tool-with-the-agent.md">Build your first tool with OkPy Agent</a></td></tr><tr><td><strong>Write it in the OkPy editor</strong></td><td>For people who code: C# or Python, with completion, a console, safe test runs, and the agent at your side when you want it.</td><td><a href="https://docs.orkestra.online/orkestra-online/okpy/get-started/first-tool-in-code.md">Write your first tool in code</a></td></tr></tbody></table>

## What you can build

| Kind of tool   | What it does                                                                                      | Example                                                       |
| -------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| **Tool**       | Runs when you click it. Most tools open their own window with the controls they need.             | A sheet renamer with a before-and-after preview.              |
| **Panel tool** | Docks next to your model and stays open while you work. It follows your selection and your edits. | A warnings dashboard that updates as you model.               |
| **Event tool** | Runs by itself when something happens: a model opens, elements change, the model is saved.        | A check that flags doors without a fire rating when you save. |

See [Kinds of tools](https://docs.orkestra.online/orkestra-online/okpy/kinds-of-tools.md) to choose.

## Where OkPy runs

| Design app                     | Versions            | Notes                                                                                                                        |
| ------------------------------ | ------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Revit                          | 2019 to 2027        | Tools, panel tools and event tools.                                                                                          |
| Civil 3D and AutoCAD           | 2020 to 2027        | Also the AutoCAD-based products, such as AutoCAD Architecture or Map 3D. In plain AutoCAD 2024 and older, write tools in C#. |
| Navisworks Manage and Simulate | 2024 to 2027        | Test Mode restores what you see, not what the tool created.                                                                  |
| Rhino                          | Rhino 7 and Rhino 8 |                                                                                                                              |

Details per app: [OkPy in each design app](https://docs.orkestra.online/orkestra-online/okpy/help/okpy-in-each-design-app.md).

## Start here

1. [Open OkPy](https://docs.orkestra.online/orkestra-online/okpy/get-started/open-okpy.md) in your design app.
2. Build a first tool, [with OkPy Agent](https://docs.orkestra.online/orkestra-online/okpy/get-started/first-tool-with-the-agent.md) or [in code](https://docs.orkestra.online/orkestra-online/okpy/get-started/first-tool-in-code.md).
3. [Publish it to Orkestra](https://docs.orkestra.online/orkestra-online/okpy/save-and-share/publish-to-orkestra.md) so your team can run it.

{% hint style="info" %}
Running OkPy tools that others built doesn't need OkPy at all: your team runs them from the Orkestra pane, from ribbon buttons or with HotKeys. See [Run a tool](https://docs.orkestra.online/orkestra-online/integrations/everywhere/run-a-tool.md).
{% endhint %}
