Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sst/opencode
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: futurepaul/opencode
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 3, 2025

  1. Add comprehensive Routstr integration plan for Bitcoin Lightning paym…

    …ents
    
    This plan outlines a 3-stage approach to integrate Routstr (Bitcoin eCash payment proxy) into OpenCode:
    
    Stage 1: Basic Integration
    - Add Routstr as auth provider option
    - Support Cashu token authentication
    - Enable API requests with Bitcoin payments
    
    Stage 2: Internal Cashu Wallet
    - Integrate gonuts library for wallet management
    - Automatic token provisioning
    - CLI wallet commands (balance, topup, withdraw)
    
    Stage 3: Full UX Integration
    - Wallet balance in status bar
    - Lightning invoice QR codes
    - Low balance detection and top-up prompts
    - Complete refund handling
    
    Key features:
    - Anonymous micropayments via Lightning Network
    - Pay-per-request billing without credit cards
    - Self-sovereign payment flows
    - Privacy-focused Bitcoin integration
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    futurepaul and claude committed Sep 3, 2025
    Configuration menu
    Copy the full SHA
    0610292 View commit details
    Browse the repository at this point in the history
  2. Add simplified TypeScript-first Routstr integration plan

    This alternate plan simplifies the original approach by:
    
    • Using cashu-ts instead of gonuts (eliminates Go dependency)
    • All wallet operations in TypeScript CLI layer
    • No localhost:8000 IPC - uses auth.json for state sharing
    • Go TUI reads cached balance + shells to CLI for fresh data
    
    Key benefits:
    - Single language wallet management (TypeScript)
    - Leverages existing OpenCode auth.json patterns
    - Eliminates complex inter-process communication
    - Same user experience with reduced complexity
    
    Architecture: TypeScript CLI (cashu-ts) ↔ auth.json ↔ Go TUI
    
    Features preserved:
    - Lightning invoices with QR codes
    - Status bar balance display (⚡1,234 sats)
    - Automatic balance management
    - Anonymous Bitcoin micropayments
    
    Simpler implementation while maintaining full Bitcoin Lightning payment capabilities.
    
    🤖 Generated with [Claude Code](https://claude.ai/code)
    
    Co-Authored-By: Claude <[email protected]>
    futurepaul and claude committed Sep 3, 2025
    Configuration menu
    Copy the full SHA
    0fb97c2 View commit details
    Browse the repository at this point in the history
Loading