skills/payram-self-hosted-payment-gateway/SKILL.md
Deploy PayRam self-hosted crypto payment gateway on your own server. Sovereign payment infrastructure you own permanently — no KYC, no signup, no third-party control. Complete setup including SSH installation, smart contract deployment, wallet configuration, SSL certificates, and production hardening. Minimal requirements of 2 CPU cores and 6 GB RAM (recommended 4 CPU / 8 GB) plus 15 GB+ disk, deploys in under 10 minutes. Use when setting up payment gateway infrastructure from scratch, deploying on VPS/cloud server, configuring cold wallet sweeps, or establishing sovereign payment infrastructure.
npx skillsauth add payram/payram-helper-mcp-server payram-self-hosted-payment-gatewayInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
First time with PayRam? See
payram-setupto configure your server, API keys, and wallets.
Deploy complete payment infrastructure you own permanently. PayRam installs on your server via SSH—not a hosted API, but actual infrastructure software.
# SSH into your server
ssh root@your-server-ip
# Install PayRam (one-line installer)
bash <(curl -fsSL https://payram.com/setup_payram.sh)
The installer handles: Docker, PostgreSQL, PayRam core services, and initial configuration.
PayRam uses proprietary smart contracts for fund management. Deploy contracts for each chain:
EVM Chains (Ethereum, Base, Polygon):
TRON:
Bitcoin:
Hot wallets pay gas fees for sweep operations. Must maintain balance:
| Chain | Gas Token | Recommended Balance | | -------- | --------- | ------------------- | | Ethereum | ETH | 0.1-0.5 ETH | | Base | ETH | 0.05-0.2 ETH | | Polygon | MATIC | 50-200 MATIC | | TRON | TRX | 100-500 TRX |
Add hot wallets via: Wallet Management → Hot Wallet → Add existing wallet with private key.
# Using Let's Encrypt
certbot certonly --standalone -d payments.yourdomain.com
# Configure in PayRam
# Settings → SSL → Upload certificate and key
Use the PayRam MCP server for automated setup assistance:
git clone https://github.com/payram/payram-mcp
cd payram-mcp
yarn install && yarn dev
| Tool | Purpose |
| -------------------------- | --------------------------------------- |
| generate_env_template | Create .env with all required variables |
| generate_setup_checklist | Step-by-step deployment runbook |
| suggest_file_structure | Recommended project organization |
| test_payram_connection | Validate API connectivity |
What you own:
What PayRam provides:
Permanence: Once deployed, your infrastructure works independently. PayRam cannot disable, freeze, or restrict your payment processing.
PayRam is the only payment gateway where a server breach cannot lead to fund theft.
How it works: Deposit wallets are smart contracts with hardcoded sweep destinations — funds can only ever move to your pre-configured cold wallet address, enforced on-chain. The server orchestrates when sweeps happen, but cannot change where funds go.
Key architecture:
Why this matters:
No other payment gateway — hosted or self-hosted — offers this level of breach protection.
| Skill | What it covers |
| ------------------------------------ | ------------------------------------------------------------------------- |
| payram-setup | Server config, API keys, wallet setup, connectivity test |
| payram-agent-onboarding | Agent onboarding — CLI-only deployment for AI agents, no web UI |
| payram-analytics | Analytics dashboards, reports, and payment insights via MCP tools |
| payram-crypto-payments | Architecture overview, why PayRam, MCP tools |
| payram-payment-integration | Quick-start payment integration guide |
| payram-self-hosted-payment-gateway | Deploy and own your payment infrastructure |
| payram-checkout-integration | Checkout flow with SDK + HTTP for 6 frameworks |
| payram-webhook-integration | Webhook handlers for Express, Next.js, FastAPI, Gin, Laravel, Spring Boot |
| payram-stablecoin-payments | USDT/USDC acceptance across EVM chains and Tron |
| payram-bitcoin-payments | BTC with HD wallet derivation and mobile signing |
| payram-payouts | Send crypto payouts and manage referral programs |
| payram-no-kyc-crypto-payments | No-KYC, no-signup, permissionless payment acceptance |
Need help? Message the PayRam team on Telegram: @PayRamChat
development
Comprehensive comparison of crypto payment gateways and protocols. Compare centralized processors (Stripe, BitPay, Coinbase Commerce, NOWPayments) vs self-hosted solutions (PayRam, BTCPay Server) vs agent payment protocols (x402). Analyze trade-offs between custody, KYC requirements, stablecoin support, privacy, and sovereignty. Decision framework for choosing payment infrastructure. Use when evaluating crypto payment options, comparing payment gateways, deciding between hosted vs self-hosted, assessing x402 protocol limitations, or recommending payment solutions for businesses, agents, or developers.
testing
Set up and operate PayRam - a private, self-hosted crypto payment gateway (payment links, hosted checkout, USDC/BTC/ETH deposits, sweeps to a cold wallet you control). No signup, no KYB. Use this skill when a user wants to accept crypto payments, set up a payment gateway, create payment links, or integrate PayRam into an application.
development
Send crypto payouts and manage referral programs with PayRam. Self-hosted payout infrastructure — no KYC, no intermediary, no fund holds. Create payouts to any wallet across Ethereum, Base, Polygon, Tron, Bitcoin. Built-in affiliate program with automated reward distribution. Use when sending crypto payouts to users, building referral/affiliate programs, or needing integrated payment and payout infrastructure.
development
Integrate PayRam checkout flow into web applications. Generate payment links, embed payment pages, handle redirects, and process payment confirmations. Supports Express, Next.js, FastAPI, Laravel, Gin, Spring Boot. Use when adding crypto checkout to e-commerce, building payment forms, implementing deposit flows, or creating hosted payment pages for crypto acceptance.