bindufy(), and watch the Bindu Core sidecar turn it into a real microservice.
You write the driver. The sidecar brings the engine: DID identity, A2A protocol compliance, x402 payment support, scheduling, storage, and an HTTP server.
Time to complete: ~10 minutes
DID Identity
The core generates and manages agent identity for you.
A2A Protocol
Your handler is exposed as a production-ready A2A service.
Payments
x402 support can be added without changing the transport model.
Scheduling + Storage
The sidecar handles task orchestration and persistence.
Prerequisites
Before you start, make sure the local machine can run both halves of the sidecar model. You need a JavaScript runtime for your code and a Python runtime for the core.Node.js
Version 18 or higher
Python
Version 3.12+ with Bindu installed
OpenAI API Key
Get one at platform.openai.com/api-keys
Terminal
Basic command line knowledge
Install Bindu Python Core
The TypeScript SDK needs the Bindu Core installed on the machine. This is the engine half of the sidecar — your SDK will launch it automatically, but it needs to be available first.The SDK launches the Python core automatically as a child process. You never start
the sidecar manually during normal SDK use.
Step 1: Create Your Project
Start with a clean project directory. Nothing special here — just a standard Node.js project.Step 2: Install Dependencies
Now install the packages your agent needs. The Bindu SDK handles the sidecar lifecycle, and you can use any LLM library you like alongside it.@bindu/sdk— Bindu TypeScript SDK (gRPC, registration, sidecar lifecycle)openai— OpenAI Node.js SDKdotenv— Loads environment variables from.envtsx— TypeScript executor (dev dependency)typescript— TypeScript compiler (dev dependency)
Step 3: Create Your Environment File
Your agent needs an API key to talk to OpenAI. Store it in a.env file so it stays out of your code.
Step 4: Create a Skill Definition
Skills tell the A2A protocol what your agent can do. Think of them as the agent’s resume — other agents and clients read this to decide whether to talk to yours.skills/question-answering/skill.yaml:
Step 5: Write Your Agent Code
This is the core of what you are building. Your code defines the driver — the handler function that receives messages and returns responses.bindufy() attaches the engine around it.
Step 6: Run Your Agent
Everything is in place. Start your agent with a single command:Your agent is now running as a full microservice.
Step 7: Verify It Works
Let’s make sure everything is working by sending your first message. Open a new terminal and try these commands.Send a message
messageId, contextId, and taskId are required fields in the A2A Message schema.
You must pass valid UUIDs. Omitting any of them will result in a validation error from
the core.Check the agent card
Every Bindu agent exposes a machine-readable identity card. This is how other agents discover what yours can do.Check health
What Just Happened?
Your agent is running. Let’s slow down and understand whatbindufy() actually did behind the scenes, because quite a lot happened in that one function call.
Core ran full bindufy logic
- Generated deterministic agent ID from
SHA256(author:name) - Created Ed25519 DID keys
- Set up authentication (Hydra OAuth2)
- Created manifest with
GrpcAgentClientas handler - Started HTTP/A2A server on
:3773
Project Structure
Here is what your project looks like now:Troubleshooting
If something did not work, check the common issues below. Most problems come from missing prerequisites or port conflicts."Bindu not found"
"Bindu not found"
"Port 3773 already in use"
"Port 3773 already in use"
"OPENAI_API_KEY not set"
"OPENAI_API_KEY not set"
Agent starts but no response
Agent starts but no response
Common causes:
- Invalid API key
- Model not available on your OpenAI plan
- Rate limiting
- Network connectivity
"Registration failed"
"Registration failed"
Common causes:
- Missing
authorornamein config - Invalid
deployment.urlformat - Port conflicts
Next Steps
You have a working agent. From here, the natural next question is: how do I make it smarter?Agent Implementation
Handler patterns (multi-turn, LangChain, payments), state transitions, configuration, and how the bridge works under the hood
Custom SDKs
Build SDKs for Rust, Go, Swift, or any language with gRPC
API Reference
The complete gRPC contract: services, messages, ports, and env vars
Overview
Revisit the sidecar architecture, tradeoffs, and current limitations