Welcome to Sweet! CLI
Follow this step-by-step guide to install, configure, and run your first autonomous coding task in 15 minutes or less.
Important: To activate CLI usage, add prepaid balance on the billing page, then sign in locally with sweet login.
1 Install Sweet! CLI
In ProgressInstall Sweet! CLI from the official npm package:
Verify Installation
After installing, verify Sweet! CLI is working:
You should see version information. If you get a "command not found" error, check your PATH or restart your terminal.
2 Authenticate with Sweet! CLI
PendingFirst, activate access by adding prepaid balance on the billing page. Then authenticate in terminal with:
After running that command, Sweet! CLI will prompt in your terminal to:
- Sign in with your email
- Enter the one-time code sent to that email
- Authenticate locally—Sweet! CLI saves your session in
~/.sweet/config.json
Tip: Billing-page login is for billing management. CLI access is enabled after you add balance and completed by running sweet login in terminal with your email + one-time code.
How Authentication Works
Sweet! CLI uses a secure billing relay that:
- Handles API costs automatically—you only pay for what you use
- Provides usage-based billing with transparent pricing
- Securely stores your session in
~/.sweet/config.json - No API keys to manage or rotate
Verify Authentication
Test that authentication is working:
You should see a response from Sweet! CLI. If you get an authentication error, run sweet login again.
3 Run Your First Autonomous Task
PendingNow for the fun part! Try one of these beginner-friendly tasks to see Sweet! CLI in action:
Create a simple Python script
Generate a Python script that reads a CSV file and calculates statistics.
Fix a bug in JavaScript code
Debug and fix common errors in a sample JavaScript file.
Set up a CI/CD pipeline
Create GitHub Actions workflow for automated testing and deployment.
How Sweet! CLI Works
When you run a command, Sweet! CLI will:
- Analyze your current directory to understand the project structure
- Create a plan to accomplish your goal
- Execute steps autonomously (edit files, run commands, test changes)
- Report back with what was done and any next steps