https://github.com/masaishi/raycast-llm-scripts-template
This repository provides a template for creating Raycast scripts that integrate with popular LLMs (ChatGPT, Claude, and Perplexity) without requiring API keys. Simply write Python scripts with prompt templates, and launch your favorite LLM in the browser with pre-filled prompts.
https://github.com/masaishi/raycast-llm-scripts-template
Last synced: 3 months ago
JSON representation
This repository provides a template for creating Raycast scripts that integrate with popular LLMs (ChatGPT, Claude, and Perplexity) without requiring API keys. Simply write Python scripts with prompt templates, and launch your favorite LLM in the browser with pre-filled prompts.
- Host: GitHub
- URL: https://github.com/masaishi/raycast-llm-scripts-template
- Owner: masaishi
- License: mit
- Created: 2025-03-05T10:57:46.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-05T11:08:13.000Z (3 months ago)
- Last Synced: 2025-03-05T11:36:29.609Z (3 months ago)
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🤖 Raycast LLM Scripts Template
Basic usage
Create New Script
## 🌟 Overview
This repository provides a template for creating Raycast scripts that integrate with popular LLMs (ChatGPT, Claude, and Perplexity) **without requiring API keys**. Simply write Python scripts with prompt templates, and launch your favorite LLM in the browser with pre-filled prompts.
### ✨ Key Benefits
- **No API Keys Required**: Just opens the browser with your prompt as the query - no API credentials needed
- **Browser-Based**: Works with web interfaces you're already familiar with
- **Quick Access**: Launch saved prompts directly from Raycast
- **Fully Customizable**: Create and modify scripts to suit your specific needs## 📋 Features
- **📚 Example Scripts**: Collection of practical scripts for common tasks
- **🎯 Script Generator**: Create new LLM scripts with a simple command
- **🔄 Multi-Service Support**: Seamlessly switch between ChatGPT, Claude, and Perplexity## 🚀 Getting Started
### Use This Template
1. Click the "Use this template" button above
2. Name your repository
3. Clone your new repository:
```bash
git clone https://github.com/yourusername/raycast-llm-scripts.git
```### Setup

1. Install [Raycast](https://raycast.com/) if you haven't already
2. Import the scripts in Raycast:
- Open Raycast
- Go to Extensions
- Click the "+" button
- Choose "Import Script Command"
- Select scripts from your repository## 📚 Usage Examples
```
> Summarize Text [Your long text here]
```
```
> Perplexity [Query]
```
```
> Improve Prompt [Prompt]
```## 🛠️ Creating Your Scripts
### Using the Script Generator
The fastest way to create new scripts:
1. Run the Create LLM Script command
```
> Create LLM Script
Script purpose: Create a script that translates text between languages
```
2. Describe what you want the script to do
3. Get a complete script with:
- Raycast parameters
- Prompt template
- Proper formatting### Manual Creation
Create scripts manually using this template:
```python
#!/usr/bin/env python3# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Your Script Title
# @raycast.argument1 { "type": "text", "placeholder": "your placeholder" }# Optional parameters:
# @raycast.icon 🔍
# @raycast.packageName Category Namefrom utils import open_chat # Clean import from utils package
prompt = """Your prompt template here:
{1}"""
open_chat(prompt) # Uses default_service_name from configs.py
# or specify service: open_chat(prompt, "claude")
# or specify both: open_chat(prompt, "perplexity", "Google Chrome")
```## 📚 Developer Documentation
For detailed information about utilities and script writing guidelines, check out our [Developer Guide](docs/developer-guide.md).
## 🤝 Contributing
If you create useful scripts with this template, please consider contributing them back to the community!
**Send your pull requests to: https://github.com/masaishi/raycast-llm-scripts**
Most contributions will be merged as long as they don't present ethical or security concerns. Your scripts can help others enhance their productivity with LLMs!
## 📄 License
This template is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## 🙏 Acknowledgments
- [Raycast](https://raycast.com/) for the amazing launcher
- OpenAI, Anthropic, and Perplexity for their LLM services