> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://useinterlace.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://useinterlace.com/docs/_mcp/server.

# Quickstart

Follow this guide to get up and running with Interlace in just a few steps.

#### Choose your deployment

The simplest way to use Interlace is through our hosted cloud platform at [app.useinterlace.com](https://app.useinterlace.com).

If you prefer to run Interlace yourself, you can deploy it locally on macOS, Linux or WSL. After cloning the repository and starting the server, you will be able to open the dashboard at [http://localhost:8080](http://localhost:8080)

```bash
git clone https://github.com/interlace-ai/interlace.git
cd interlace
./start.sh
```

#### Set-up Interlace client

Interlace provides SDKs for Python and Node.js. Install the package.

**`Python`**

```bash title="Python"
pip install interlace-sdk
```

**`Node.js`**

```bash title="Node.js"
npm install @interlace/sdk
```

Now, create and copy your API key from your Interlace dashboard.

Initialize the Interlace client with your new API key. For local deployments, set base_url to `"http://localhost:8001"`.

**`Python`**

```Python title="Python"
from interlace import InterlaceSDK

interlace = InterlaceSDK(api_key="YOUR_API_KEY", base_url="https://api.useinterlace.com")
```

**`Node.js`**

```javascript title="Node.js"
import { InterlaceSDKClient } from "@interlace/sdk";

const interlace = new InterlaceSDKClient({apiKey: "YOUR_API_KEY", base_url: "https://api.useinterlace.com"});
```

#### Create a collection

A collection is a group of different data sources that you can search using a single endpoint.

**`Python`**

```Python title="Python"
collection = interlace.collections.create(name="My First Collection")

print(f"Created collection: {collection.readable_id}")
```

**`Node.js`**

```javascript title="Node.js"
const collection = await interlace.collections.create({name: "My First Collection"});

console.log(`Created collection: ${collection.readable_id}`);
```

**`cURL`**

```bash title="cURL"
curl -X POST 'https://api.useinterlace.com/collections' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "My First Collection"
  }'
```

#### Add source connection(s) to your collection

A source connection links a specific app or database to your collection. It handles authentication and automatically syncs data.

**`Python`**

```Python title="Python"
source_connection = interlace.source_connections.create(
    name="My Stripe Connection",
    short_name="stripe",
    readable_collection_id=collection.readable_id,
    authentication={
        "credentials": {
            "api_key": "your_stripe_api_key"  # Replace with real API key
        }
    }
)

print(f"Status: {source_connection.status}")
```

**`Node.js`**

```javascript title="Node.js"
const sourceConnection = await interlace.sourceConnections.create({
  name: "My Stripe Connection",
  short_name: "stripe",
  readable_collection_id: collection.readable_id,
  authentication: {
    credentials: {
      api_key: "SK_TEST_YOUR_STRIPE_API_KEY"
    }
  }
});

console.log(`Status: ${sourceConnection.status}`);
```

**`cURL`**

```bash title="cURL"
curl -X POST 'https://api.useinterlace.com/source-connections' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "My Stripe Connection",
    "short_name": "stripe",
    "readable_collection_id": "my-first-collection-abc123",
    "authentication": {
      "credentials": {
        "api_key": "SK_TEST_YOUR_STRIPE_API_KEY"
      }
    }
  }'
```

#### Search your collection

You can now search your collection and get the most relevant results from all connected sources.

**`Python`**

```Python title="Python"
response = interlace.collections.search.instant(
    readable_id=collection.readable_id,
    query="Find returned payments from user John Doe?",
)

for result in response.results:
    print(result.name, result.relevance_score)
```

**`Node.js`**

```javascript title="Node.js"
const response = await interlace.collections.search.instant(
  collection.readableId,
  { query: "Find returned payments from user John Doe?" }
);

response.results.forEach(result => console.log(result.name, result.relevanceScore));
```

**`cURL`**

```bash title="cURL"
curl -X POST 'https://api.useinterlace.com/collections/my-first-collection-abc123/search/instant' \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query": "Find returned payments from user John Doe?"}'
```

You've now successfully deployed Interlace, connected your first data source, and searched your first collection. To continue, you can explore more integrations and dive into the API reference. For community and support, check out the links below.

#### [GitHub Repository](https://github.com/interlace-ai/interlace)

Join our growing open-source community.

View code, contribute, and report issues.

#### [Community Support](https://discord.gg/484HY9Ehxt)

Get help from our team and community.

Share feedback and feature requests.