Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.42 KB

plugins.md

File metadata and controls

46 lines (35 loc) · 1.42 KB

AIP plugins

AIP discovers extensions from three sources: bundled plugins, installed Python entry points in the aip.plugins group, and trusted .py files in ~/.aip/plugins (or directories listed in AIP_PLUGIN_PATH). A broken plugin is reported without preventing the rest of the CLI from starting.

Using plugins

aip plugin list
aip plugin info hello-aip
aip plugin run hello-aip greet Ada
aip marketplace list
aip marketplace search ui

The Streamlit, Gradio, and Marimo adapters are built in, but their frameworks are optional:

uv tool install 'ai-playground[streamlit]'
aip plugin run streamlit serve -- --server.port 8080
aip serve marimo -- --headless

aip serve marimo serves the local ./notebooks directory created by aip notebooks init instead of a packaged app file; the notebooks guide covers that workflow in depth.

Authoring a plugin

Subclass aip.plugins.AIPPlugin, provide immutable PluginMetadata, and implement commands() and run(). Return PluginResult rather than exiting the process. The complete reference package is in examples/plugins/hello_aip.

Publish a plugin by declaring an entry point:

[project.entry-points."aip.plugins"]
my-plugin = "my_package:MyPlugin"

Plugin code runs in the AIP process. Install or place only plugins you trust. API compatibility is checked through PluginMetadata.api_version; this release uses API version 1.