Getting Started with ZapCircle
This guide walks you through the basics of adding ZapCircle to your React-based web development project.
Important to Know
Section titled “Important to Know”ZapCircle is a developer tool that does not modify your production build or run-time code. It generates code based on your written behaviors and allows you to review, modify, and test it before adding it to source control.
ZapCircle works with any React framework, including Next.js, Remix, Vite, and others. It does not require changes to your application architecture.
ZapCircle supports multiple LLM providers via LangChain. As of now, the following providers are supported:
- ✅ OpenAI
- ✅ Anthropic
- ✅ Google (Gemini)
- ✅ Local LLMs (via REST API, such as LM Studio or Ollama)
⚠️ Each provider requires its own API key or URL. See below for configuration.
Prerequisites
Section titled “Prerequisites”To get started with ZapCircle, you’ll need:
- A React project with components in
.jsx
or.tsx
format - One or more API keys or endpoints for supported LLM providers (OpenAI, Anthropic, Google, Local, etc.)
Setting Up ZapCircle
Section titled “Setting Up ZapCircle”Step 1: Verify Installation
Section titled “Step 1: Verify Installation”You don’t need to install ZapCircle globally. Instead, use npx
to run the CLI directly:
npx zapcircle --version
If installed correctly, this will print the current version of ZapCircle.
Step 2: Configure ZapCircle
Section titled “Step 2: Configure ZapCircle”Run the configuration wizard:
npx zapcircle configure
You’ll be prompted to set:
- Your preferred LLM provider (e.g.,
openai
,anthropic
,google
, orlocal
) - Your preferred large and small model names for each LLM
- API keys for any provider you’d like to use
- (Optional) A base URL for a locally running LLM
Example output:
Section titled “Example output:”🛠️ Configuring ZapCircle CLI...
Preferred Provider (openai): openaiLarge model (default: gpt-4o): gpt-4oSmall model (default: gpt-4o-mini): gpt-4o-mini
🔑 Enter API keys for the providers you want to use.OpenAI API key (optional): sk-***********Anthropic API key (optional):Google API key (optional):Local LLM base URL (optional): http://localhost:1234
Configuring ZapCircle CLI...🛠️ Configuring ZapCircle CLI...
Preferred Provider (openai):OpenAI API key (optional): SK-********OpenAI large model (gpt-4.1):OpenAI small model (o4-mini): o3-miniAnthropic API key (optional):Anthropic large model (claude-3-7-sonnet-latest):Anthropic small model (claude-3-5-haiku-latest):Google API key (optional):Google large model (gemini-2.0-flash):Google small model (gemini-2.0-flash):Local LLM base URL (http://localhost:1234): http://localhost:1234
✅ Configuration saved to ~/.zapcircle/zapcircle.cli.toml
Your configuration is stored in a TOML file at:
~/.zapcircle/zapcircle.cli.toml
Step 3: Confirm Your Setup
Section titled “Step 3: Confirm Your Setup”Run the following command to confirm everything is correctly configured:
npx zapcircle status
This will show:
- The configured provider
- Model names for large and small tasks
- API key status for each provider
- Local LLM settings (if applicable)
- Whether a project-level config file is present
Example Output:
Section titled “Example Output:”📦 ZapCircle Configuration Status:
🔧 User Configuration: Default Provider: openai
[openai] API Key: ✅ Configured Large Model: gpt-4o Small Model: gpt-4o-mini
[anthropic] API Key: ✅ Configured Large Model: claude-3 Small Model: claude-3-haiku
[google] API Key: ✅ Configured Large Model: gemini-2.0-flash Small Model: gemini-2.0-flash
[local] Base URL: ✅ http://localhost:1234
📁 Project Configuration: ❌ Not Found
✅ Status check complete.
Next Step
Section titled “Next Step”Now that ZapCircle is ready to use, you’re just a few steps away from using behavior-driven development in your React project.