OpenAkita Plugin SDK
Build plugins for OpenAkita without installing the full runtime.
Install
pip install openakita-plugin-sdk
For development from source:
pip install -e ./openakita-plugin-sdk
30-Second Quick Start
Option A: Scaffold a plugin (recommended)
python -m openakita_plugin_sdk.scaffold --id my-tool --type tool --dir ./plugins
This creates a complete plugin directory with plugin.json, plugin.py, and README.md.
Available types: tool, channel, rag, memory, llm, hook, skill, mcp, ui.
Option B: Use decorators
from openakita_plugin_sdk import PluginBase, PluginAPI
from openakita_plugin_sdk.decorators import tool, hook, auto_register
@tool(name="greet", description="Greet someone by name")
async def greet(tool_name: str, arguments: dict) -> str:
return f"Hello, {arguments['name']}!"
@hook("on_message_received")
async def log_msg(**kwargs):
print(f"Got: {kwargs.get('text', '')[:50]}")
class Plugin(PluginBase):
def on_load(self, api: PluginAPI) -> None:
auto_register(api)
Option C: Manual registration
from openakita_plugin_sdk import PluginBase, PluginAPI
from openakita_plugin_sdk.tools import tool_definition
TOOLS = [
tool_definition(
name="hello",
description="Say hello",
parameters={
"type": "object",
"properties": {"name": {"type": "string"}},
"required": ["name"],
},
),
]
class Plugin(PluginBase):
def on_load(self, api: PluginAPI) -> None:
async def handler(tool_name: str, arguments: dict) -> str:
return f"Hello, {arguments['name']}!"
api.register_tools(TOOLS, handler)
Plugin Types at a Glance
| Type | What it does | Key API |
|---|---|---|
| Tool | Add tools the AI can call | api.register_tools() |
| Channel | Add IM channels (WhatsApp, Matrix...) | api.register_channel() |
| RAG | Add knowledge sources (Obsidian, Notion...) | api.register_retrieval_source() |
| Memory | Replace the built-in memory system | api.register_memory_backend() |
| LLM | Add LLM providers (Ollama, custom API...) | api.register_llm_provider() |
| Hook | React to lifecycle events | api.register_hook() |
| Skill | Inject prompt guidance (SKILL.md) | Declarative (no code) |
| MCP | Wrap an MCP server as a managed plugin | JSON config only |
| Full-Stack UI | Plugin with dedicated frontend page (2.0) | api.register_api_routes() + Bridge SDK |
Testing
from openakita_plugin_sdk.testing import MockPluginAPI, assert_plugin_loads
def test_my_plugin():
plugin = Plugin()
api = assert_plugin_loads(plugin)
assert "greet" in api.registered_tools
Documentation
| Doc | What it covers |
|---|---|
| Getting Started | Full walkthrough from zero to running plugin |
| API Reference | All PluginAPI methods and signatures |
| UI Plugin Guide | Full-stack UI plugin development (Plugin 2.0) |
| REST API | Plugin management HTTP endpoints |
| Permissions | Three-tier permission model |
| Hooks | All 14 lifecycle hooks with callback signatures |
| Protocols | Memory, Retrieval, Search interfaces |
| plugin.json | Manifest schema reference |
| Testing | MockPluginAPI and test patterns |
| Cross-Ecosystem | Compatibility with Claude/Cursor/Codex |
| Examples | Complete examples for all 9 plugin types |
SDK Modules
from openakita_plugin_sdk import (
PluginBase, PluginAPI, PluginManifest, tool_definition,
SDK_VERSION, PLUGIN_API_VERSION, PLUGIN_UI_API_VERSION,
)
from openakita_plugin_sdk.decorators import tool, hook, auto_register
from openakita_plugin_sdk.scaffold import scaffold_plugin
from openakita_plugin_sdk.testing import MockPluginAPI, assert_plugin_loads
from openakita_plugin_sdk.hooks import HOOK_NAMES, HOOK_SIGNATURES
from openakita_plugin_sdk.channel import ChannelAdapter, ChannelPluginMixin
from openakita_plugin_sdk.llm import (
LLMCompletion, LLMModel, LLMProvider, LLMSelectionPolicy,
PluginLLM, ProviderRegistry,
)
from openakita_plugin_sdk.protocols import MemoryBackendProtocol, RetrievalSource, SearchBackend
from openakita_plugin_sdk.config import config_schema, config_property
from openakita_plugin_sdk.types import UnifiedMessage, OutgoingMessage, ToolCall
Metadata
Release files for openakita-plugin-sdk 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openakita_plugin_sdk-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for openakita_plugin_sdk-0.7.1-py3-none-any.whl |
Release files / openakita_plugin_sdk-0.7.1-py3-none-any.whl
| Download URL | openakita_plugin_sdk-0.7.1-py3-none-any.whl |
|---|---|
| Size | 27.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
197158fd3901e5e20d0fa1a2166123ebc07548c2343db5025db8b266a9f6d2ef
|
|
BLAKE2b-256 checksum How to use checksums |
7b4ee8e5c70a786affa3be14c3e88004853a2f910fb33df08f3018aaa8cd092f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.15
|
Security for openakita-plugin-sdk 0.7.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.