Use this file to discover all available pages before exploring further.
The agent code is a plain bindufy(config, handler) echo — identical to a local example. The interesting part is the deploy step: bindu deploy agent.py --runtime=boxd packages this directory, ships it to a boxd microVM, installs deps, and serves the agent at its own public URL with persistent disk across suspend/resume.
Create agent.py with the code below, or save it directly from your editor.
"""Bindu echo agent — runs in-process locally, or in a boxd VM via the CLI.The script body is a vanilla bindu agent: ``bindufy(config, handler)`` andnothing else. There is no deploy logic here — that lives in the ``bindudeploy`` CLI, which packages this directory, ships it to a boxd VM, installsbindu + the user's deps, and starts the agent there. The host streams VMlogs and supervises until Ctrl-C; A2A clients talk directly to the publicURL printed at startup.Local dev:: python agent.py # serves on http://localhost:3773Deploy to a boxd VM:: pip install 'bindu[runtime-boxd]' export BOXD_TOKEN=$(boxd login --json | jq -r .token) bindu deploy agent.py --runtime=boxd --on-exit=suspendAfter ``✓ runtime-boxd-example serving at https://...``, hit it:: curl https://runtime-boxd-example.boxd.sh/health curl https://runtime-boxd-example.boxd.sh/.well-known/agent.jsonCtrl-C explicitly suspends the VM (preserves memory + disk state); re-running``bindu deploy`` resumes in ~1s with DID keys, vector store, conversationhistory all intact.See ``docs/runtime/`` for the full runtime-provider documentation."""from bindu.penguin.bindufy import bindufydef handler(messages: list[dict[str, str]]): """Echo the latest user message back.""" if not messages: return "send a message" return [ { "role": "assistant", "content": messages[-1].get("content", ""), } ]config = { "author": "you@example.com", "name": "runtime-boxd-example", "description": "Echo agent running inside a boxd microVM.", "deployment": { # The agent inside the VM binds 0.0.0.0:3773 so the boxd proxy can # reach it. The host injects BINDU_PUBLIC_URL automatically when # deployed via ``bindu deploy``. "url": "http://0.0.0.0:3773", "expose": True, },}if __name__ == "__main__": bindufy(config, handler)
# Clone the Bindu repositorygit clone https://github.com/GetBindu/Bindu# Navigate to frontend directorycd frontend# Install dependenciesnpm install# Start frontend development servernpm run dev