Powered by Nostr + Bitcoin

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

1

Buy Cashu tokens

Purchase AI credits directly with Lightning or on-chain Bitcoin. No account or sign-up required.

Lightning Payment
10,000 sats
2

Receive token instantly

Get your Cashu token immediately after payment. Use this as your API authorization key.

ROUTSTR_TOKEN
cashuA1DkpMbgQ9VkL6U...
Use this token in the Authorization header
3

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"
      }
    ]
  }'
OpenAI CompatibleDrop-in replacement for OpenAI clients
Popular ModelsDeepSeek, Llama, Mistral, Claude and more
Privacy FirstNo accounts, no tracking, just API tokens

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

RIP-01: API Proxy & Payments

OpenAI-API Proxy with Cashu micropayments for LLM inference

RIP-02: Node Listing

Nostr event announcements for inference nodes and capabilities

RIP-03: Frontend Discovery

Web interface for browsing and filtering available nodes

RIP-04 & RIP-05: Quality & Privacy

Anonymous evaluations and smart clients with Tor/proxy routing

Get started with Routstr

Open source, permissionless access to AI is available now

Explore models