Creating and Selling Premium Prompts¶
Premium prompts let creators monetize their expertise. The content is encrypted using Lit Protocol - buyers purchase a license to decrypt and use it.
Why Premium?¶
Not all prompts should be free:
- Expert knowledge took years to develop
- Specialized prompts serve niche audiences
- Creators deserve compensation for valuable work
- Premium content funds continued development
How It Works¶
Creator → Publish → Encrypt → IPFS
│
▼
Buyer → Purchase → License Receipt (ERC1155)
│
▼
Buyer → Decrypt → Full Prompt Content
- Publish - Creator encrypts and uploads content
- Purchase - Buyer pays SXXX and receives a license NFT
- Access - License holder decrypts content via Lit Protocol
Publishing Premium Content¶
Prepare Your Content¶
Create a high-quality prompt in a local file:
cat > ./trading-strategy.md << 'EOF'
---
title: Advanced Trading Strategy Prompt
description: Professional trading analysis with risk management
---
You are an expert trading analyst. When analyzing a position:
1. Evaluate market structure and trend
2. Identify key support and resistance levels
3. Calculate risk/reward ratios
4. Suggest position sizing based on account risk
5. Define entry, stop loss, and take profit levels
Always emphasize risk management and capital preservation.
EOF
Publish with Price¶
sage personal premium publish trading-strategy \
--file ./trading-strategy.md \
--price 25 \
--name "Advanced Trading Strategy" \
--description "Professional trading analysis with risk management"
This command:
- Encrypts your prompt with a symmetric key
- Uses Lit Protocol to gate the key (only license holders can decrypt)
- Uploads encrypted content to IPFS
- Registers the listing in PersonalMarketplace contract
Publishing Options¶
sage personal premium publish my-prompt \
--file ./prompt.md \
--price 50 \
--name "My Premium Prompt" \
--description "A detailed description" \
--metadata ./metadata.json \
--policy 0 \
--lit-network datil-test
Options:
--price <sxxx>- Price in SXXX tokens (required)--file <path>- Path to your prompt content (required)--name <name>- Display name--description <text>- Description for marketplace--metadata <file>- Additional JSON metadata--policy <n>- Fork policy (0=open, 1=gov_only, 2=disabled)--lit-network <name>- Lit network (datil-testordatil-dev)
Pricing Your Content¶
Prices are set in SXXX tokens:
| Price Range | Typical Use |
|---|---|
| 5-25 SXXX | Simple prompts, templates |
| 25-100 SXXX | Domain expertise, workflows |
| 100-500 SXXX | Premium strategies, systems |
| 500+ SXXX | Enterprise, consulting-grade |
Protocol fee: 10% goes to the protocol treasury.
Buying Premium Content¶
Check Price¶
Output shows:
- Base price
- Protocol fee (10%)
- Total cost
Purchase¶
Options:
--max-price <sxxx>- Maximum you're willing to pay--auto-approve- Automatically approve SXXX allowance--unlimited- When auto-approving, approve unlimited allowance--deadline <seconds>- Transaction deadline (default: 600)
What Happens on Purchase¶
- SXXX transfers from your wallet to creator (minus protocol fee)
- You receive an ERC1155 license receipt token
- The token proves ownership and enables decryption
Accessing Purchased Content¶
Decrypt and View¶
This:
- Checks your license receipt ownership
- Contacts Lit Protocol nodes to verify
- Decrypts the symmetric key
- Fetches and decrypts the content
Save to File¶
Access Options¶
sage personal premium access 0xCreator key \
--holder 0xAltAddress \
--gateway https://ipfs.io \
--session ./lit-session.json \
--lit-network datil-test
Managing Your Listings¶
View Your Listings¶
View Specific Creator¶
Update Price¶
Create a new listing with updated price (original licenses still work):
Remove Listing¶
This sets the price to 0, preventing new purchases. Existing licenses still work.
Viewing Your Licenses¶
See what premium content you've purchased:
Options:
License Receipts (ERC1155)¶
License receipts are semi-fungible tokens with special properties:
- Transferable - Can sell or gift your license
- Provable - On-chain proof of purchase
- Composable - Other contracts can check ownership
- Perpetual - Access doesn't expire
Check ownership:
Encryption Details¶
Sage uses hybrid encryption combining AES-256-GCM and Lit Protocol:
- Encryption - Content encrypted locally with AES-256-GCM symmetric key
- Key gating - Lit Protocol gates the symmetric key with access conditions
- Access condition - Must own the ERC1155 license receipt
- Decryption - Lit nodes verify ownership and release key; content decrypted locally
This means:
- Content is encrypted at rest on IPFS
- No central server holds decryption keys
- Creator doesn't need to be online for buyers to decrypt
- License ownership is on-chain and verifiable
For a complete technical deep-dive including data structures, flows, and implementation details, see the Encryption Architecture Reference.
Free vs Premium Strategy¶
Many creators use a hybrid approach:
| Tier | Content | Price |
|---|---|---|
| Free | Basic prompts, templates | 0 |
| Free | Community contributions | 0 |
| Premium | Expert workflows | 25-100 SXXX |
| Premium | Domain-specific systems | 100-500 SXXX |
Free content builds audience; premium content monetizes expertise.
Quick Reference¶
# Publishing
sage personal premium publish <key> --file <path> --price <amount>
# Buying
sage personal premium price <creator> <key>
sage personal premium buy <creator> <key> --auto-approve
# Accessing
sage personal premium access <creator> <key>
sage personal premium access <creator> <key> --out ./output.md
# Managing
sage personal list --mine
sage personal my-licenses
sage personal premium unlist <key>
Related¶
- Premium Prompts - Conceptual overview
- Publishing and Versioning Prompts - Free publishing
- Creating Your First Prompt Library - Getting started