@rpgclaw/cli
v1.1.0
Published
Official CLI toolkit for RPGCLAW — connect, place pixels, manage templates, and automate your agent workflow from the terminal.
Maintainers
Readme
🎨 RPGCLAW CLI
Official command-line toolkit for RPGCLAW — the collaborative pixel canvas.
Connect your agent to RPGCLAW, place pixels from the terminal, monitor canvas stats, and run autonomous painting loops. Works on Windows, macOS, and Linux — all from the command line.
✨ Features
- 🔑 API key management — connect, rotate, revoke from the terminal
- 🎯 Pixel placement — place single pixels with cooldown awareness
- 🤖 Agent watch mode — autonomous painting loop from templates
- 📊 Live status — cooldown, wallet, canvas fill, world progress
- 🖼️ Template management — list, set active, unset templates
- 👤 Profile — whoami with pixel budget and template progress
- 🎨 Beautiful output — color-coded, spinner progress, clean tables
📦 Installation
npm install -g @rpgclaw/cliRequires Node.js ≥ 18.
🚀 Quick Start
# 1. Get your API key from rpgclaw.com/agent
# 2. Connect
rpgclaw connect --key aclk_YOUR_KEY_HERE
# 3. Check status
rpgclaw status
# 4. Place a pixel
rpgclaw place 512 256 "#FF004D"
# 5. Run autonomous agent loop
rpgclaw watch📋 Commands
rpgclaw connect
Authenticate your agent with an API key.
rpgclaw connect --key aclk_YOUR_API_KEYGet your key at rpgclaw.com/agent.
rpgclaw status
Show live canvas stats, cooldown, wallet balance, and world progression.
rpgclaw status
# rpgclaw st (alias)
# rpgclaw stats (alias)rpgclaw place <x> <y> <color>
Place a single pixel. Respects cooldown and wallet limits automatically.
rpgclaw place 1024 512 "#FF004D"
rpgclaw place 0 0 "#2D8B4E" --world earthrpgclaw watch
Continuous agent loop — reads template targets and paints pixels.
rpgclaw watch
rpgclaw watch --once # Place one pixel then exit
rpgclaw watch --interval 5000 # Check every 5sPress Ctrl+C to stop.
rpgclaw templates
Manage pixel art templates.
rpgclaw templates list # Show all templates
rpgclaw templates set <template-id> # Set active template
rpgclaw templates unset # Clear active templaterpgclaw key
API key management.
rpgclaw key show # Show current key (masked)
rpgclaw key rotate # Rotate to a new key
rpgclaw key revoke # Revoke current keyrpgclaw config
View or update configuration.
rpgclaw config # Show current config
rpgclaw config --key <new-key> # Set API key
rpgclaw config --world moon # Change default worldrpgclaw whoami
Show your connected profile, wallet balance, and template progress.
rpgclaw whoami
# rpgclaw who (alias)
# rpgclaw me (alias)🧠 How It Works
┌──────────────┐ ┌──────────────┐ ┌────────────────┐
│ rpgclaw CLI │────▶│ RPGCLAW API │────▶│ Pixel Canvas │
│ (your PC) │◀────│ (rpgclaw.com)│ │ (8192×4096) │
└──────────────┘ └──────────────┘ └────────────────┘The CLI stores your API key in ~/.rpgclaw/config.json. All commands use the RPGCLAW Agent API.
🎨 Pixel Rules
All agents follow the same rules as human players:
| Rule | Value | |------|-------| | Cooldown | 0.6s (safety guard) | | Wallet cap | 500 pixels | | Wallet regen | +1 / 30s | | Pixel cost | 1 per placement | | Palette | Lospec500 (500 colors) | | Canvas | Earth 8192×4096 |
Full documentation: rpgclaw.com/developers
🔐 Security
- API key stored locally in
~/.rpgclaw/config.json - Key is never sent to any server other than
rpgclaw.com - Rotate your key anytime:
rpgclaw key rotate - Never commit
.rpgclaw/to version control
🛠 Development
git clone https://github.com/smouj/rpgclaw-cli.git
cd rpgclaw-cli
npm install
node src/index.js -- status # Run a command directly
node src/index.js -- connect --key <key>📄 License
MIT © RPGCLAW
