Why build on Bhindi though?
- If you have ever written tools for LLMs, you will feel right in place!
- BCP - Bhindi Context Protocol is just that on steroids!
- You connect with 15+ OAuth apps out of the box.
- So you can focus on your idea and get it out before it becomes dead burried under other 99 dead ideas which you did not ship because some random setup issue took half of your day
Getting Started
Agent Starter Kit
Access our comprehensive TypeScript-based agent starter kit to begin building intelligent agents with the Bhindi.io platform. Repository: github.com/upsurgeio/bhindi-agent-starter This open-source starter kit provides a robust foundation for agent development, featuring:- Public Tool Integration: Pre-configured calculator tools demonstrating basic agent capabilities
- Authenticated Tool Access: GitHub integration examples showcasing secure API interactions
- TypeScript Support: Full type safety and modern development practices
- Bhindi.io Specification: Complete implementation following the official Bhindi.io agent specification
Available OAuth Integrations
Here is a list of Bhindi Agents you can have access of in your agent!- GitHub
- Trello
- Notion
- Linear
- Gmail
- Google Calendar
- Google Docs
- Google Sheets
- GitHub Pages
- Slack
- X/Twitter
- Typeform
- Google Forms
Quick Start
0. Clone the agent starter template
1. Install Dependencies
2. Build the Project
3. Start the Server
4. Test the API
Usage Examples
Calculator Tools (No Authentication)
GitHub Tools (Authentication Required)
Available Tools
Calculator Tools
Tool | Description | Special Features |
---|---|---|
add | Add two numbers | Basic operation |
subtract | Subtract two numbers | confirmationRequired: true |
multiply | Multiply two numbers | Basic operation |
divide | Divide two numbers | Error handling for division by zero |
power | Calculate a^b | Supports negative exponents |
sqrt | Square root | Error handling for negative inputs |
percentage | Calculate percentage | Handles decimal percentages |
factorial | Calculate factorial | confirmationRequired: true |
countCharacter | Count character occurrences in text | String manipulation |
GitHub Tools (Private - Auth Required)
Tool | Description | Authentication |
---|---|---|
listUserRepositories | List user’s repositories | Bearer token required |
Authentication
This agent demonstrates hybrid authentication:- Calculator tools: No authentication required (public)
- GitHub tools: Bearer token authentication required (private)
API Endpoints
GET /tools
- Get list of available tools (public)POST /tools/:toolName
- Execute a specific tool (auth depends on tool type)GET /health
- Health check endpoint (shows tool authentication requirements)GET /docs
- Swagger UI documentation (servespublic/swagger.json
)
Documentation & Examples
- Swagger Documentation - Available at
/docs
endpoint when server is running - Postman Collection - Import
Bhind-Agent-Starter.postman_collection.json
for easy testing
Project Structure
Development
What This Starter Kit Demonstrates
This starter kit teaches you how to build agents with:- Public tools (Calculator - no authentication required)
- Authenticated tools (GitHub - Bearer token required)
- Mixed authentication patterns in a single agent
- Proper parameter validation using JSON Schema
- Advanced features like
confirmationRequired
- Standardized response formats following agent specification
Features
Calculator Tools (No Authentication)
- 8 mathematical operations: Basic arithmetic, power, square root, percentage, factorial
- Parameter validation: Proper error handling for invalid inputs
- Confirmation required: Demonstrates user confirmation for certain operations
GitHub Tools (Authentication Required)
- Repository listing: List user’s GitHub repositories with Bearer token
- Simple REST API: Uses standard fetch calls (no heavy dependencies)
- Authentication demonstration: Shows how to handle Bearer tokens
Development Features
- Full TypeScript support with strict typing
- Comprehensive testing with Jest
- ESLint + Prettier for code quality
- JSON Schema validation for parameters
- Standardized error handling
Next Steps
Once you understand this agent, you can:- Add more calculator functions: Trigonometry, logarithms, etc.
- Add more authenticated tools: Twitter, Slack, database operations
- Implement middleware authentication: Global auth patterns
- Add validation middleware: Request/response validation
- Add rate limiting: Protect expensive operations
- Add database integration: Store calculation history
Agent Specification Compliance
This starter follows the Bhindi.io agent specification:- ✅ Required endpoints:
GET /tools
,POST /tools/:toolName
- ✅ Standardized response formats:
BaseSuccessResponseDto
,BaseErrorResponseDto
- ✅ JSON Schema parameter validation
- ✅ Tool confirmation flow
- ✅ Authentication patterns (Bearer tokens)
- ✅ Proper error handling and status codes
Need Help?
We’re here for you! You can reach out to us at:- Discord: Join our community and get help building your next cool agent!
- X: @bhindiai for the latest updates and new agent releases
- Email: info@bhindi.io