Built for the
Agentic Era
Supported Agents
Any terminal-native agent
Terminal-native payments
Create orders, fetch payments, issue refunds, and manage resources with clean, composable commands. No browser ever required.
Agentic by design
Claude Code, Cursor, and Codex can now interact with Razorpay natively mid-session. Your agent treats it like git or npm. It just works.
Debug without leaving your editor
Inspect full API responses directly in the terminal. Stay in flow when something breaks in production, no login, no navigation.
CI/CD ready
Drop Razorpay operations into shell scripts, Makefiles, and CI pipelines. The CLI fits naturally into any automation workflow without additional SDKs.
Structured output
Every response comes back as JSON, YAML, or TOML. Compose naturally with jq, grep, or any shell toolchain you already use.
Test and Live mode
Switch between Test and Live credentials seamlessly. Build with confidence before going to production, no separate environment setup.

Install CLI in just 2 steps
Install the binary, add your API credentials, and you have the full Razorpay API from your terminal.
Install The Binary
Quick install

macOS / Linux
curl -fsSL https://razorpay.com/cli/latest/install.sh | bash
Configure Credentials
Run the command

razorpay configure --key-id rzp_test_xxxxxxxxxxxx --key-secret xxxxxxxxxxxxxxxxxxxx
Supported APIs

Orders

Payments

Refunds

Payment Links

Settlements

Instant Settlements

Subscriptions

Customers

Invoices

Disputes

QR Code

Route

Smart Collect

Documents





