> ## Documentation Index
> Fetch the complete documentation index at: https://docs.curvelabs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Local SDK check

> Verify ThinkFeel SDK setup from a minimal Node.js project.

Use this recipe when you want to verify local SDK setup without a UI.

## Environment variables

```bash theme={null}
export THINKFEEL_API_KEY=your_thinkfeel_api_key
export THINKFEEL_PERSONA_ID=your_persona_uuid

# Optional
export CURVE_PROMPT="hey what's up?"
export THINKFEEL_BASE_URL="https://playground.curvelabs.org/api/v1"
```

## Install and run

```bash theme={null}
npm install
npm start

# Offline tests
npm test
```

<Info>
  This local SDK check is for configuration testing only. It is not a deployed service and does not include user
  authentication, tenancy isolation, or abuse controls by default.
</Info>

## Base URL behavior

The cookbook examples use an OpenAI-compatible provider base URL, so `THINKFEEL_BASE_URL` defaults to `https://playground.curvelabs.org/api/v1`.

ThinkFeel SDK and CLI setup are different. Pass only the site origin, such as `https://playground.curvelabs.org`, when configuring `ThinkFeel` directly.

## Auth setup

New cookbook setup should use `THINKFEEL_API_KEY` and `THINKFEEL_PERSONA_ID`.

The repo still reads legacy `CURVE_API_KEY` and `CURVE_PERSONA_ID` only when the matching `THINKFEEL_*` value is absent.

Prefer `npx thinkfeel login` or `npx thinkfeel configure --api-key-env THINKFEEL_API_KEY` to avoid pasting keys into commands.
