Python client for OpenConstruct. Onboard agents into the SuperInstance ecosystem in under 10 lines.
- 5-phase onboarding —
start()→declare_agent()→select_modules()→choose_interface()→generate_config() - Module registry — domain-filtered catalog of available modules
- Pip-installable —
pip install openconstruct - Zero runtime dependencies — pure Python, no native extensions
from openconstruct import OpenConstructClient, AgentIdentity
client = OpenConstructClient()
client.start()
identity = AgentIdentity(
name="my-agent",
model="claude-4",
capabilities=["code_generation", "web_search", "file_ops"],
tools=["exec", "read", "write"]
)
client.declare_agent(identity)
modules = client.list_modules(domain="math")
client.select_modules(["spectral-graph-core", "plato-room"])
client.choose_interface(["cli", "api"])
config = client.generate_config()
print(config)pip install openconstructpip install -e ".[dev]"
pytestOne of the polyglot OpenConstruct bindings. Used by openconstruct-jupyter for notebook integration. See openconstruct-examples for a Python onboarding walkthrough.
MIT