Skip to content

Connect an app

For each service you want to test, change the API address and credentials in your development configuration. Lookalyke gives each service a path on a single server, such as http://127.0.0.1:4100/resend.

  1. Start Lookalyke locally.
  2. In the dashboard, open the service and choose Connect. If you don’t see the service, turn it on from Apps.
  3. Copy the base address and sandbox credentials. Store them in your app’s development or test configuration, such as .env.development.
  4. Set the base URL on the SDK client and restart your app. Check Activity for the first request.

From the product checkout, you can also print the settings in your terminal.

Terminal window
node packages/server/dist/cli.js env resend
node packages/server/dist/cli.js env --all

Keep sandbox keys and webhook signing secrets specific to their sandbox. Keep Lookalyke settings out of production and use synthetic data in your tests.

With OpenAI enabled in the sandbox, copy its API key and configure the client in your app.

import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: process.env.OPENAI_BASE_URL,
});

Set OPENAI_BASE_URL=http://127.0.0.1:4100/openai/v1 and set OPENAI_API_KEY to the sandbox key shown in Connect. Make a request from your app and look for it under Activity. Keep production credentials and URLs in separate configuration.

Service Local URL What to configure
Anthropic http://127.0.0.1:4100/anthropic Set baseURL and the sandbox API key.
Resend http://127.0.0.1:4100/resend Set baseUrl in the SDK options and use the sandbox API key.
Quo http://127.0.0.1:4100/quo Send the sandbox key in Authorization without a Bearer prefix.
Stripe http://127.0.0.1:4100/stripe The Node SDK needs a small HTTP adapter to keep the /stripe path.
Twilio http://127.0.0.1:4100/twilio The Node SDK needs a custom HTTP client plus the account SID and auth token shown in Connect.

The SDK connection guide in the product repository has complete Stripe and Twilio Node examples and additional service settings.

Run the sample request shown in Connect. If that works but the app’s request is missing from Activity, check which client instance your app uses, the base URL including its service path, and whether the app reloaded its environment. If the request appears but is refused, check the sandbox key and whether the service is enabled.

Set a webhook destination if your application expects callbacks from the service.