A Decentralised LLM Routing Marketplace
Permissionless, censorship‑resistant AI routing powered by Nostr and Cashu
docker run -p 8080:8080 ghcr.io/routstr/proxy
Open Source • GNU General Public License v3.0 • Permissionless
How It Works
Use Cashu tokens
Bring your own Cashu token or purchase via Lightning. No account or sign-up required.
Receive token instantly
If you paid via Lightning, you'll receive a token instantly. If you already have one, use it 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-5",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
]
}'
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
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