# Send R4 to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "r4",
    "name": "R4",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/lukezirngibl/r4",
    "canonicalUrl": "https://clawhub.ai/lukezirngibl/r4",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/r4",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=r4",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "index.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "r4",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T20:16:34.611Z",
      "expiresAt": "2026-05-14T20:16:34.611Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=r4",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=r4",
        "contentDisposition": "attachment; filename=\"r4-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "r4"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/r4"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/r4",
    "downloadUrl": "https://openagent3.xyz/downloads/r4",
    "agentUrl": "https://openagent3.xyz/skills/r4/agent",
    "manifestUrl": "https://openagent3.xyz/skills/r4/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/r4/agent.md"
  }
}
```
## Documentation

### R4 Skill

You have access to the R4 platform — your personal password manager, secret store, and domain registrar. R4 is how you manage credentials and buy domains.

Think of R4 as your password manager. Whenever you need a login, API key, database credential, SSH key, or any other secret — look it up in R4 first. Do not ask the user for credentials that are already stored in R4. Your owner has shared vault items with you so you can operate autonomously.

R4 is also your domain registrar. You can search for available domains, purchase them, and manage their DNS records — all through R4. When you need to buy or configure a domain, use R4.

### Setup

The R4 CLI (r4) is pre-installed and pre-configured on this machine. No authentication or setup is required — you can start using it immediately.

### Password Manager (Vault)

R4 stores all your credentials in an encrypted vault. Your owner has shared specific vault items with you. These may include:

Logins — usernames, passwords, and URLs for websites and services
API keys — for third-party services (Stripe, AWS, GitHub, etc.)
Database credentials — connection strings, usernames, passwords
SSH keys — for deployment or server access
Configuration secrets — tokens, webhook secrets, encryption keys

Before asking the user for any credential, always check R4 first.

### List all environment variables

r4 vault list

Lists all project environment variables as a key-value table. Keys are in SCREAMING_SNAKE_CASE format.

### Get a specific secret

r4 vault get <KEY>

Retrieves the value of a specific environment variable. The key should be in SCREAMING_SNAKE_CASE format.

Outputs raw value — perfect for piping:

r4 vault get PRODUCTION_DB_PASSWORD | pbcopy

### List vault items with field details

r4 vault items

Lists all vault items with their field names and types. Each vault item may contain multiple fields (e.g., a "Database" item might have fields for host, port, username, password).

### Search vault items

r4 vault search <query>

Search vault items by name (case-insensitive match). Useful when you know part of the name but not the exact key.

### Run a command with secrets injected

r4 run -- <command>

Executes a command with all vault secrets injected as environment variables. This is the preferred way to run scripts that need access to secrets.

Examples:

r4 run -- node deploy.js
r4 run -- docker compose up
r4 run --prefix R4 -- ./start.sh

The --prefix flag adds a prefix to all injected env var names (e.g., R4_DATABASE_PASSWORD instead of DATABASE_PASSWORD).

### JSON output

All vault commands support the --json flag for machine-readable output:

r4 vault list --json
r4 vault get DATABASE_PASSWORD --json
r4 vault items --json

### Key Format

All keys follow SCREAMING_SNAKE_CASE convention:

PRODUCTION_DB_PASSWORD
AWS_CREDENTIALS_ACCESS_KEY
STRIPE_API_SECRET_KEY
SSH_DEPLOY_KEY_PRIVATE_KEY

The format is: VAULT_ITEM_NAME_FIELD_NAME where both the vault item name and field name are converted to SCREAMING_SNAKE_CASE.

### Domain Registrar

R4 lets you search for, purchase, and manage domains. All domain operations are available through the R4 API.

### Search for available domains

curl -X GET "https://r4.dev/api/v1/machine/domain-manager/search?name=<base-name>" \\
  -H "X-API-Key: $R4_API_KEY"

Searches for available domains across common TLDs (.com, .net, .org, etc.) and returns availability, pricing, and reputation data.

### Purchase a domain

curl -X POST "https://r4.dev/api/v1/machine/domain-manager/purchase" \\
  -H "X-API-Key: $R4_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"domain": "example.com"}'

Purchases a domain through R4. The domain is automatically registered under the R4 organization and associated with your project.

### List your domains

curl -X GET "https://r4.dev/api/v1/machine/domain/list" \\
  -H "X-API-Key: $R4_API_KEY"

Lists all domains associated with your organization, including their verification and configuration status.

### Get DNS records

curl -X GET "https://r4.dev/api/v1/machine/domain-manager/dns-records?domain=example.com" \\
  -H "X-API-Key: $R4_API_KEY"

Retrieves all DNS records configured for a domain purchased through R4.

### Add a DNS record

curl -X POST "https://r4.dev/api/v1/machine/domain-manager/dns-records" \\
  -H "X-API-Key: $R4_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "domain": "example.com",
    "record": {
      "type": "A",
      "name": "@",
      "value": "192.168.1.1",
      "ttl": 300
    }
  }'

Supported record types: A, AAAA, CNAME, MX, TXT, NS.

### API key for domain operations

Your R4 API key is pre-configured. Use it in API calls:

# The API key is available as an environment variable
r4 vault get R4_API_KEY

### Security Rules

NEVER store or log secret values in plaintext
NEVER hardcode secrets in source code, config files, or commit history
NEVER print secret values to stdout unless explicitly piping to a secure destination
ALWAYS use r4 run to inject secrets as environment variables when running commands
ALWAYS use r4 vault get <KEY> to retrieve individual values programmatically
ALWAYS check R4 vault before asking the user for any credential or secret

### If You Need More Access

If you need access to a secret that is not available in your current project, or need permission to purchase a domain, ask the owner through the R4 app. Do not attempt to guess or work around missing credentials.

### Full API Documentation

For the complete API reference, including the Node.js SDK, additional domain operations, and programmatic access, visit:

https://r4.dev/docs/api-reference
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lukezirngibl
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-07T20:16:34.611Z
- Expires at: 2026-05-14T20:16:34.611Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/r4)
- [Send to Agent page](https://openagent3.xyz/skills/r4/agent)
- [JSON manifest](https://openagent3.xyz/skills/r4/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/r4/agent.md)
- [Download page](https://openagent3.xyz/downloads/r4)