@babylen/legion
v0.1.7
Published
Legion agent for connecting devices to Tanuki Cloud
Readme
Tanuki Legion
Legion is a lightweight agent that connects your devices to Tanuki Cloud, enabling remote development and automation capabilities.
Installation
Quick Install
curl -sL https://tanuki.sabw.ru/install-legion | LEGION_TOKEN=your_token_here bashManual Installation
- Install dependencies:
bun install- Configure:
Create ~/.tanuki/config.json:
{
"token": "your_legion_token",
"serverUrl": "wss://tanuki.sabw.ru"
}Or set environment variables:
export LEGION_TOKEN=your_token_here
export TANUKI_SERVER_URL=wss://tanuki.sabw.ru- Run:
bun run devFeatures
- 🔗 Cloud Connection: Seamlessly connect to Tanuki Cloud via WebSocket
- 🛡️ Secure Authentication: Token-based authentication for device access
- 🔄 Auto-Reconnection: Automatic reconnection on network interruptions
- 📊 Device Management: Manage multiple devices from Tanuki Cloud dashboard
Configuration
Configuration is stored in ~/.tanuki/config.json:
token: Your Legion device token (required)serverUrl: Tanuki Cloud server URL (default:wss://tanuki.sabw.ru)
Getting a Token
- Log in to Tanuki Cloud
- Go to Settings → Devices
- Click "Connect New Device"
- Copy the installation command or token
Development
This project uses Bun as the JavaScript runtime.
# Install dependencies
bun install
# Run in development mode
bun run dev
# Type check
bun run typecheck
# Build
bun run buildLicense
Proprietary - Tanuki Cloud
