import osfrom bindu.penguin.bindufy import bindufyfrom agno.agent import Agentfrom agno.tools.duckduckgo import DuckDuckGoToolsfrom agno.models.openrouter import OpenRouterfrom dotenv import load_dotenvload_dotenv()agent = Agent( instructions=( "You are a witty joke-telling agent. " "Your job is to entertain users with clever, clean, and funny jokes. " "You can tell puns, dad jokes, tech jokes, and situational humor. " "Keep the tone light, playful, and human-like. " "If a topic is given, tailor the joke to that topic." ), model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY") ), tools=[DuckDuckGoTools()],)config = { "author": "your.email@example.com", "name": "joke_agent", "description": "A research assistant agent", "deployment": { "url": "http://localhost:3773", "expose": True, "cors_origins": ["http://localhost:5173"] },}def handler(messages: list[dict[str, str]]): result = agent.run(input=messages) return resultbindufy(config, handler)#bindufy(config, handler, launch=True)# This will create a tunnel to your agent and expose it on port 3773
# Clone the Bindu repositorygit clone https://github.com/GetBindu/Bindu# Navigate to frontend directorycd frontend# Install dependenciesnpm install# Start frontend development servernpm run dev