| name | instantly-local-dev-loop |
| description | Configure Instantly.ai local development with mock server and test workflows.
Use when setting up a dev environment, testing API calls without sending emails,
or building integration tests against Instantly endpoints.
Trigger with phrases like "instantly dev setup", "test instantly locally",
"instantly mock server", "instantly development environment".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.12.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","instantly","development","testing"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Instantly Local Dev Loop
Overview
Set up a local development workflow for Instantly integrations. Instantly provides a mock server at `` for testing without sending real emails or consuming API limits. This skill covers mock server usage, integration testing, and local webhook development.
Prerequisites
- Completed
instantly-install-auth setup
- Node.js 18+ with TypeScript
- A separate Instantly API key for dev/test (recommended)
Instructions
Step 1: Configure Dev Environment
import "dotenv/config";
interface Config {
baseUrl: string;
apiKey: string;
useMock: boolean;
}
export function getConfig(): Config {
const useMock = process.env.INSTANTLY_USE_MOCK === "true";
return {
baseUrl: useMock
? "https://developer.instantly.ai/_mock/api/v2"
: process.env.INSTANTLY_BASE_URL || "https://api.instantly.ai/api/v2",
apiKey: process.env.INSTANTLY_API_KEY || "",
useMock,
};
}
INSTANTLY_API_KEY=your-dev-api-key
INSTANTLY_BASE_URL=https://api.instantly.ai/api/v2
INSTANTLY_USE_MOCK=true
INSTANTLY_API_KEY=your-prod-api-key
INSTANTLY_BASE_URL=https://api.instantly.ai/api/v2
INSTANTLY_USE_MOCK=false
Step 2: Build a Testable API Client