mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
Documents the shared/team routstrd deployment (routstrd-remote / routstrd-auth) as a new top-level docs section. Eight pages: overview, Cloudron deploy, Docker deploy, team members, connecting clients, usage and model policy, security model, and troubleshooting. Content is written from the implementation rather than the existing prose in the routstrd-remote repo, which has drifted: - client-id header injection was removed in 0.1.5; Bearer auth headers are deliberately preserved, NIP-98 headers stripped - /clients and /usage are strictly owner-scoped, so admins cannot see a colleague's clients through the API - the model allowlist is disabled by default as of 0.1.26 - the Dockerfile is now the Cloudron image (cloudron/base, /app/data), so the README's vanilla Docker instructions and docker-compose.yml no longer match it Adds an explicit offboarding procedure: deleting an npub does not revoke existing sk- API keys, and the proxy's ownership scoping means their clients must be removed on the node. Wires the section into mkdocs.yml nav and the docs landing page.
2.5 KiB
2.5 KiB
Routstr Core Documentation
Routstr is a decentralized protocol for permissionless AI inference. It enables an open marketplace where anyone can buy and sell compute using Bitcoin eCash (Cashu).
🐣 For Clients (Users & Builders)
If you want to use AI models in your application without accounts or KYC.
- Introduction: How the ecosystem works.
- Payment Flow: Funding sessions, topping up, and refunds.
- Integration Guide: Code examples for Python, JS, and cURL.
🦁 For Providers (Node Operators)
If you want to run a node, resell API access, or monetize hardware.
- Quick Start: Deploy a node in 5 minutes.
- Deployment: Production Docker setup.
- Configuration: Environment variables and settings.
- Dashboard: Managing your node visually.
- Pricing Strategy: Setting margins and fees.
- Discovery: Announcing your node on Nostr.
- Tor Support: Running an anonymous hidden service.
👥 For Teams (Remote Nodes)
If you want one shared Routstr endpoint for a whole team, with per-member identities and per-member usage tracking.
- Overview: What a remote node is, and when to use one.
- Deploy on Cloudron: The packaged, supported deployment.
- Deploy with Docker: Run it on any host behind your own TLS.
- Team Members: Bootstrap the first admin and invite people.
- Connecting Clients: Wire up Claude Code, Pi, OpenCode, and API keys.
- Usage and Model Policy: Per-member spend and model allowlists.
- Security Model: Auth rules and endpoint scoping.
🔌 API Reference
- Overview: Base URL, headers, and standards.
- Endpoints: Full list of REST endpoints.
- Authentication: Handling API keys and tokens.
- Errors: Status codes and debugging.
🛠️ Contributing
- Architecture: System design.
- Setup: Development environment.
- Testing: Running tests.