This skill uploads files or sites to Arweave and manages ArNS records, enabling permanent publication of content.
npx playbooks add skill permaweb/skills --skill arweave
Upload files and websites to permanent storage on Arweave, and manage ArNS (Arweave Name System) domain records.
| User Request | Command |
|--------------|---------|
| "use arweave to upload <file>" | upload |
| "use arweave to upload <dir>" | upload-site |
| "use arweave to attach <txId> to <name>" | attach |
| "use arweave to query transactions" | query |
Important: This skill requires an Arweave wallet file (JWK format).
The skill automatically detects wallets in this order:
--wallet flag - Explicit wallet path provided via command lineARWEAVE_WALLET environment variable - Wallet path set in shell config~/.arweave/wallet.json - Default wallet locationIf no wallet is configured, the skill will guide you through creating one:
🔐 No Arweave wallet found.
An Arweave wallet is required to sign transactions on the permaweb.
Options:
1. Create a new wallet (recommended for new users)
2. Specify an existing wallet path
3. Set ARWEAVE_WALLET environment variable and retry
Choose [1-3]:
Option 1 - Create New Wallet:
~/.arweave/wallet.json (default) or custom pathARWEAVE_WALLET to your shell config (.bashrc or .zshrc).gitignore for safetySecurity Warnings Shown:
If you prefer to configure manually:
# Set environment variable (add to ~/.bashrc or ~/.zshrc)
export ARWEAVE_WALLET="/path/to/wallet.json"
# Or use default location
mkdir -p ~/.arweave
cp /path/to/wallet.json ~/.arweave/wallet.json
chmod 600 ~/.arweave/wallet.json
Your wallet stays local. This skill:
Additional Security:
# Restrict wallet file permissions
chmod 600 ~/.arweave/wallet.json
# Add wallet to .gitignore
echo "wallet.json" >> .gitignore
echo ".arweave/" >> .gitignore
NEVER:
Wallet File Security Audit Note:
If you're reviewing this skill for security:
By default, this skill may contact:
https://arweave.net/graphql - Official Arweave gatewayhttps://arweave-search.goldsky.com/graphql - Arweave Search indexerYou can override with --graphql-endpoint to use your own node.
The query command fetches data from the public Arweave blockchain. This data is
user-generated and untrusted. Be cautious:
may contain malicious content
When using attach:
This skill can spend AR tokens. To protect against accidental loss:
--dry-run to estimate cost without executingUse --dry-run to preview costs:
# Estimate upload cost without executing
node skills/arweave/index.mjs upload "file.json" --wallet "wallet.json" --dry-run
# Estimate site upload cost
node skills/arweave/index.mjs upload-site "./my-site" --wallet "wallet.json" --dry-run
node skills/arweave/index.mjs upload "<file>" --wallet "<path/to/wallet.json>"
This skill supports Turbo bundling for faster, cheaper uploads. Turbo is used by default for uploads.
Benefits of Turbo:
Options:
--turbo - Use Turbo for upload (default: enabled)--no-turbo - Use direct Arweave transactions instead of Turbo--turbo-node <url> - Use a custom Turbo node URL (optional)# Upload with Turbo (default - faster and cheaper)
node skills/arweave/index.mjs upload "file.json" --wallet "wallet.json"
# Explicitly use Turbo
node skills/arweave/index.mjs upload "file.json" --turbo --wallet "wallet.json"
# Use direct Arweave instead of Turbo
node skills/arweave/index.mjs upload "file.json" --no-turbo --wallet "wallet.json"
# Use custom Turbo node
node skills/arweave/index.mjs upload "file.json" --turbo-node "https://custom.turbo.node.io" --wallet "wallet.json"
Note: Turbo uses AR.IO's bundling service by default. If Turbo fails, the upload will automatically fall back to direct Arweave.
node skills/arweave/index.mjs upload-site "<directory>" --index "index.html" --wallet "<path/to/wallet.json>"
--index specifies the default file served at the root (defaults to index.html)txId is the manifest transaction that serves the entire siteAdd --progress flag to upload commands to show upload progress.
# Show progress bar during upload
node skills/arweave/index.mjs upload-site "./myapp" --progress --wallet "wallet.json"
node skills/arweave/index.mjs attach "<txId>" "<name>" --wallet "<path/to/wallet.json>" --yes
Options:
--ttl <seconds> - Time-to-live in seconds (default: 3600)--network <mainnet|testnet> - Network to use (default: mainnet)--ario-process <id> - Override network with specific ARIO process ID--yes - Skip confirmation promptsPropagation: Updates usually appear within a few minutes, but can take up to ~30 minutes to reflect everywhere (gateway/operator caches and client TTLs).
hello_rakis mean undername hello on base name rakis.ar.io suffix if present (e.g., rakis.ar.io becomes rakis)Examples:
rakis - base name (updates @ record)hello_rakis - undername hello under base rakisdocs_myproject - undername docs under base myprojectBy default, the skill uses mainnet. You can specify a different network:
# Use mainnet (default)
node skills/arweave/index.mjs attach "<txId>" "<name>" --network mainnet --wallet "..." --yes
# Use testnet
node skills/arweave/index.mjs attach "<txId>" "<name>" --network testnet --wallet "..." --yes
# Use specific ARIO process ID (overrides --network)
node skills/arweave/index.mjs attach "<txId>" "<name>" --ario-process "<processId>" --wallet "..." --yes
After successful upload, report back:
txId)https://arweave.net/<txId>Example response to user:
Uploaded successfully!
- Transaction ID: abc123xyz...
- View at: https://arweave.net/abc123xyz...
For site uploads, clarify that the txId represents the manifest transaction serving the entire site.
node skills/arweave/index.mjs query [options]
Search and filter Arweave transactions using the GraphQL endpoint.
Options:
--tag <name:value> - Filter by tag (can specify multiple, uses AND logic)--owner <address> - Filter by owner wallet address--recipient <address> - Filter by recipient wallet address--ids <comma-separated> - Query specific transaction IDs--block-min <height> - Minimum block height--block-max <height> - Maximum block height--limit <number> - Max results to return (default: 10, set to 0 for all)--sort <HEIGHT_DESC|HEIGHT_ASC> - Sort order (default: HEIGHT_DESC)Tag Syntax:
Tags use the format name:value. Multiple --tag flags apply AND logic (all conditions must match).
# Single tag
--tag "Content-Type:text/html"
# Multiple tags (both must match)
--tag "Content-Type:text/html" --tag "User-Agent:ArweaveAutoDPL/0.1"
Pagination:
--limit 0 to fetch all matching resultsExamples:
# Query last 10 recent transactions
node skills/arweave/index.mjs query --sort HEIGHT_DESC
# Find all HTML content (fetch all results)
node skills/arweave/index.mjs query --tag "Content-Type:text/html" --limit 0
# Query by owner with custom limit
node skills/arweave/index.mjs query --owner "M6w588ZkR8SVFdPkNXdBy4sqbMN0Y3F8ZJUWm2WCm8M" --limit 50
# Multiple tags (AND logic: both conditions must match)
node skills/arweave/index.mjs query \
--tag "Content-Type:text/html" \
--tag "User-Agent:ArweaveAutoDPL/0.1" \
--limit 20
# Query block height range
node skills/arweave/index.mjs query --block-min 587540 --block-max 587550 --limit 100
# Combine filters: HTML in specific block range, oldest first
node skills/arweave/index.mjs query \
--tag "Content-Type:text/html" \
--block-min 587540 \
--block-max 587550 \
--sort HEIGHT_ASC
# Query specific transaction IDs
node skills/arweave/index.mjs query --ids "abc123,def456,ghi789"
# Find transactions from specific recipient
node skills/arweave/index.mjs query --recipient "M6w588ZkR8SVFdPkNXdBy4sqbMN0Y3F8ZJUWm2WCm8M" --limit 25
The query command automatically tries multiple GraphQL endpoints for reliability:
https://arweave.net/graphql (primary - official gateway)https://arweave-search.goldsky.com/graphql (fallback - Goldsky indexer)https://arweave.net/graphql (fallback - alternative gateway)This happens transparently - the command uses whichever endpoint responds first. You don't need to do anything; it just works.
To use a specific GraphQL endpoint (useful for testing or private gateways):
# Use a custom endpoint
node skills/arweave/index.mjs query --tag "Content-Type:text/html" --limit 5 \
--graphql-endpoint "https://custom-gateway.com/graphql"
# Force use of a specific public endpoint
node skills/arweave/index.mjs query --owner <address> --limit 10 \
--graphql-endpoint "https://arweave.net/graphql"
Note: When --graphql-endpoint is provided, the automatic fallback is disabled. Only the specified endpoint will be tried.
# Upload a single markdown file
node skills/arweave/index.mjs upload "foo.md" --wallet "/path/to/wallet.json"
# Upload a website directory
node skills/arweave/index.mjs upload-site "./mywebsite" --index "index.html" --wallet "/path/to/wallet.json"
# Attach a transaction to an ArNS undername (mainnet)
node skills/arweave/index.mjs attach "<txId>" "hello_rakis" --ttl 3600 --network mainnet --wallet "/path/to/wallet.json" --yes
# Attach to testnet
node skills/arweave/index.mjs attach "<txId>" "hello_rakis" --network testnet --wallet "/path/to/wallet.json" --yes
# Attach using specific ARIO process
node skills/arweave/index.mjs attach "<txId>" "hello_rakis" --ario-process testnet --wallet "/path/to/wallet.json" --yes
Add --estimate or --dry-run flag to show upload cost without posting.
# Estimate cost before uploading
node skills/arweave/index.mjs upload-site "./myapp" --estimate --wallet "wallet.json"
This section documents common errors you may encounter when using Arweave commands and how to resolve them.
What the error looks like:
Error: Invalid JWK wallet file
or
Error: Wallet file not found
or parsing errors related to missing n, e, or other RSA key components.
How to fix it:
n, e, d, p, q, dp, dq, qiRecovery steps:
cat wallet.json | jq .What the error looks like:
Error: Insufficient AR balance for transaction
or
Error: Not enough AR to cover winston cost
How to fix it:
Recovery steps:
What the error looks like:
Error: Request timed out
or
Error: connect ETIMEDOUT
or gateway 504/503 errors.
How to fix it:
Recovery steps:
What the error looks like:
Error: Transaction failed
or
Error: TX_FAILED
How to fix it:
Recovery steps:
What the error looks like:
Error: Invalid ArNS name format
or
Error: Name must be lowercase alphanumeric
How to fix it:
Recovery steps:
name or undername_basename.ar.io suffix (use just name, not name.ar.io)rakis, hello_rakis, docs_myprojectFollow these security best practices when working with Arweave wallets and transactions.
Best practice: Restrict file permissions to owner-only access.
# Set permissions to read/write for owner only
chmod 600 /path/to/wallet.json
This prevents other users on the system from reading your wallet file.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.