LEGECY CLI ARCHITECTURE & GUIDES

Developer Documentation

Everything you need to install, authenticate, and run sovereign autonomous coding workflows through the LEGECY CLI platform.

Step 01

Installation

Install the global sovereign CLI package via npm or standalone binary.

npm install -g legecy-cli
Step 02

1-Click Auth

Authenticate locally through your browser without copying sensitive API keys.

legecy login
Step 03

Autonomous Code

Prompt the agent to inspect repos, generate diffs, and fix failing tests.

legecy "Refactor auth"

Zero Master Key Leak Architecture

The LEGECY CLI runtime separates agentic execution from provider credentials. Master keys for Claude, OpenAI, and DeepSeek reside exclusively inside isolated Node.js environment secrets on our cloud proxy. Developer workstations receive only an ephemeral user session token.

Workstation Local Storage:
Location: ~/.legecy/credentials.json
Contents: Ephemeral user bearer token only
✓ If binary is decompiled: Zero master keys found
Cloud Proxy Gateway:
Location: Isolated Node.js runtime (/v1/chat/completions)
Contents: Server HMAC token meter & master credentials
✓ Tamper-proof credit deductions enforced