Skip to content

Getting Started with ZapCircle

This guide walks you through the basics of adding ZapCircle to your React-based web development project.

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.


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.)

You don’t need to install ZapCircle globally. Instead, use npx to run the CLI directly:

Terminal window
npx zapcircle --version

If installed correctly, this will print the current version of ZapCircle.


Run the configuration wizard:

Terminal window
npx zapcircle configure

You’ll be prompted to set:

  • Your preferred LLM provider (e.g., openai, anthropic, google, or local)
  • 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
🛠️ Configuring ZapCircle CLI...
Preferred Provider (openai): openai
Large model (default: gpt-4o): gpt-4o
Small 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-mini
Anthropic 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:

Terminal window
~/.zapcircle/zapcircle.cli.toml

Run the following command to confirm everything is correctly configured:

Terminal window
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
📦 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.

Now that ZapCircle is ready to use, you’re just a few steps away from using behavior-driven development in your React project.

➡️ Continue to Create Behaviors