Use this file to discover all available pages before exploring further.
The simplest possible x402-paywalled agent. Same echo handler as the basic echo agent, but the message/send method is gated: the server returns HTTP 402 with payment requirements until the caller pays the configured amount ($0.0001 USDC in the example below) on Base Sepolia.
Create echo_agent_behind_paywall.py with the code below, or save it directly from your editor.
"""Echo Testing AgentA minimal Bindu agent for testing connectivity.Echoes back user input to verify the system is working.Features:- Simple echo functionality- No external dependencies- Perfect for testing Bindu installation- Lightweight and fastUsage: python echo_simple_agent.pyEnvironment: No environment variables required"""from bindu.penguin.bindufy import bindufydef handler(messages): """Handle incoming messages by echoing back the user's latest input. Args: messages: List of message dictionaries containing conversation history. Returns: List containing a single assistant message with the user's content. """ # Reply with the user's latest input return [{"role": "assistant", "content": messages[-1]["content"]}]config = { "author": "gaurikasethi88@gmail.com", "name": "echo_agent", "description": "A basic echo agent for quick testing.", "deployment": { "url": "http://localhost:3773", "expose": True, "cors_origins": ["http://localhost:5173"] }, "skills": ["skills/question-answering", "skills/pdf-processing"], "execution_cost": { "amount": "$0.0001", "token": "USDC", "network": "base-sepolia", "pay_to_address": "0x2654bb8B272f117c514aAc3d4032B1795366BA5d", "protected_methods": [ "message/send" ] },}bindufy(config, handler)# if you want to use tunnel to expose your agent to the internet, use the following command#bindufy(config, handler, launch=True)
# Clone the Bindu repositorygit clone https://github.com/GetBindu/Bindu# Navigate to frontend directorycd frontend# Install dependenciesnpm install# Start frontend development servernpm run dev