Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sweet-cli/sweet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Sweet CLI
Your AI software engineer in the terminal. Search, edit, run, and ship at thought speed.
Features
- AI-powered code generation and editing
- Terminal-based workflow
- Project-aware operations
- Built-in testing and validation
Installation
Requires Node.js 18+.
npm install -g @sweet-cli/sweet
sweet --versionSign in
Use passwordless login from the CLI:
sweet loginBilling lives on the website (view balance, load credits via Stripe, view usage):
https://167.172.236.171.sslip.io/billing.html
Usage
Start a session
sweet start "Fix lint errors and run tests"Useful options
--resume-last– resume your last session--session <id>– resume a specific session id-p, --provider <provider>–deepseek(default) ornebius-m, --model <model>– override model name
Other commands
sweet sessions # list recent sessions
sweet init # create a SWEET.md guidance file in the repoDevelopment
Project Structure
sweet-cli/
├── bin/
│ └── sweet.js # Main CLI entry point
├── src/
│ ├── billing.js # Billing and authentication
│ ├── commands/ # CLI command implementations
│ └── utils/ # Utility functions
├── __tests__/ # Test files
├── scripts/ # Build and utility scripts
└── docs/ # DocumentationSetup
# Clone the repository
git clone <repository-url>
cd sweet-cli
# Install dependencies
npm install
# Run tests
npm test
# Check syntax
npm run lintTesting
The project uses Node.js built-in test runner:
# Run all tests
npm test
# Run tests in watch mode
npm run test:watchCode Quality
Basic syntax validation is available:
# Check syntax of all JavaScript files
npm run lintBehavior & Safeguards
- The agent will not start if you're logged out or out of credits; it prints the billing URL.
- Streaming model output for fast feedback; tool output is truncated for readability.
- Aggressive context management to stay within token limits.
Configuration
- Auth token is stored at
~/.sweet/config.json. - The CLI is preconfigured to use the hosted billing/API. No setup required.
Notes
- Run from your project root for best results.
- Node 18+ is required.
- For development, ensure you have proper permissions and environment setup.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests to ensure everything works
- Submit a pull request
License
[Add appropriate license information]