This repository contains the official documentation for Routstr, a decentralized LLM routing marketplace powered by Nostr and Bitcoin.
Routstr brings the convenience of centralized AI providers to the permissionless, censorship-resistant world of Nostr and Bitcoin. It enables seamless access to AI models through an OpenAI-compatible API while maintaining privacy, reducing costs, and eliminating traditional payment barriers.
- OpenAI-Compatible API: Easy integration with existing tools and libraries that support the OpenAI API format
- Self-Hosted Proxy: Turn any OpenAI-compatible endpoint into a pay-as-you-go business without Stripe or KYC requirements
- Privacy Routing: Built-in SOCKS5 and Tor support for enhanced privacy and censorship resistance
- Decentralized Payments: Cashu ecash tokens and Lightning payments for prepaid, private transactions
Access AI models through Routstr by:
- Minting Cashu tokens using your wallet via Lightning or on-chain Bitcoin, for example through chat.routstr.com or any Cashu wallet
- Using the token in API requests to
https://api.routstr.com/v1/chat/completions
- Making requests with your preferred OpenAI-compatible client library
Set up your own Routstr node to offer AI models:
- Deploy the Routstr proxy in front of your OpenAI-compatible API endpoint
- Configure payments via Cashu or Lightning
- Set custom pricing for different models
- Announce your service to the Routstr network via Nostr
This documentation is built with Mintlify. To preview changes locally:
Install the Mintlify CLI to preview the documentation changes locally:
npm i -g mintlify
Run the following command at the root of the documentation:
mintlify dev
Changes will be deployed to production automatically after pushing to the default branch.
The Routstr project consists of several key repositories:
- protocol: Technical specification and improvement protocol
- frontend: The main public facing website
- proxy: Running in front of any OpenAI-compatible API to handle API key payments
- evals: Quality control for language model endpoints
- docs: This documentation repository
- Website: https://routstr.com
- API Documentation: https://api.routstr.com/docs
- GitHub: https://github.com/routstr
- Contact: team@routstr.com