Install LEGECY CLI
Deploy autonomous AI coding agents directly to your developer terminal in seconds with zero configuration, automatic browser loopback OAuth, and tamper-proof credit metering.
Quick Install Command
Choose your preferred package manager or terminal shell
Get Started in 4 Simple Steps
From zero to running autonomous coding workflows on your machine in under two minutes.
Install the CLI Globally
Execute the install command in your terminal to register the global legecy command across your operating system.
1-Click Browser Login
Run legecy login. Your default browser opens to the authorization portal. Click "Approve" to transmit an ephemeral session key.
Verify Connection & Credits
Check your connected account details, available credit balance, and active cloud models directly from your console.
Execute Autonomous Tasks
Prompt the agent inside any repository. It autonomously scans files, executes builds, writes unit tests, and formats diffs.
System Compatibility
Headless Environment Configuration
For Docker containers, GitHub Actions, and headless deployment scripts where browser login is unavailable, configure environment variables:
Installation FAQs
How do I fix npm "EACCES: permission denied" during global install?
expand_more
sudo. Instead, configure npm's global prefix in your home directory:mkdir ~/.npm-global && npm config set prefix '~/.npm-global'
Then add export PATH=~/.npm-global/bin:$PATH to your ~/.zshrc or ~/.bashrc.
How does LEGECY CLI protect my master API keys?
expand_more
How do I upgrade to the newest release?
expand_more
legecy update or re-run npm install -g @legecy/cli@latest. Your stored credentials in ~/.legecy/credentials.json remain intact.
Ready to Supercharge Your Terminal?
Sign in to your web portal to claim your 100 free developer credits and start building.