Installation & Setup ​
Carotene is designed to be a zero-config, all-in-one toolchain. You do not need to install separate testing libraries (like Jest), database ORMs (like Prisma), or security middleware.
The entire framework is powered by a single binary: the Carotene CLI (carrot). It acts as your compiler, your test runner, and your AI generation engine.
Step 1: Install the CLI ​
The Carotene CLI is distributed as a standalone binary, meaning it doesn't pollute your global environment. You can install it via your preferred package manager or directly via our install script.
macOS / Linux (via curl)
curl -fsSL https://get.carotene.dev | bashmacOS (via Homebrew)
brew install caroteneWindows (via PowerShell)
iwr https://get.carotene.dev/windows -useb | iex(Note: If you prefer using Node.js, you can also run npm install -g carotene-cli, though the standalone binaries are recommended for maximum speed).
Step 2: Set Up Your Editor ​
Carotene is a strictly typed architectural language. To get the most out of it, you need your editor to understand the .carrotfile extension, highlight the Zero-Trust Verbs (reads, updates, calls), and provide IntelliSense for the @(...) Generative Operator.
VS Code
- Open VS Code.
- Go to the Extensions tab (
Cmd+Shift+XorCtrl+Shift+X). - Search for Carotene Language Server and click Install.
- Feature: The extension automatically highlights
@(...)operators in a distinct color so you can visually audit where the AI is writing logic versus where code is deterministic.
(Extensions for JetBrains / IntelliJ and Neovim are available in the community repository).
Step 3: Authenticate the AI Compiler ​
Because the Carotene compiler uses an LLM to evaluate your @(...) Generative Operators and run the Test-Driven Generation (TDG) loop, the CLI needs to be authenticated with your AI provider.
Run the login command in your terminal:
carrot loginThis will open your browser and securely store an authentication token on your local machine.
(Alternatively, for CI/CD environments, you can simply set the CAROTENE_API_KEY environment variable).
Step 4: Verify Your Installation ​
To ensure the CLI, the sandbox engine, and the AI compiler are correctly configured, run the version check:
carrot --versionYou should see an output similar to this:
Carotene CLI v1.0.0
Compiler: Online (Authenticated)
Sandbox Engine: Embedded WASM ReadyYou are now fully set up. You have the blueprint language, the isolated testing sandbox, and the AI builder all ready to go.