A Decentralised LLM Routing Marketplace
Routstr brings the convenience of the OpenRouter experience to the permissionless, censorship‑resistant world of Nostr and Bitcoin
docker run -p 8080:8080 ghcr.io/routstr/proxy
Open Source • GNU General Public License v3.0 • Permissionless
How It Works
Buy Cashu tokens
Purchase AI credits directly with Lightning or on-chain Bitcoin. No account or sign-up required.
Receive token instantly
Get your Cashu token immediately after payment. Use this as your API authorization key.
Make API calls directly
Use the token in your API calls with our OpenAI-compatible endpoints. No account needed.
curl -X POST https://api.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cashuA1DkpMbgQ9VkL6U..." \
-d '{
"model": "gpt-4",
"messages": [
{
"role": "user",
"content": "Hello"
}
]
}'
Key Features
A complete platform for permissionless, privacy-first AI access
Smart Client SDK
One smart client that automatically finds the cheapest, fastest model for every prompt
Self-Hosted Proxy
Turn any OpenAI-compatible endpoint into a pay-as-you-go business—no Stripe, no KYC
Privacy Routing
SOCKS5 / Tor support baked in for enhanced privacy and censorship resistance
Decentralized Payments
Cashu ecash tokens and BOLT12 Lightning invoices for prepaid, private transactions
Simple Integration
Integrate with Routstr using our OpenAI-compatible API endpoints with just a few lines of code
Direct API Access
Access any of 50+ models with a simple API call using your Cashu token for authentication.
curl -X POST https://api.routstr.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cashuBpGFteCJodHRwczovL21p..." \
-d '{
"model": "qwen/qwen3-14b",
"messages": [
{
"role": "user",
"content": "Hello Nostr"
}
]
}'
Browse Available Models
Access a wide range of AI models through independent providers with transparent pricing and performance metrics
Simple Architecture, Powerful Results
One smart client SDK that automatically routes to the best providers
┌──────────────┐ Cashu/BOLT12 ┌───────────────┐ │ Your App │ ───────────────────────▶ │ Routstr Proxy │ └──────────────┘ └───────────────┘ ▲ │ OpenAI‑style HTTP │ Smart Client SDK ▼ ┌──────────────────┐ ┌────────────────────┐ │ Tor / HTTPS │ ───────────────▶ │ Upstream Providers │ └──────────────────┘ └────────────────────┘
Smart Client SDK
- Automatic provider selection
- Privacy routing via Tor
- Cashu token cycling
- Drop-in OpenAI compatibility
Self-Hosted Proxy
- Works with any OpenAI-compatible server
- Accepts Cashu and BOLT12 payments
- Secure rate limiting
- Optional Tor Hidden Service mode
Roadmap
Our progressive journey to building a decentralized AI ecosystem