import osfrom dotenv import load_dotenvfrom bindu.penguin.bindufy import bindufyfrom agno.agent import Agentfrom agno.models.openrouter import OpenRouterfrom agno.tools.duckduckgo import DuckDuckGoToolsload_dotenv()agent = Agent( name="Bindu Docs Agent", instructions=""" You are an expert assistant for Bindu (GetBindu). TASK: 1. Search the Bindu documentation (docs.getbindu.com) for the user's query. 2. Answer the question clearly. FORMATTING RULES: - Return your answer in CLEAN Markdown. - Use '##' for main headers. - Use bullet points for lists. - Do NOT wrap the entire response in JSON code blocks. Just return the text. - At the end, include a '### Sources' section with links found. """, model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY"), ), tools=[DuckDuckGoTools()], markdown=True,)config = { "author": "your.email@example.com", "name": "bindu_docs_agent", "description": "Answers questions about Bindu documentation", "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