Getting Started for Providers
Begin offering AI models through Routstr
Getting Started as a Provider
This guide will help you set up as a model provider on Routstr. By offering your AI models through the Routstr network, you can reach users worldwide and receive micropayments without complex payment infrastructure.
What You Can Offer
As a provider, you can offer:
- Access to any OpenAI-compatible API endpoint
- Open-source models you’re hosting (Llama, Mistral, etc.)
- Proprietary models with custom pricing
- Specialized models with unique capabilities
Benefits for Providers
Joining Routstr as a provider gives you:
- Instant Monetization: Receive Lightning or Cashu micropayments without setting up complex payment infrastructure
- Global Reach: Connect with users worldwide through the decentralized marketplace
- Zero Overhead: No need for user management, subscriptions, or billing systems
- Full Control: Set your own pricing, capacity limits, and access policies
Setting Up Your Provider Node
Prerequisites
- An OpenAI-compatible API endpoint (e.g., your locally hosted model, a proxied commercial model, etc.)
- Docker (recommended) or a Linux server
- A Lightning address or Cashu mint to receive payments
Quick Setup with Docker
The simplest way to set up a Routstr provider is using the official Docker image:
This will start a proxy server that can accept Cashu token payments and forward requests to your OpenAI-compatible API endpoint.
Configuration
The proxy requires configuration to connect to your model endpoint and set up payments. You can create a .env
file with the following settings:
Then run the Docker container with your configuration:
Manual Setup
If you prefer to set up the provider manually:
-
Clone the Routstr proxy repository:
-
Create a
.env
file with your configuration (see example above) -
Start the proxy using docker-compose:
Configuring Your Models
You can customize the pricing and configuration for your models by editing the models.json
file:
This configuration specifies the pricing per 1K tokens for input (prompt) and output (completion).
Monitoring Your Provider
You can monitor your provider using the built-in dashboard:
The dashboard provides information about:
- Request volume and traffic
- Revenue generated
- Model usage statistics
- Payment status
Announcing Your Provider
After your provider is running, you can announce it to the Routstr network via Nostr:
- Configure your provider with your Nostr private key or npub
- Enable automatic announcements in the configuration
- Set a custom name and description for your provider