
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@cashfreepayments/agent-toolkit
Advanced tools
The Cashfree Payments Agent Toolkit enables popular agent frameworks including LangChain, Vercel's AI SDK, and OpenAI's Agents SDK to integrate with Cashfree APIs through function calling.
npm install @cashfreepayments/agent-toolkit
The toolkit supports multiple frameworks, exposed through sub-paths:
@cashfreepayments/agent-toolkit/ai-sdk - Documentation@cashfreepayments/agent-toolkit/langchain - Documentation@cashfreepayments/agent-toolkit/openai - DocumentationEach toolkit is initialized with your Cashfree credentials and environment configuration.
import {
CashfreeAgentToolkit,
CFEnvironment,
} from '@cashfreepayments/agent-toolkit/openai'; // or langchain, ai-sdk
// Configuration
const environment = CFEnvironment.SANDBOX; // or PRODUCTION
const clientId = process.env.CASHFREE_CLIENT_ID;
const clientSecret = process.env.CASHFREE_CLIENT_SECRET;
// Initialize the toolkit
const cashfree = new CashfreeAgentToolkit(environment, clientId, clientSecret);
The toolkit works with OpenAI Agents SDK, LangChain and Vercel's AI SDK and can be passed as a list of tools. For example:
import {Agent, run} from '@openai/agents';
const allTools = cashfree.getAgentTools(); // Get all tools
const agent = new Agent({
name: 'Payment Agent',
instructions: 'You are a helpful payment assistant.',
model: 'gpt-4o',
tools: allTools,
});
const result = await run(
agent,
'Look up customer cust_123 and create an order for Rs. 500'
);
import {Agent, run} from '@openai/agents';
const getOrderTool = cashfree.tools.getOrder;
const agent = new Agent({
name: 'Order Details Fetching Agent',
instructions:
'You are a helpful assistant that getches and returns order details',
model: 'gpt-4o',
tools: getOrderTool,
});
const result = await run(agent, 'Get details of order: order_12345678');
See specific framework documentation for detailed examples.
FAQs
Cashfree payments tools for AI agent frameworks
We found that @cashfreepayments/agent-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.