Randomride

From Flexasaurusrex/OpenPaw · View interactive version

Randomride is an AI agent skill from the GitHub repository Flexasaurusrex/OpenPaw. One-click random ride booking to interesting nearby places. Intelligently picks destinations (restaurants, bars, parks, museums) and books real Uber/Lyft/Grab rides. Learns preferences over time with controlled randomness. Use when: feeling adventurous, want spontaneous outings, exploring a city. NO

How to use this skill

Skill file

Random Ride 🎲

One-click random ride booking to interesting places. Press a button, go somewhere interesting.

When to Use

When NOT to Use

What It Does

Quick Start

Via Telegram:

/randomride
/randomride $20 5km
/randomride restaurant
/randomride bar 3km

Via CLI:

cd ~/.openpaw/skills/randomride
python3 cli.py ride 20 5 restaurant

Setup (First Run)

The skill auto-detects missing credentials and shows setup instructions:

# Create secure directory
mkdir -p ~/.openpaw/secrets
chmod 700 ~/.openpaw/secrets

# Add your Uber credentials
cat > ~/.openpaw/secrets/.uber_credentials.json << 'EOF'
{
  "client_id": "your_uber_client_id",
  "server_token": "your_uber_server_token"
}
EOF

# Secure the file
chmod 600 ~/.openpaw/secrets/.uber_credentials.json

Get Uber API credentials: https://developer.uber.com

For CloudPaw (Render): Use /opt/render/.openpaw/secrets/.uber_credentials.json

Commands

Telegram

CLI

python3 cli.py ride                    # Use defaults
python3 cli.py ride 20 5 restaurant    # $20, 5km, restaurant
python3 cli.py config price 30
python3 cli.py history

Regional Support

Security

✅ Credentials stored OUTSIDE git repo

✅ Protected by .gitignore

✅ Secure permissions

✅ Mock mode fallback

See SECURITY.md for full details.

How It Works

  1. Gets your current location (manual or automatic)
  2. Fetches nearby points of interest (POIs) within distance limit
  3. Filters by price, type, and avoided locations
  4. Picks one using weighted random selection (higher rated = more likely)
  5. Books real ride with Uber/Lyft/Grab/Ola
  6. Sends you destination name, ETA, and price

Intelligent randomness: Not purely random - weights destinations by rating and learns from your behavior over time.

Bundled Dependencies

This skill includes all dependencies (PyJWT) - no pip install needed!

randomride/
├── vendor/          # Bundled PyJWT library
├── cli.py          # Command-line interface
├── random_ride.py  # Core logic
├── uber_api.py     # Uber API wrapper
└── SKILL.md        # This file

Testing Without Credentials

The skill works in mock mode if credentials aren't configured:

cd ~/.openpaw/skills/randomride
python3 cli.py ride 20 5 restaurant
# Output: âš  Uber API not available (fallback to mock)
#         🚕 Ride booked to Casa Basso. 8 min away. $18.

Status

✅ Production ready

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.